From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay03.ispgateway.de ([80.67.31.41]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RpnmF-0007Ew-Or for ptxdist@pengutronix.de; Tue, 24 Jan 2012 22:19:41 +0100 Received: from [88.217.112.198] (helo=localhost.localdomain) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1RpnmF-0004Bz-DV for ptxdist@pengutronix.de; Tue, 24 Jan 2012 22:19:39 +0100 From: Bernhard Walle Date: Tue, 24 Jan 2012 22:19:25 +0100 Message-Id: <1327439965-19888-3-git-send-email-bernhard@bwalle.de> In-Reply-To: <1327439965-19888-1-git-send-email-bernhard@bwalle.de> References: <1327439965-19888-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH 2/2] kernel: Use host-elf-h-compat Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 --- rules/kernel.make | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/rules/kernel.make b/rules/kernel.make index a445182..336b76d 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)) -- 1.7.7.4 -- ptxdist mailing list ptxdist@pengutronix.de