Skip to content

Commit fb36d71

Browse files
brooniewilldeacon
authored andcommitted
kselftest/arm64: Support FORCE_TARGETS
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>
1 parent 8f0b4cc commit fb36d71

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tools/testing/selftests/arm64/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ all:
3030
@for DIR in $(ARM64_SUBTARGETS); do \
3131
BUILD_TARGET=$(OUTPUT)/$$DIR; \
3232
mkdir -p $$BUILD_TARGET; \
33-
make OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
33+
make OUTPUT=$$BUILD_TARGET -C $$DIR $@ \
34+
$(if $(FORCE_TARGETS),|| exit); \
3435
done
3536

3637
install: all
3738
@for DIR in $(ARM64_SUBTARGETS); do \
3839
BUILD_TARGET=$(OUTPUT)/$$DIR; \
39-
make OUTPUT=$$BUILD_TARGET -C $$DIR $@; \
40+
make OUTPUT=$$BUILD_TARGET -C $$DIR $@ \
41+
$(if $(FORCE_TARGETS),|| exit); \
4042
done
4143

4244
run_tests: all

0 commit comments

Comments
 (0)