selftests/thermal/intel: don't fail to build when cross compiling
Subsystems (2)
Sasha Levin
maintainerPATCH 1/1 selftests/thermal/intel: don't fail to build when cross compiling
The power_floor and workload_hint Makefiles include lib.mk only for native x86 builds. With CROSS_COMPILE set, or for other architectures, the Makefile defines no targets at all and the build fails:
make: *** No targets. Stop.
Include lib.mk unconditionally, so that those builds have nothing to do instead of failing. Native x86 builds are unchanged.
Fixes 27801542b2b81 ("selftests/thermel/intel: Add test to read workload hint")
Fixes d4d27e5a1a88f ("selftests/thermel/intel: Add test to read power floor status")
Assisted-by LLM
Signed-off-by Sasha Levin <[email protected]>
--- tools/testing/selftests/thermal/intel/power_floor/Makefile | 5 ++--- tools/testing/selftests/thermal/intel/workload_hint/Makefile | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-)
tools/testing/selftests/thermal/intel/power_floor/Makefile +2 -3
@@ -5,8 +5,7 @@ override ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) ifeq ($(ARCH),x86) TEST_GEN_PROGS := power_floor_test - -include ../../../lib.mk - endif endif + +include ../../../lib.mk
tools/testing/selftests/thermal/intel/workload_hint/Makefile +2 -3
@@ -5,8 +5,7 @@ override ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/) ifeq ($(ARCH),x86) TEST_GEN_PROGS := workload_hint_test - -include ../../../lib.mk - endif endif + +include ../../../lib.mk
Signature · 1 line
2.53.0