summaryrefslogtreecommitdiffstats
path: root/rules/busybox.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-13 15:04:33 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-13 15:11:50 +0100
commit87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04 (patch)
tree8a0b9152e4d1e4c24952393e1aec16c59565a372 /rules/busybox.make
parentbb83b033a6cef1ae2356bf117be8b9ffb873b105 (diff)
downloadptxdist-87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04.tar.gz
ptxdist-87fe8ebc88d5effc93a5bb9eeabc2e1860a84c04.tar.xz
rules: use the correct include search order for kernel headers
The kernel headers should be used before the toolchain headers but after any local include paths. Use '-isystem' to handle this. Without this, e.g. systemd may fail to build: It has it's own copy of linux/bpf.h but a incompatible version from the toochain may be used instead. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/busybox.make')
-rw-r--r--rules/busybox.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/busybox.make b/rules/busybox.make
index d129f1d76..e28e5c31f 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -58,7 +58,7 @@ BUSYBOX_MAKE_OPT := \
ifdef PTXCONF_KERNEL_HEADER
BUSYBOX_CPPFLAGS := \
- -I$(KERNEL_HEADERS_INCLUDE_DIR)
+ -isystem $(KERNEL_HEADERS_INCLUDE_DIR)
endif
BUSYBOX_MAKE_ENV := \