]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kselftest: Enable vDSO test on non x86 platforms
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Mon, 26 Oct 2020 11:49:41 +0000 (11:49 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 27 Oct 2020 23:51:55 +0000 (17:51 -0600)
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>
tools/testing/selftests/Makefile
tools/testing/selftests/vDSO/Makefile

index d9c2835031590ed5ca46480ae017bbd84cfc920e..2dd60070d7756ed989ca9de0748f6135072d8fb8 100644 (file)
@@ -65,6 +65,7 @@ endif
 TARGETS += tmpfs
 TARGETS += tpm2
 TARGETS += user
+TARGETS += vDSO
 TARGETS += vm
 TARGETS += x86
 TARGETS += zram
index 0069f2f83f865fc64765a721011dd27e3f30b9ba..47031f3c5f3aadcee39b10ddab33a02a71cd150a 100644 (file)
@@ -9,7 +9,6 @@ ifeq ($(ARCH),x86)
 TEST_GEN_PROGS += $(OUTPUT)/vdso_standalone_test_x86
 endif
 
-ifndef CROSS_COMPILE
 CFLAGS := -std=gnu99
 CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector
 ifeq ($(CONFIG_X86_32),y)
@@ -24,4 +23,3 @@ $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c
                vdso_standalone_test_x86.c parse_vdso.c \
                -o $@
 
-endif