From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ey0-f172.google.com ([209.85.215.172]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1S7Ck0-0000Mu-3a for ptxdist@pengutronix.de; Mon, 12 Mar 2012 22:25:19 +0100 Received: by eaaq11 with SMTP id q11so1546801eaa.31 for ; Mon, 12 Mar 2012 14:25:10 -0700 (PDT) From: Remy Bohmer Date: Mon, 12 Mar 2012 22:25:02 +0100 Message-Id: <1331587504-16721-3-git-send-email-linux@bohmer.net> In-Reply-To: <1331587504-16721-1-git-send-email-linux@bohmer.net> References: <1331587504-16721-1-git-send-email-linux@bohmer.net> Subject: [ptxdist] [PATCH 3/5] [busybox] Pass extra platform CFLAGS to busybox make 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 Busybox make is not properly called in case: * compiler name tuple does not match target tuple (as used in multilib compilers, for example: i686-pc-linux-gnu-gcc can compile for x86_64-unknown-linux-gnu targets. To solve this the 'SUBARCH' need to be set) * CONFIG_EXTRA_CFLAGS need to e set to select the proper sysroot to compile against in busybox * LDFLAGS to link against the proper sysroot. Signed-off-by: Remy Bohmer --- rules/busybox.make | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/rules/busybox.make b/rules/busybox.make index 536aa80..42cb81c 100644 --- a/rules/busybox.make +++ b/rules/busybox.make @@ -49,9 +49,12 @@ $(STATEDIR)/busybox.prepare: BUSYBOX_MAKE_OPT := \ ARCH=$(PTXCONF_ARCH_STRING) \ + SUBARCH=$(PTXCONF_ARCH_STRING) \ CROSS_COMPILE=$(COMPILER_PREFIX) \ CONFIG_EXTRA_CFLAGS="$(CROSS_CFLAGS)" \ HOSTCC=$(HOSTCC) \ + CONFIG_EXTRA_CFLAGS="$(PTXCONF_TARGET_EXTRA_CFLAGS)" \ + LDFLAGS="$(PTXCONF_TARGET_EXTRA_LDFLAGS)" \ SKIP_STRIP=y ifdef PTXCONF_BUSYBOX_RFKILL -- 1.7.5.4 -- ptxdist mailing list ptxdist@pengutronix.de