From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.151; helo=mga17.intel.com; envelope-from=yonghong.zhu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9722220985981 for ; Sun, 20 May 2018 05:52:33 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2018 05:52:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,423,1520924400"; d="scan'208";a="225727762" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 20 May 2018 05:52:32 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 20 May 2018 05:52:31 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.210]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.179]) with mapi id 14.03.0319.002; Sun, 20 May 2018 20:52:30 +0800 From: "Zhu, Yonghong" To: "Gao, Liming" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch] BaseTools: Separate HOST and PREFIX env for GCC tool chain Thread-Index: AQHT3H3vrTx4cGzbOUm7Qz8AuUAbzqQ4ucJQ Date: Sun, 20 May 2018 12:52:30 +0000 Message-ID: References: <1524651102-3436-1-git-send-email-liming.gao@intel.com> In-Reply-To: <1524651102-3436-1-git-send-email-liming.gao@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: Separate HOST and PREFIX env for GCC tool chain X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 12:52:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Yonghong Zhu =20 Best Regards, Zhu Yonghong -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Limi= ng Gao Sent: Wednesday, April 25, 2018 6:12 PM To: edk2-devel@lists.01.org Subject: [edk2] [Patch] BaseTools: Separate HOST and PREFIX env for GCC too= l chain The crossing GCC compiler may use the different path for make and gcc tool. So, GCC_HOST_BIN is introduced for make path. GCC5_BIN is still kept for gc= c path. User needs to set GCC_HOST_BIN besides set GCC5_BIN env if the defa= ult make and gcc is not used. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- BaseTools/Conf/tools_def.template | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index 5da229a..48a38e1 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -209,6 +209,7 @@ DEFINE GCC49_X64_PREFIX =3D ENV(GCC49_BIN) =20 DEFINE GCC5_IA32_PREFIX =3D ENV(GCC5_BIN) DEFINE GCC5_X64_PREFIX =3D ENV(GCC5_BIN) +DEFINE GCC_HOST_PREFIX =3D ENV(GCC_HOST_BIN) =20 DEFINE UNIX_IASL_BIN =3D ENV(IASL_PREFIX)iasl DEFINE WIN_IASL_BIN =3D ENV(IASL_PREFIX)iasl.exe @@ -4788,7 +4789,7 @@ DEFINE GCC5_AARCH64_ASLDLINK_FLAGS =3D DEF(GCC49_AA= RCH64_ASLDLINK_FLAGS) ##########################################################################= ########## *_GCC44_*_*_FAMILY =3D GCC =20 -*_GCC44_*_MAKE_PATH =3D DEF(GCC44_IA32_PREFIX)make +*_GCC44_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC44_*_*_DLL =3D ENV(GCC44_DLL) *_GCC44_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 @@ -4864,7 +4865,7 @@ RELEASE_GCC44_X64_CC_FLAGS =3D DEF(GCC44_X64_CC= _FLAGS) -Os ##########################################################################= ########## *_GCC45_*_*_FAMILY =3D GCC =20 -*_GCC45_*_MAKE_PATH =3D DEF(GCC45_IA32_PREFIX)make +*_GCC45_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC45_*_*_DLL =3D ENV(GCC45_DLL) *_GCC45_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 @@ -4940,7 +4941,7 @@ RELEASE_GCC45_X64_CC_FLAGS =3D DEF(GCC45_X64_CC= _FLAGS) -Os ##########################################################################= ########## *_GCC46_*_*_FAMILY =3D GCC =20 -*_GCC46_*_MAKE_PATH =3D DEF(GCC46_IA32_PREFIX)make +*_GCC46_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC46_*_*_DLL =3D ENV(GCC46_DLL) *_GCC46_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 @@ -5050,7 +5051,7 @@ RELEASE_GCC46_ARM_CC_FLAGS =3D DEF(GCC46_ARM_CC= _FLAGS) -Wno-unused-but-set-v ##########################################################################= ########## *_GCC47_*_*_FAMILY =3D GCC =20 -*_GCC47_*_MAKE_PATH =3D DEF(GCC47_IA32_PREFIX)make +*_GCC47_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC47_*_*_DLL =3D ENV(GCC47_DLL) *_GCC47_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 @@ -5189,7 +5190,7 @@ RELEASE_GCC47_AARCH64_CC_FLAGS =3D DEF(GCC47_AARCH6= 4_CC_FLAGS) -Wno-unused-but-s ##########################################################################= ########## *_GCC48_*_*_FAMILY =3D GCC =20 -*_GCC48_*_MAKE_PATH =3D DEF(GCC48_IA32_PREFIX)make +*_GCC48_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC48_*_*_DLL =3D ENV(GCC48_DLL) *_GCC48_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 @@ -5328,7 +5329,7 @@ RELEASE_GCC48_AARCH64_CC_FLAGS =3D DEF(GCC48_AARCH6= 4_CC_FLAGS) -Wno-unused-but-s ##########################################################################= ########## *_GCC49_*_*_FAMILY =3D GCC =20 -*_GCC49_*_MAKE_PATH =3D DEF(GCC49_IA32_PREFIX)make +*_GCC49_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC49_*_*_DLL =3D ENV(GCC49_DLL) *_GCC49_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 @@ -5473,7 +5474,7 @@ RELEASE_GCC49_AARCH64_DLINK_FLAGS =3D DEF(GCC49_AARC= H64_DLINK_FLAGS) #########################################################= ########################### *_GCC5_*_*_FAMILY =3D GCC =20 -*_GCC5_*_MAKE_PATH =3D DEF(GCC5_IA32_PREFIX)make +*_GCC5_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make *_GCC5_*_*_DLL =3D ENV(GCC5_DLL) *_GCC5_*_ASL_PATH =3D DEF(UNIX_IASL_BIN) =20 -- 2.8.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel