From patchwork Mon Oct 31 13:15:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_M=C3=BCller-Klieser?= X-Patchwork-Id: 689855 X-Patchwork-Delegate: yamada.m@jp.panasonic.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3t7WMV1Kttz9t0q for ; Tue, 1 Nov 2016 23:51:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2A14F4BA16; Tue, 1 Nov 2016 13:51:48 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F4CERUmJbuCq; Tue, 1 Nov 2016 13:51:48 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AFF544BA35; Tue, 1 Nov 2016 13:51:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A89634B811 for ; Mon, 31 Oct 2016 14:24:11 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P_Z4ozDuSXOQ for ; Mon, 31 Oct 2016 14:24:11 +0100 (CET) X-Greylist: delayed 557 seconds by postgrey-1.34 at theia; Mon, 31 Oct 2016 14:24:07 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from root.phytec.de (mail.phycard.co.uk [217.6.246.34]) by theia.denx.de (Postfix) with ESMTP id 6A3014B71E for ; Mon, 31 Oct 2016 14:24:07 +0100 (CET) Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 41B32A00216; Mon, 31 Oct 2016 14:15:23 +0100 (CET) Received: from lws-mklieser.phytec.de ([172.16.10.21]) by idefix.phytec.de (IBM Domino Release 9.0.1FP5 HF413) with ESMTP id 2016103114144961-8265 ; Mon, 31 Oct 2016 14:14:49 +0100 From: =?UTF-8?q?Stefan=20M=C3=BCller-Klieser?= To: u-boot@lists.denx.de Date: Mon, 31 Oct 2016 14:15:08 +0100 Message-Id: <1477919708-2688-1-git-send-email-s.mueller-klieser@phytec.de> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP5 HF413|March 21, 2016) at 31.10.2016 14:14:49, Serialize by Router on Idefix/Phytec(Release 9.0.1FP5 HF413|March 21, 2016) at 31.10.2016 14:14:49 X-TNEFEvaluated: 1 X-Mailman-Approved-At: Tue, 01 Nov 2016 13:51:45 +0100 Cc: marex@denx.de Subject: [U-Boot] [PATCH] tools: Makefile: improve cross_tools target usability X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When building the cross_tools target, HOSTCFLAGS and HOSTLDFLAGS will propagate to the target build. This should not happen and is easy to prevent. Signed-off-by: Stefan Müller-Klieser --- tools/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/Makefile b/tools/Makefile index 400588c..305336c 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -263,6 +263,8 @@ subdir- += env ifneq ($(CROSS_BUILD_TOOLS),) HOSTCC = $(CC) +HOSTCFLAGS = $(CFLAGS) +HOSTLDFLAGS = $(LDFLAGS) quiet_cmd_crosstools_strip = STRIP $^ cmd_crosstools_strip = $(STRIP) $^; touch $@