From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.37.98; helo=nam02-cy1-obe.outbound.protection.outlook.com; envelope-from=christopher.co@microsoft.com; receiver=edk2-devel@lists.01.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0098.outbound.protection.outlook.com [104.47.37.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EAC22210D8522 for ; Thu, 21 Jun 2018 18:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kbs4kv6HE8UYBBfX/KcLf6hlPlpibYl7YcZ0LwfRTxI=; b=YNGVSPtMWDpjYGRPqxKN4EDTQFHA+jxL/pG/2IoqtC33917EE9YI883XS65HqQXg18ZdjXlxdj7/MyCqeyhi8l8w3hM9Zje86EyP9hzqT6nrJw6951wRq/ZuDKQewcDV1KO+HRJ/HJioUVJqPR5mNPUe51/EgoY15B+cXR2rsjo= Received: from DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) by DM5PR2101MB1048.namprd21.prod.outlook.com (52.132.128.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.3; Fri, 22 Jun 2018 01:28:20 +0000 Received: from DM5PR2101MB1128.namprd21.prod.outlook.com ([fe80::28cb:9380:49e8:e0d0]) by DM5PR2101MB1128.namprd21.prod.outlook.com ([fe80::28cb:9380:49e8:e0d0%2]) with mapi id 15.20.0906.004; Fri, 22 Jun 2018 01:28:20 +0000 From: Chris Co To: "Gao, Liming" , "edk2-devel@lists.01.org" CC: "Zhu, Yonghong" , Leif Lindholm Thread-Topic: [PATCH v1 1/1] BaseTools/tools_def: Add WINGCC49 support Thread-Index: AQHUCCTzsqx6aWXVkk+/dhNLyDtgN6RqJ++AgAFWiXA= Date: Fri, 22 Jun 2018 01:28:20 +0000 Message-ID: References: <20180619232602.2200-1-christopher.co@microsoft.com> <20180619232602.2200-2-christopher.co@microsoft.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E29C0F7@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E29C0F7@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=chrco@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-06-22T01:28:18.5731725Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [2001:4898:80e8:2:31d1:7488:7147:f2b8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB1048; 7:IPOoVioFXiFjpXZDPwdZxouDI3vepWJzk+8SLma9sAIb6ibZdrO9W3JHcbO0Its4m/juQziuOV4eYolva9NAqaN/dOTEU3OqFVmofB/ZYy9JHjb5F1slfzC+OlVU/zc9BN95SCcTaBQMHt/2C+9crp22k+7KozG/li0xH3c5prG1S8LYYrLe/uUYol1zwSJDXPNTc4/8dUC0Zr+uoLDtR734Z26pCogOmxZgezptrHVtRN5suHcRQJtV1QVhUymv x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 66958251-2dc8-45bd-86fb-08d5d7df705a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989111)(4534165)(4627221)(201703031133081)(201702281549075)(8990101)(5600026)(711020)(48565401081)(2017052603328)(7193020); SRVR:DM5PR2101MB1048; x-ms-traffictypediagnostic: DM5PR2101MB1048: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Christopher.Co@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(162533806227266)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(2018427008)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DM5PR2101MB1048; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB1048; x-forefront-prvs: 071156160B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(396003)(346002)(39860400002)(39380400002)(376002)(13464003)(189003)(199004)(51914003)(106356001)(86612001)(2906002)(86362001)(10090500001)(2900100001)(97736004)(54906003)(316002)(99286004)(5250100002)(33656002)(22452003)(105586002)(110136005)(2501003)(478600001)(6116002)(3660700001)(68736007)(8990500004)(55016002)(11346002)(4326008)(46003)(6246003)(53936002)(5660300001)(10290500003)(305945005)(9686003)(74316002)(7696005)(446003)(76176011)(6506007)(102836004)(53546011)(25786009)(229853002)(476003)(186003)(81156014)(81166006)(486006)(14454004)(8676002)(6436002)(72206003)(3280700002)(7736002)(8936002)(460985005); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB1048; H:DM5PR2101MB1128.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jLISqso47ThpeRinxB+m7hbOvuowEQVcQY6jEiS8I9mT8A5e/4SJRY9Zc7nOwaw7ob1Jab4k8F5T4DGXs1fgY1Y4IfsnkYJlqyrZ2AM6CHupqHzhvAxHV5w2T/fWYSfmZBRUHU2SEu1sJhXds9KztVNdv3Tc8fyDhnw8dbXHMGLh91/AK/X4WPdw71VY7Dej/idZG3zgYKVRWATBvDsMh+0jUsa3c0AzaU8e5VyPkH+izWgTz9i0pexFSN8KUUOIxf+9rirF4SHX5IbdyDAty1/vFUn0ZUEgvkNrOIMZWFSF/+oWPUedNH3hkfQXDNcYUQkCdz3dN7LPSxwvRDSTvA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66958251-2dc8-45bd-86fb-08d5d7df705a X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2018 01:28:20.3221 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1048 Subject: Re: [PATCH v1 1/1] BaseTools/tools_def: Add WINGCC49 support 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: Fri, 22 Jun 2018 01:28:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Gao, Liming > Sent: Wednesday, June 20, 2018 9:56 PM > To: Chris Co ; edk2-devel@lists.01.org > Cc: Zhu, Yonghong ; Leif Lindholm > > Subject: RE: [PATCH v1 1/1] BaseTools/tools_def: Add WINGCC49 support >=20 > Chris: > I suggest to name this tool chain as GCC49xASL and align to other ASL t= ool > chain, such as VS2015xASL. > And, ASL_PATH can be set to DEF(WIN_ASL_BIN). WINGCC49_ARM_PREFIX > is not required. GCC49_ARM_PREFIX can still be used. >=20 > Besides, please add this tool chain introduction in file header, like > VS2015xASL. Then, other people can know how to set up the environment > and use this tool chain. >=20 Thanks for the feedback Liming. Just confirming - should I still use GCC49_ARM_PREFIX? I thought the conve= ntion was {TOOL_CHAIN_TAG}_{ARCHITECTURE}_PREFIX where TOOL_CHAIN_TAG=3DGCC= 49xASL. > Thanks > Liming > >-----Original Message----- > >From: Chris Co [mailto:Christopher.Co@microsoft.com] > >Sent: Wednesday, June 20, 2018 7:27 AM > >To: edk2-devel@lists.01.org > >Cc: Zhu, Yonghong ; Gao, Liming > >; Leif Lindholm > >Subject: [PATCH v1 1/1] BaseTools/tools_def: Add WINGCC49 support > > > >From: Chris Co > > > >This patch adds a build option for invoking GCC49 ARM cross compiler in > >the Windows environment to build firmware for Windows 10 IoT devices > >using NXP i.MX6 and i.MX7 SoCs. > > > >In addition, this build option targets the Microsoft ASL compiler > >instead of iasl. The Microsoft ASL compiler is necessary to expose > >Windows-specific Pin Function Config Descriptors on Windows IoT > >devices. > > > >Contributed-under: TianoCore Contribution Agreement 1.1 > >Signed-off-by: Christopher Co > >Cc: Yonghong Zhu > >Cc: Liming Gao > >Cc: Leif Lindholm > >--- > > BaseTools/Conf/tools_def.template | 55 ++++++++++++++++++++ > > 1 file changed, 55 insertions(+) > > > >diff --git a/BaseTools/Conf/tools_def.template > >b/BaseTools/Conf/tools_def.template > >index 11a79029b890..192732a677af 100755 > >--- a/BaseTools/Conf/tools_def.template > >+++ b/BaseTools/Conf/tools_def.template > >@@ -5468,6 +5468,61 @@ RELEASE_GCC49_AARCH64_DLINK_FLAGS =3D > >DEF(GCC49_AARCH64_DLINK_FLAGS) > > > > > >######################################################### > ## > >######################### > > # > >+# WINGCC 4.9 - This configuration is used to compile under Windows to > >produce > >+# PE/COFF binaries using GCC 4.9. > >+# > >+######################################################## > ## > >########################## > >+*_WINGCC49_*_*_FAMILY =3D GCC > >+ > >+*_WINGCC49_*_MAKE_PATH =3D DEF(GCC_HOST_PREFIX)make > >+*_WINGCC49_*_*_DLL =3D ENV(GCC49_DLL) > >+*_WINGCC49_*_ASL_PATH =3D asl.exe > >+ > >+*_WINGCC49_*_PP_FLAGS =3D DEF(GCC_PP_FLAGS) > >+*_WINGCC49_*_ASLPP_FLAGS =3D DEF(GCC_ASLPP_FLAGS) > >+*_WINGCC49_*_ASLCC_FLAGS =3D DEF(GCC_ASLCC_FLAGS) > >+*_WINGCC49_*_VFRPP_FLAGS =3D DEF(GCC_VFRPP_FLAGS) > >+*_WINGCC49_*_APP_FLAGS =3D > >+*_WINGCC49_*_ASL_FLAGS =3D /MsftInternal > >+*_WINGCC49_*_ASL_OUTFLAGS =3D DEF(MS_ASL_OUTFLAGS) > >+ > >+################## > >+# WINGCC49 ARM definitions > >+################## > >+*_WINGCC49_ARM_OBJCOPY_PATH =3D noop > >+*_WINGCC49_ARM_CC_PATH =3D ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_SLINK_PATH =3D ENV(WINGCC49_ARM_PREFIX)ar > >+*_WINGCC49_ARM_DLINK_PATH =3D > ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_ASLDLINK_PATH =3D > >ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_ASM_PATH =3D > ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_PP_PATH =3D ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_VFRPP_PATH =3D > ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_ASLCC_PATH =3D > ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_ASLPP_PATH =3D > ENV(WINGCC49_ARM_PREFIX)gcc > >+*_WINGCC49_ARM_RC_PATH =3D > >ENV(WINGCC49_ARM_PREFIX)objcopy > >+*_WINGCC49_ARM_SYMRENAME_PATH =3D noop > >+ > >+*_WINGCC49_ARM_ARCHCC_FLAGS =3D -mthumb > >+*_WINGCC49_ARM_PLATFORM_FLAGS =3D -march=3Darmv7-a > >+ > >+*_WINGCC49_ARM_ASLCC_FLAGS =3D DEF(GCC_ASLCC_FLAGS) > >+*_WINGCC49_ARM_ASLDLINK_FLAGS =3D > >DEF(GCC49_ARM_ASLDLINK_FLAGS) > >+*_WINGCC49_ARM_ASM_FLAGS =3D DEF(GCC49_ARM_ASM_FLAGS) > >+*_WINGCC49_ARM_DLINK_FLAGS =3D > DEF(GCC49_ARM_DLINK_FLAGS) > >+*_WINGCC49_ARM_DLINK2_FLAGS =3D > DEF(GCC49_ARM_DLINK2_FLAGS) > >+*_WINGCC49_ARM_DTCPP_FLAGS =3D DEF(GCC_DTCPP_FLAGS) > >+*_WINGCC49_ARM_PLATFORM_FLAGS =3D -march=3Darmv7-a > >+*_WINGCC49_ARM_PP_FLAGS =3D $(ARCHCC_FLAGS) > >$(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS) > >+*_WINGCC49_ARM_RC_FLAGS =3D DEF(GCC_ARM_RC_FLAGS) > >+*_WINGCC49_ARM_VFRPP_FLAGS =3D $(ARCHCC_FLAGS) > >$(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS) > >+*_WINGCC49_ARM_CC_XIPFLAGS =3D > DEF(GCC49_ARM_CC_XIPFLAGS) > >+ > >+ DEBUG_WINGCC49_ARM_CC_FLAGS =3D DEF(GCC49_ARM_CC_FLAGS) > - > >O0 > >+RELEASE_WINGCC49_ARM_CC_FLAGS =3D DEF(GCC49_ARM_CC_FLAGS) > - > >Wno-unused-but-set-variable -Wno-unused-const-variable > >+ NOOPT_WINGCC49_ARM_CC_FLAGS =3D DEF(GCC49_ARM_CC_FLAGS) > - > >O0 > >+ > >+######################################################## > ## > >########################## > >+# > > # GCC 5 - This configuration is used to compile under Linux to produce > > # PE/COFF binaries using GCC 5 > > # > >-- > >2.7.4