From patchwork Tue Jun 23 15:30:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 50243 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E503F21575 for ; Tue, 23 Jun 2015 15:31:50 +0000 (UTC) Received: by laka10 with SMTP id a10sf3851506lak.2 for ; Tue, 23 Jun 2015 08:31:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=/jw7htIFmot2kectn+x6+286dFbQxAcWPwjcd23DUp0=; b=kWfBBVadMB3MM1hjnRPonsuy1kb49fNTwyC5tttBjMOoTR5EAhC1o9Dckol+NosmtV 9CNItIoimfy3tDu8dfPDLuXrTcJBSuEf9d3FHHaIvXTsNCDRkCls9jHdViU52Nyg7JAn RZsofpZKRIF98qWLSoEkx8BdSceTxgF3RNev22dQJWr3xHtjNB7W8TYaQ4pu18IpCUfW xlJx8et5uVaVCzvds/Hg8RGaiskak6Wj7kltnA7LVOYz6M5XeyImqorpxFzu4PixMNWR QMzH2ZBeOEpjT29YuB4QkPVzvDv4ZbLejdkzcB/wFzzS1vJP5gtmzQwpHTjmTZQcPzbo Ja9w== X-Gm-Message-State: ALoCoQk6fZQ4eFS0Rm3oVFJuAdWYB21sItEKGVrgbe2TBuWNDQu4kfL5F2NJWvSQHsJ4b9S30bII X-Received: by 10.180.87.201 with SMTP id ba9mr1728267wib.3.1435073509635; Tue, 23 Jun 2015 08:31:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.166 with SMTP id d6ls70218lag.54.gmail; Tue, 23 Jun 2015 08:31:49 -0700 (PDT) X-Received: by 10.112.63.201 with SMTP id i9mr445723lbs.93.1435073509469; Tue, 23 Jun 2015 08:31:49 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id vq4si17955286lbb.39.2015.06.23.08.31.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 08:31:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagi2 with SMTP id i2so9055137lag.2 for ; Tue, 23 Jun 2015 08:31:49 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr35281579lbb.29.1435073509183; Tue, 23 Jun 2015 08:31:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3155888lbb; Tue, 23 Jun 2015 08:31:47 -0700 (PDT) X-Received: by 10.42.238.14 with SMTP id kq14mr32536415icb.23.1435073489534; Tue, 23 Jun 2015 08:31:29 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id fe15si19702942icb.16.2015.06.23.08.31.28 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 23 Jun 2015 08:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Z7QAQ-0004SS-9s; Tue, 23 Jun 2015 15:31:18 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Z7QAP-0004SJ-EF for edk2-devel@lists.sourceforge.net; Tue, 23 Jun 2015 15:31:17 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 74.125.82.50 as permitted sender) client-ip=74.125.82.50; envelope-from=ard.biesheuvel@linaro.org; helo=mail-wg0-f50.google.com; Received: from mail-wg0-f50.google.com ([74.125.82.50]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Z7QAN-0006Ux-Hy for edk2-devel@lists.sourceforge.net; Tue, 23 Jun 2015 15:31:17 +0000 Received: by wguu7 with SMTP id u7so12919108wgu.3 for ; Tue, 23 Jun 2015 08:31:09 -0700 (PDT) X-Received: by 10.180.36.103 with SMTP id p7mr4537673wij.88.1435073469525; Tue, 23 Jun 2015 08:31:09 -0700 (PDT) Received: from localhost.localdomain ([185.13.106.68]) by mx.google.com with ESMTPSA id ei8sm36242290wjd.32.2015.06.23.08.31.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 08:31:09 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.sourceforge.net, olivier.martin@arm.com, leif.lindholm@linaro.org Date: Tue, 23 Jun 2015 17:30:54 +0200 Message-Id: <1435073455-3268-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435073455-3268-1-git-send-email-ard.biesheuvel@linaro.org> References: <1435073455-3268-1-git-send-email-ard.biesheuvel@linaro.org> X-Spam-Score: -1.4 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record 0.1 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1Z7QAN-0006Ux-Hy Subject: [edk2] [RFC PATCH 3/4] BaseTools: move ARCHCC_ and PLATFORM_FLAGS to end of GCC command line X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 GCC allows options supplied on the command line to be overridden by passing the same option again with a different value. This is useful for platforms to override default options, so move $(PLATFORM_FLAGS) and $(ARCHCC_FLAGS) to the end of the GCC command line. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 9ba8d38a1791..d8d9f9e150e1 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -3882,7 +3882,7 @@ DEFINE GCC47_ASM_FLAGS = DEF(GCC46_ASM_FLAGS) DEFINE GCC47_ARM_ASM_FLAGS = DEF(GCC46_ARM_ASM_FLAGS) DEFINE GCC47_AARCH64_ASM_FLAGS = $(ARCHASM_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_ASM_FLAGS) -mlittle-endian DEFINE GCC47_ARM_CC_FLAGS = DEF(GCC46_ARM_CC_FLAGS) -mno-unaligned-access -DEFINE GCC47_AARCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC44_ALL_CC_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) +DEFINE GCC47_AARCH64_CC_FLAGS = DEF(GCC44_ALL_CC_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEFINE GCC47_ARM_DLINK_FLAGS = DEF(GCC46_ARM_DLINK_FLAGS) DEFINE GCC47_AARCH64_DLINK_FLAGS = DEF(GCC_AARCH64_DLINK_FLAGS) DEFINE GCC47_ARM_ASLDLINK_FLAGS = DEF(GCC46_ARM_ASLDLINK_FLAGS)