aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2022-04-06 09:20:29 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2022-04-08 15:34:58 +1000
commit752a38a306c1aa4f11dc7ffb3884919f7663b7af (patch)
tree3c02680b25c42ecfe23596a6a5d798b195d9f4f6
parentb102fadd76081edeafb9ddbfecb5b130242a4d30 (diff)
downloadkernel_replicant_linux-752a38a306c1aa4f11dc7ffb3884919f7663b7af.tar.gz
kernel_replicant_linux-752a38a306c1aa4f11dc7ffb3884919f7663b7af.tar.bz2
kernel_replicant_linux-752a38a306c1aa4f11dc7ffb3884919f7663b7af.zip
kselftest/vm: override TARGETS from arguments
We can specify which testcases to build using TARGETS argument, for example: make -C tools/testing/selftests TARGETS=vm, cause the ordinary assignment of TARGETS in Makefile will be ignored. So we need to use override directive to change that. Link: https://lkml.kernel.org/r/20220227055330.43087-1-zhouchengming@bytedance.com Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--tools/testing/selftests/vm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile
index 075ee65a81c0..8e01ae0c76d5 100644
--- a/tools/testing/selftests/vm/Makefile
+++ b/tools/testing/selftests/vm/Makefile
@@ -59,7 +59,7 @@ CAN_BUILD_I386 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_32bit_prog
CAN_BUILD_X86_64 := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_64bit_program.c)
CAN_BUILD_WITH_NOPIE := $(shell ./../x86/check_cc.sh "$(CC)" ../x86/trivial_program.c -no-pie)
-TARGETS := protection_keys
+override TARGETS := protection_keys
BINARIES_32 := $(TARGETS:%=%_32)
BINARIES_64 := $(TARGETS:%=%_64)