mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00

Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents building against kernel headers from the build environment in scenarios where kernel headers are installed into a specific output directory (O=...). Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Shuah Khan <shuah@kernel.org> Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar <mingo@redhat.com> Cc: <stable@vger.kernel.org> # 5.18+ Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
21 lines
402 B
Makefile
21 lines
402 B
Makefile
include ../../../../../build/Build.include
|
|
|
|
UNAME_M := $(shell uname -m)
|
|
|
|
ifneq ($(UNAME_M),s390x)
|
|
nothing:
|
|
.PHONY: all clean run_tests install
|
|
.SILENT:
|
|
else
|
|
|
|
TEST_GEN_PROGS := test_uvdevice
|
|
|
|
top_srcdir ?= ../../../../../..
|
|
LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include
|
|
|
|
CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) -I$(LINUX_TOOL_ARCH_INCLUDE)
|
|
|
|
include ../../../lib.mk
|
|
|
|
endif
|