Skip to content

Commit 4072341

Browse files
fvincenzoshuahkh
authored andcommitted
kselftest: Enable vDSO test on non x86 platforms
Currently the vDSO tests are built only on x86 platforms and cannot be cross compiled. Enable vDSO TARGET for all the platforms. Future patches will extend the tests. Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 3650b22 commit 4072341

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tools/testing/selftests/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ endif
6565
TARGETS += tmpfs
6666
TARGETS += tpm2
6767
TARGETS += user
68+
TARGETS += vDSO
6869
TARGETS += vm
6970
TARGETS += x86
7071
TARGETS += zram

tools/testing/selftests/vDSO/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ifeq ($(ARCH),x86)
99
TEST_GEN_PROGS += $(OUTPUT)/vdso_standalone_test_x86
1010
endif
1111

12-
ifndef CROSS_COMPILE
1312
CFLAGS := -std=gnu99
1413
CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector
1514
ifeq ($(CONFIG_X86_32),y)
@@ -24,4 +23,3 @@ $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c
2423
vdso_standalone_test_x86.c parse_vdso.c \
2524
-o $@
2625

27-
endif

0 commit comments

Comments
 (0)