* [PATCH] selftests/thermal/intel: don't fail to build when cross compiling
@ 2026-10-11 22:33 Sasha Levin
0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2026-10-11 22:33 UTC (permalink / raw)
To: Shuah Khan, Srinivas Pandruvada, Rafael J. Wysocki
Cc: Sasha Levin, stable, linux-kselftest, linux-kernel
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")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
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(-)
diff --git a/tools/testing/selftests/thermal/intel/power_floor/Makefile b/tools/testing/selftests/thermal/intel/power_floor/Makefile
index 07463c2160e09..12697c717881d 100644
--- a/tools/testing/selftests/thermal/intel/power_floor/Makefile
+++ b/tools/testing/selftests/thermal/intel/power_floor/Makefile
@@ -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
diff --git a/tools/testing/selftests/thermal/intel/workload_hint/Makefile b/tools/testing/selftests/thermal/intel/workload_hint/Makefile
index 49e3bc2b20f9d..7f4cdbaf7452c 100644
--- a/tools/testing/selftests/thermal/intel/workload_hint/Makefile
+++ b/tools/testing/selftests/thermal/intel/workload_hint/Makefile
@@ -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
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-11 22:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 22:33 [PATCH] selftests/thermal/intel: don't fail to build when cross compiling Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®