diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-01-28 18:11:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-01-29 03:46:36 -0500 |
commit | c31b34255b48d1a169693c9c70c49ad6418cfd20 (patch) | |
tree | a7145731251353bbaa80b6b931beb6027211277c /tools/testing/selftests/x86 | |
parent | 76b36fa896a2db64582690e085f36adc76604134 (diff) |
selftests/x86: Extend Makefile to allow 64-bit-only tests
Previously the Makefile supported 32-bit-only tests and tests
that were 32-bit and 64-bit. This adds the support for tests
that are only built as 64-bit binaries.
There aren't any yet, but there might be a few some day.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuahkhan@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-api@vger.kernel.org
Link: http://lkml.kernel.org/r/99789bfe65706e6df32cc7e13f656e8c9fa92031.1454022279.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/testing/selftests/x86')
-rw-r--r-- | tools/testing/selftests/x86/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index d0c473f65850..9c81f263a396 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile | |||
@@ -11,8 +11,9 @@ TARGETS_C_32BIT_ONLY := entry_from_vm86 syscall_arg_fault sigreturn test_syscall | |||
11 | vdso_restorer | 11 | vdso_restorer |
12 | 12 | ||
13 | TARGETS_C_32BIT_ALL := $(TARGETS_C_BOTHBITS) $(TARGETS_C_32BIT_ONLY) | 13 | TARGETS_C_32BIT_ALL := $(TARGETS_C_BOTHBITS) $(TARGETS_C_32BIT_ONLY) |
14 | TARGETS_C_64BIT_ALL := $(TARGETS_C_BOTHBITS) $(TARGETS_C_64BIT_ONLY) | ||
14 | BINARIES_32 := $(TARGETS_C_32BIT_ALL:%=%_32) | 15 | BINARIES_32 := $(TARGETS_C_32BIT_ALL:%=%_32) |
15 | BINARIES_64 := $(TARGETS_C_BOTHBITS:%=%_64) | 16 | BINARIES_64 := $(TARGETS_C_64BIT_ALL:%=%_64) |
16 | 17 | ||
17 | CFLAGS := -O2 -g -std=gnu99 -pthread -Wall | 18 | CFLAGS := -O2 -g -std=gnu99 -pthread -Wall |
18 | 19 | ||
@@ -40,7 +41,7 @@ clean: | |||
40 | $(TARGETS_C_32BIT_ALL:%=%_32): %_32: %.c | 41 | $(TARGETS_C_32BIT_ALL:%=%_32): %_32: %.c |
41 | $(CC) -m32 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl -lm | 42 | $(CC) -m32 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl -lm |
42 | 43 | ||
43 | $(TARGETS_C_BOTHBITS:%=%_64): %_64: %.c | 44 | $(TARGETS_C_64BIT_ALL:%=%_64): %_64: %.c |
44 | $(CC) -m64 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl | 45 | $(CC) -m64 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl |
45 | 46 | ||
46 | # x86_64 users should be encouraged to install 32-bit libraries | 47 | # x86_64 users should be encouraged to install 32-bit libraries |