]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpupower: Disable direct build of the 'bench' subproject
authorRoman Storozhenko <romeusmeister@gmail.com>
Wed, 26 Jun 2024 16:45:17 +0000 (18:45 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 28 Jun 2024 21:55:20 +0000 (15:55 -0600)
commitcdaed24abf835d9e94322b5298120a104b2775bb
tree639b00ecb2e4dc4a97009dac35720dbd25f4ed95
parent3e1f12c26646eb0ad67d3eaefd32f765997da6a8
cpupower: Disable direct build of the 'bench' subproject

Execution of the 'make' command in the 'bench' subfolder causes the
following error:

$ make O=cpupower/build/ DESTDIR=cpupower/install/ -j8
"  CC      " cpupower/build//main.o
"  CC      " cpupower/build//parse.o
/bin/sh: 1: "  CC      "cpupower/build//system.o
  CC      : not found
  make: *** [Makefile:21: cpupower/build//main.o] Error 127
  make: *** Waiting for unfinished jobs....
  /bin/sh: 1:   CC      : not found
  /bin/sh: 1:   CC      : not found
  make: *** [Makefile:21: cpupower/build//parse.o] Error 127
  make: *** [Makefile:21: cpupower/build//system.o] Error 127

The makefile uses variables defined in the main project makefile and it
is not intended to run standalone. The reason is that 'bench' subproject
depends on the 'libcpupower' library, see the 'compile-bench' target in
the main makefile.
Add a check that prevents standalone execution of the 'bench' makefile.

Signed-off-by: Roman Storozhenko <romeusmeister@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/bench/Makefile