]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kselftest/arm64: Support FORCE_TARGETS
authorMark Brown <broonie@kernel.org>
Fri, 19 Dec 2025 15:29:42 +0000 (15:29 +0000)
committerWill Deacon <will@kernel.org>
Mon, 5 Jan 2026 21:16:46 +0000 (21:16 +0000)
The top level kselftest Makefile supports an option FORCE_TARGETS which
causes any failures during the build to be propagated to the exit status
of the top level make, useful during build testing. Currently the recursion
done by the arm64 selftests ignores this option, meaning arm64 failures are
not reported via this mechanism. Add the logic to implement FORCE_TARGETS
so that it works for arm64.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/Makefile

index c4c72ee2ef55bbe27bb7304e247974ba84c693a4..e456f3b62fa138343ce2eed5f89f175ee28ad61b 100644 (file)
@@ -30,13 +30,15 @@ all:
        @for DIR in $(ARM64_SUBTARGETS); do                             \
                BUILD_TARGET=$(OUTPUT)/$$DIR;                   \
                mkdir -p $$BUILD_TARGET;                        \
-               make OUTPUT=$$BUILD_TARGET -C $$DIR $@;         \
+               make OUTPUT=$$BUILD_TARGET -C $$DIR $@          \
+                       $(if $(FORCE_TARGETS),|| exit); \
        done
 
 install: all
        @for DIR in $(ARM64_SUBTARGETS); do                             \
                BUILD_TARGET=$(OUTPUT)/$$DIR;                   \
-               make OUTPUT=$$BUILD_TARGET -C $$DIR $@;         \
+               make OUTPUT=$$BUILD_TARGET -C $$DIR $@          \
+                       $(if $(FORCE_TARGETS),|| exit); \
        done
 
 run_tests: all