summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-02 06:49:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-07-02 06:49:56 +0000
commitfc0863785a0200de0d0135abf5ce16a803e5b2d6 (patch)
tree4e0e16c202d1a3771f0bac76dcfc7a4a1c79fff5 /include
parentce6b3da88091c3b0d631c98604fe691b87760e26 (diff)
downloadmtk-20170518-fc0863785a0200de0d0135abf5ce16a803e5b2d6.zip
mtk-20170518-fc0863785a0200de0d0135abf5ce16a803e5b2d6.tar.gz
mtk-20170518-fc0863785a0200de0d0135abf5ce16a803e5b2d6.tar.bz2
add a portable version of sys/sysmacros.h and and let the kernel use the host include dir, fixes x86 builds on non-gnu systems
SVN-Revision: 27346
Diffstat (limited to 'include')
-rw-r--r--include/kernel-defaults.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 1bc829b..5fd27ae 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -22,6 +22,8 @@ ifneq (,$(KERNEL_CC))
KERNEL_MAKEOPTS += CC="$(KERNEL_CC)"
endif
+export HOST_EXTRACFLAGS=-I$(STAGING_DIR_HOST)/include
+
# defined in quilt.mk
Kernel/Patch:=$(Kernel/Patch/Default)
ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")