From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.33.131; helo=nam01-bn3-obe.outbound.protection.outlook.com; envelope-from=christopher.co@microsoft.com; receiver=edk2-devel@lists.01.org Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0131.outbound.protection.outlook.com [104.47.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A97C0210DF77C for ; Tue, 19 Jun 2018 16:26:40 -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=NwuJ5pW7J9g02MzzEsWlwFoISV5aftpWagFlOu8XmbY=; b=hA0b0g4Yf9BTh48hIyS0hYRrxQ3qRTY3yuKZDy2pf3WkQCPkPjM9IgvAuxthwmLbgQ0QNAUQfbzyWEUIvqonmyN9pgwVCWmusoYX/8Y2uHXywleUUkg1UXUpgphkZc9f+jIbt8FFZRaToMCKvo9wWN1BMlX6H7nrmQm9+hFGa64= Received: from DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) by DM5PR2101MB0870.namprd21.prod.outlook.com (10.167.110.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.12; Tue, 19 Jun 2018 23:26:38 +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; Tue, 19 Jun 2018 23:26:38 +0000 From: Chris Co To: "edk2-devel@lists.01.org" CC: Yonghong Zhu , Liming Gao , Leif Lindholm Thread-Topic: [PATCH v1 1/1] BaseTools/tools_def: Add WINGCC49 support Thread-Index: AQHUCCTzsqx6aWXVkk+/dhNLyDtgNw== Date: Tue, 19 Jun 2018 23:26:30 +0000 Message-ID: <20180619232602.2200-2-christopher.co@microsoft.com> References: <20180619232602.2200-1-christopher.co@microsoft.com> In-Reply-To: <20180619232602.2200-1-christopher.co@microsoft.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR2201CA0017.namprd22.prod.outlook.com (2603:10b6:301:28::30) To DM5PR2101MB1128.namprd21.prod.outlook.com (2603:10b6:4:a8::20) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2001:4898:80e8:8:7d11:ae2a:37da:923] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB0870; 7:i+pOZOSRoqYdEzMIyMxvQq9wTvfVDQO+7aTA76zdXEVDVi9NtBANozPDZmaH0QC1rI0r4qA6P741guMh1Bc0Jw73wN6pQch8CxzbwK+dCsr6Z0iRNOdWuw638vBIHw2cxBjxe3bssX4/z96FfLWeE0lUn5qsivB0K6JXUK3N2YXuC4dUFUJPgTrGqfqCdSO5svX5aU4iwCuzZuJ5/lHwfRXr3RbBBpIJGs05uU9teApYUi5BeXH93BYQ4kF23AO/ x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 81bc2039-e035-4118-61f7-08d5d63c1627 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7193020); SRVR:DM5PR2101MB0870; x-ms-traffictypediagnostic: DM5PR2101MB0870: 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)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(2018427008)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DM5PR2101MB0870; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB0870; x-forefront-prvs: 07083FF734 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(346002)(39380400002)(39860400002)(396003)(366004)(199004)(189003)(68736007)(14454004)(2351001)(186003)(81156014)(72206003)(478600001)(8676002)(5660300001)(6506007)(10290500003)(76176011)(386003)(81166006)(36756003)(52116002)(305945005)(102836004)(99286004)(105586002)(6512007)(53936002)(3280700002)(106356001)(7736002)(25786009)(5250100002)(3660700001)(1076002)(6116002)(8936002)(446003)(86362001)(54906003)(22452003)(476003)(2616005)(2501003)(4326008)(97736004)(2906002)(316002)(6916009)(6666003)(486006)(10090500001)(86612001)(6486002)(6436002)(11346002)(2900100001)(5640700003)(46003)(22906009)(460985005); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB0870; H:DM5PR2101MB1128.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: anecLijXXwgAtSWC7dr/2vZlQMNNY7mMC7+GgsMv3C2KbPUL9GsAiqS3ftV58IEeCvL3y2AP7eRSX0rJ1wmHnmpZCBI4L8uVBbmaS42Zffj05znZQLWDBCD66bgCCFyI3t4DCJEMJSek+IX1dBrS1D66BiE4Q2gtDAl+x6Z7WSZMju3a4ieHkWTUitZd4HfprVRIcRIT2gKDPi6BpbdGzN9oE2Qt5s8OlKBGE5OTjg5j0U+aNzGq5R8ktwO7xeOfu3PZ3xcXHZaWw72xH0jhicE6aFs3EhA89FUDib90sa5VOqoxpmoHE3de+5G5tNEdts5Srg8UgxAKU+Y288+28Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81bc2039-e035-4118-61f7-08d5d63c1627 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2018 23:26:30.4237 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0870 Subject: [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: Tue, 19 Jun 2018 23:26:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.t= emplate 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_AAR= CH64_DLINK_FLAGS) =20 ##########################################################################= ########## # +# WINGCC 4.9 - This configuration is used to compile under Windows to prod= uce +# 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-unuse= d-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 # --=20 2.7.4