diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-02-11 05:59:50 -0500 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2018-02-13 13:35:01 -0500 |
commit | 70b574e7d719bdf96d26528cb289f3e782e83979 (patch) | |
tree | a484beb3e69edfd87cfb4f2e8f7e023f8b225d08 /tools/testing | |
parent | b2c93e300a11b419b4c67ce08e16fa1436d8118c (diff) |
selftest/vDSO: fix O=
The vDSO selftests ignored the O= or KBUILD_OUTPUT= parameters. Fix it.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/vDSO/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile index 3d5a62ff7d31..f5d7a7851e21 100644 --- a/tools/testing/selftests/vDSO/Makefile +++ b/tools/testing/selftests/vDSO/Makefile | |||
@@ -1,4 +1,6 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
2 | include ../lib.mk | ||
3 | |||
2 | ifndef CROSS_COMPILE | 4 | ifndef CROSS_COMPILE |
3 | CFLAGS := -std=gnu99 | 5 | CFLAGS := -std=gnu99 |
4 | CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector | 6 | CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector |
@@ -6,16 +8,14 @@ ifeq ($(CONFIG_X86_32),y) | |||
6 | LDLIBS += -lgcc_s | 8 | LDLIBS += -lgcc_s |
7 | endif | 9 | endif |
8 | 10 | ||
9 | TEST_PROGS := vdso_test vdso_standalone_test_x86 | 11 | TEST_PROGS := $(OUTPUT)/vdso_test $(OUTPUT)/vdso_standalone_test_x86 |
10 | 12 | ||
11 | all: $(TEST_PROGS) | 13 | all: $(TEST_PROGS) |
12 | vdso_test: parse_vdso.c vdso_test.c | 14 | $(OUTPUT)/vdso_test: parse_vdso.c vdso_test.c |
13 | vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c | 15 | $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c |
14 | $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ | 16 | $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ |
15 | vdso_standalone_test_x86.c parse_vdso.c \ | 17 | vdso_standalone_test_x86.c parse_vdso.c \ |
16 | -o vdso_standalone_test_x86 | 18 | -o $@ |
17 | 19 | ||
18 | include ../lib.mk | 20 | EXTRA_CLEAN := $(TEST_PROGS) |
19 | clean: | ||
20 | rm -fr $(TEST_PROGS) | ||
21 | endif | 21 | endif |