From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0715.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::715]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 296BB1A1E2C for ; Mon, 15 Aug 2016 10:55:53 -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; bh=LQOPgzuG6buW1vfwztOBWpirExLeW7dlaUd0UCVUg+c=; b=Phk7zpDNJ6L9uEZdQOUCzz1j7tv5I56XaxygZzyd8BwGuXIiqDsjcAheimLyNCHOHj/0ChT26pJRR/5P8QyYlYnBbq6s9PeB8qVroxS153CazjSIQB7aFHQJC7VKWIXDLnF0R094tRzvu9qFzhNqU1wN8W+NAsFmW20ZFfchOm4= Received: from BY2PR03MB522.namprd03.prod.outlook.com (10.141.143.142) by BY2PR03MB522.namprd03.prod.outlook.com (10.141.143.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 15 Aug 2016 17:55:51 +0000 Received: from BY2PR03MB522.namprd03.prod.outlook.com ([10.141.143.142]) by BY2PR03MB522.namprd03.prod.outlook.com ([10.141.143.142]) with mapi id 15.01.0549.027; Mon, 15 Aug 2016 17:55:51 +0000 From: Kurt Kennett To: "afish@apple.com" CC: edk2-devel Thread-Topic: [edk2] Setting BuildOptions by module type does not seem to work Thread-Index: AdH3DXjXZzkLe6CzToa1ZeYDl2WXawAA56WAAAALG0AAAlSQgAAA55dg Date: Mon, 15 Aug 2016 17:55:50 +0000 Message-ID: References: <56352D44-41C4-49D8-8BFA-C92B84CC0CDC@apple.com> <4FA3496D-C050-40FA-8CB1-E3603E431E79@apple.com> In-Reply-To: <4FA3496D-C050-40FA-8CB1-E3603E431E79@apple.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kurt.Kennett@microsoft.com; x-originating-ip: [2001:4898:80e8:1::2e6] x-ms-office365-filtering-correlation-id: b538d9de-d860-4efa-1c7d-08d3c5356523 x-microsoft-exchange-diagnostics: 1; BY2PR03MB522; 6:BWJtzScDZLCkNYOYD4ANAJabyqhRJs19pH8MMnxBwy4t7lXXmmqvAQHZ7qi4XIM+2Akg9UZqvzufGaMcOQQtOvbGD41Ao4LYoE346j0rc1NwbD+I3ldqzzNvRxASwzafXE4UgVM7cBKitfENmjAqHNa/0H9pKMMGX8wTsk8OEiAKZti4Sif9Jqbqr0PwNRNqkIzlH9yT0Nd1Icp5gatK/ajH2Neos5szhcLUpKvznfzMC24W/nGKCSsgaW+21/GIrv/ipNNzKH1rOI557bTsUUa70g3z9VbDC7PlPOlFXcE0NZnU6W2bzyL3PTGn9GX56xzDj3nehYXC3AsPLrbR3Q==; 5:pd4HU72TnN60MK5rUUtkJtJxORojgwVNBVBVyQxD5ApnhVMfQ6D0U44Xa0vUYmbbJKUz/Sn4D6NnwK8QyoNFNo9vr0wO1wz5K5FqN7ARsSqxWWrXAYPKWKm0T4Xe8QZOBJ6GCpRom2iSJDxi9Vjrug==; 24:j0M8niQ0W22VDNhBjsGjMtosOi+d8JUGZLjCcPIwc36g3B0vvWzcnlev1teR5I/Em5FeCBM5wRS7EXjevmG2cWUR1m9vebSzQS8F5m2uRu8=; 7:euVHVeNS4mAqjxdDMa0UoudLe32em7mrJ9urlQ/JlM9vQABB5vC59lGPk/9nYMJiI++imN4nPoPxrdT8A99G0QXH4qnW1Aqfu4eAlU25Go/AphHWAow6oP8AgVsysaqIbMEP9r801sKqkNNIm7o6UWFpgeqzhZN06rQgIIL0mzD3kAw8tIrREO07XsalUEckj7OyNoN6Vi4FmN8g4dPt+cP8evvLEeGWj5sco/Ew/3/CtLx//CmkDcCKcQDry06J x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB522; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820)(162533806227266)(31960201722614); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038); SRVR:BY2PR03MB522; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB522; x-forefront-prvs: 0035B15214 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(189002)(377454003)(24454002)(199003)(13464003)(99286002)(105586002)(101416001)(2351001)(76176999)(586003)(3660700001)(5002640100001)(2900100001)(2950100001)(74316002)(106356001)(305945005)(15975445007)(81166006)(10090500001)(8666005)(1730700003)(8676002)(7736002)(77096005)(7696003)(76576001)(7846002)(9686002)(110136002)(81156014)(87936001)(19580395003)(92566002)(33656002)(122556002)(10400500002)(86362001)(189998001)(19580405001)(4326007)(5005710100001)(97736004)(11100500001)(2501003)(54356999)(3280700002)(102836003)(6116002)(50986999)(8936002)(10290500002)(68736007)(93886004)(86612001)(8990500004)(5640700001)(2906002)(7059030)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB522; H:BY2PR03MB522.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2016 17:55:50.5306 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB522 Subject: Re: Setting BuildOptions by module type does not seem to work X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 17:55:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Okay this seems to work: [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] Thanks Andrew. (doesn't match the spec though :) ) K2 -----Original Message----- From: afish@apple.com [mailto:afish@apple.com]=20 Sent: Monday, August 15, 2016 10:30 AM To: Kurt Kennett Cc: edk2-devel Subject: Re: [edk2] Setting BuildOptions by module type does not seem to wo= rk > On Aug 15, 2016, at 9:34 AM, Kurt Kennett wr= ote: >=20 > No, I had not tried that. I tried it now and it does not seem to work. >=20 > I have: >=20 > [BuildOptions.AARCH64.common] > *_VS2015x86_AARCH64_DLINK_FLAGS =3D /BORK >=20 > [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] > *_VS2015x86_AARCH64_DLINK_FLAGS =3D /PLOR >=20 > [BuildOptions.AARCH64.common.EDKII.DXE_RUNTIME_DRIVER] > *_VS2015x86_AARCH64_DLINK_FLAGS =3D /BONK >=20 > And the only one that makes it to the command line is the /BORK one. >=20 > (The tools do not complain about the specification of options as above). >=20 I'm guessing the syntax checking is not very good?=20 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] [BuildOptions.AARCH64.common.EDKII.DXE_RUNTIME_DRIVER] I see the [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] form used in other= places, but you have an extra .common?=20 Thanks, Andrew Fish > K2 >=20 > -----Original Message----- > From: afish@apple.com [mailto:afish@apple.com] > Sent: Monday, August 15, 2016 9:22 AM > To: Kurt Kennett > Cc: edk2-devel > Subject: Re: [edk2] Setting BuildOptions by module type does not seem=20 > to work >=20 >=20 >> On Aug 15, 2016, at 9:10 AM, Kurt Kennett w= rote: >>=20 >> DSC spec (January 2016 1.26) says I can do this: >>=20 >> (Section 3.6 pp 76) >>=20 >> ... >> * [BuildOptions.$(arch).CodeBase.Edk2ModuleType] >> ... >>=20 >> And this works fine: >>=20 >> [BuildOptions.AARCH64.common] >> *_VS2015x86_*_DLINK_FLAGS =3D /BORK >>=20 >> But when I also do: >>=20 >> [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] >> *_VS2015x86_*_DLINK_FLAGS =3D /PLOR >>=20 >> The link flags are not affected on the command line - they get the /BORK= for all module types, but not the /PLOR for DXE_RUNTIME_DRIVERs. >>=20 >=20 > Kurt, >=20 > Have you tried [BuildOptions.AARCH64.EDKII.DXE_RUNTIME_DRIVER]? Do you ne= ed EDK compatibility?=20 >=20 > I'm guessing that works given: > ~/work/src/edk2(master)>git grep "BuildOptions." -- *.dsc | grep=20 > DXE_RUNTIME_DRIVER=20 > OvmfPkg/OvmfPkgIa32.dsc:49:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIV > ER]=20 > OvmfPkg/OvmfPkgIa32X64.dsc:54:[BuildOptions.common.EDKII.DXE_RUNTIME_D > RIVER]=20 > OvmfPkg/OvmfPkgX64.dsc:54:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVE > R]=20 > QuarkPlatformPkg/Quark.dsc:885:[BuildOptions.common.EDKII.DXE_RUNTIME_ > DRIVER] >=20 >=20 >> I'm not familiar with the DSC processing tools source. Anybody know whe= re to look to see why not? >>=20 >=20 > It starts here:=20 > https://github.com/tianocore/edk2/blob/master/BaseTools/Source/Python/ > build/build.py and uses some code from:=20 > https://github.com/tianocore/edk2/tree/master/BaseTools/Source/Python/ > Common >=20 > Thanks, >=20 > Andrew Fish >=20 >> K2 >>=20 >>=20 >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel