Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dominik Brodowski and committed by
Shuah Khan
70b574e7 b2c93e30

+7 -7
+7 -7
tools/testing/selftests/vDSO/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + include ../lib.mk 3 + 2 4 ifndef CROSS_COMPILE 3 5 CFLAGS := -std=gnu99 4 6 CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector ··· 8 6 LDLIBS += -lgcc_s 9 7 endif 10 8 11 - TEST_PROGS := vdso_test vdso_standalone_test_x86 9 + TEST_PROGS := $(OUTPUT)/vdso_test $(OUTPUT)/vdso_standalone_test_x86 12 10 13 11 all: $(TEST_PROGS) 14 - vdso_test: parse_vdso.c vdso_test.c 15 - vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c 12 + $(OUTPUT)/vdso_test: parse_vdso.c vdso_test.c 13 + $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c 16 14 $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ 17 15 vdso_standalone_test_x86.c parse_vdso.c \ 18 - -o vdso_standalone_test_x86 16 + -o $@ 19 17 20 - include ../lib.mk 21 - clean: 22 - rm -fr $(TEST_PROGS) 18 + EXTRA_CLEAN := $(TEST_PROGS) 23 19 endif