Skip to content

Commit 3a23a42

Browse files
brooniectmarinas
authored andcommitted
selftests/arm64: Define top_srcdir for the fp tests
Some of the rules in lib.mk use a top_srcdir variable to figure out where the top of the kselftest tree is, provide it. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220427181954.357975-3-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent a59f7a7 commit 3a23a42

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • tools/testing/selftests/arm64/fp

tools/testing/selftests/arm64/fp/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
CFLAGS += -I../../../../../usr/include/
3+
# A proper top_srcdir is needed by KSFT(lib.mk)
4+
top_srcdir = $(realpath ../../../../../)
5+
6+
CFLAGS += -I$(top_srcdir)/usr/include/
7+
48
TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg za-fork za-ptrace
59
TEST_GEN_PROGS_EXTENDED := fp-pidbench fpsimd-test \
610
rdvl-sme rdvl-sve \

0 commit comments

Comments
 (0)