summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Walle <bernhard@bwalle.de>2012-01-24 22:19:25 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-02-02 23:41:09 +0100
commit5ad31a73a0800e3739be815d9cf1482d4b2768e2 (patch)
treeedf65b5a1dac47d30a523a893009411be7a33b7b
parente929e076509ec6f449f5aa6cfcec42ef00b01682 (diff)
downloadptxdist-5ad31a73a0800e3739be815d9cf1482d4b2768e2.tar.gz
ptxdist-5ad31a73a0800e3739be815d9cf1482d4b2768e2.tar.xz
kernel: Use host-elf-h-compat
Set the host include flags of the Linux kernel so that it finds elf.h in sysroot-host/include. It's required to specify HOST_EXTRACFLAGS in the environment rather than as make argument because otherwise += doesn't work which ends in other build errors (gettext problems). See also http://article.gmane.org/gmane.linux.kbuild.devel/5210 for a discussion about HOST_EXTRACFLAGS. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/kernel.make3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules/kernel.make b/rules/kernel.make
index a445182f1..336b76d07 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -43,13 +43,12 @@ KERNEL_SOURCE := $(SRCDIR)/$(KERNEL).$(KERNEL_SUFFIX)
# ----------------------------------------------------------------------------
KERNEL_PATH := PATH=$(CROSS_PATH)
-KERNEL_ENV := KCONFIG_NOTIMESTAMP=1
+KERNEL_ENV := KCONFIG_NOTIMESTAMP=1 HOST_EXTRACFLAGS="$(HOST_CPPFLAGS)"
KERNEL_MAKEVARS := \
$(PARALLELMFLAGS) \
HOSTCC=$(HOSTCC) \
ARCH=$(PTXCONF_KERNEL_ARCH_STRING) \
CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) \
- \
INSTALL_MOD_PATH=$(KERNEL_PKGDIR) \
PTX_KERNEL_DIR=$(KERNEL_DIR) \
$(call remove_quotes,$(PTXCONF_KERNEL_EXTRA_MAKEVARS))