diff options
author | André Almeida <andrealmeid@collabora.com> | 2021-04-27 10:53:27 -0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-12 20:44:58 +0200 |
commit | c7d84e7ff5a651d186a6ec41361c4f07acc2fb9c (patch) | |
tree | 54c390cb28f5d54008bba4eac4dc566a823b6617 /tools/testing/selftests/futex/functional/Makefile | |
parent | 93d0955e6cf562d02aae37f5f8d98d9d9d16e0d4 (diff) |
selftests: futex: Correctly include headers dirs
When building selftests, the build system will install uapi linux
headers at usr/include in kernel source's root directory. When building
with a different output folder, the headers will be installed at
kselftests/usr/include.
Add both paths so we can build the tests using up-to-date headers.
Currently, this is uncommon to happen since it's rare to find a
build system with an outdated futex header, but it happens
when testing new futex operations.
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210427135328.11013-2-andrealmeid@collabora.com
Diffstat (limited to 'tools/testing/selftests/futex/functional/Makefile')
-rw-r--r-- | tools/testing/selftests/futex/functional/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index 23207829ec75..1d2b3b2a5b86 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -INCLUDES := -I../include -I../../ +INCLUDES := -I../include -I../../ -I../../../../../usr/include/ \ + -I$(KBUILD_OUTPUT)/kselftest/usr/include CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) LDLIBS := -lpthread -lrt |