From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on072d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe41::72d]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 403D01A1E11 for ; Tue, 16 Aug 2016 07:49:04 -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=ZqIrRkODDo84NDduynuArc3fj8ktD0cw/Sms9wjaeEc=; b=H74QtAqYwBc4qtyFd/anOvuydac5VLT5niBk1P3v/XFMpwIrWUx6mGAF8qMa35ebmbj/n3r9o/hkSDpUpGM9H+1PwCBTV5od8m4xL030gTZID2f4xjAF944JwvREp/qI6TI7IdPsQH4i2HYfz8M5cXVzkEjC21KeQlOjZvZ7EyU= Received: from BY2PR03MB522.namprd03.prod.outlook.com (10.141.143.142) by BY2PR03MB523.namprd03.prod.outlook.com (10.141.143.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Tue, 16 Aug 2016 14:49:00 +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; Tue, 16 Aug 2016 14:49:00 +0000 From: Kurt Kennett To: "Gao, Liming" , "afish@apple.com" CC: edk2-devel Thread-Topic: [edk2] Setting BuildOptions by module type does not seem to work Thread-Index: AdH3DXjXZzkLe6CzToa1ZeYDl2WXawAA56WAAAALG0AAAlSQgAAA55dgABGCP4AAGhZFUA== Date: Tue, 16 Aug 2016 14:49:00 +0000 Message-ID: References: <56352D44-41C4-49D8-8BFA-C92B84CC0CDC@apple.com> <4FA3496D-C050-40FA-8CB1-E3603E431E79@apple.com> <4A89E2EF3DFEDB4C8BFDE51014F606A1155EB6CE@shsmsx102.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A1155EB6CE@shsmsx102.ccr.corp.intel.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:6::19f] x-ms-office365-filtering-correlation-id: f0fcedbd-f955-47d3-1de1-08d3c5e475b5 x-microsoft-exchange-diagnostics: 1; BY2PR03MB523; 6:wmu5K20GNwjUNA7eNPlhzsA4DuEhpJzl4gbXUGLmPKKupc6eNwgqdNtKM14x7FkCBhpRKFvI4XaBVImCvUnDyBP6GnfEVbgsHPQJW/pv05mSFct/b/5AnHThTh6N6uQuhn+pmbwh/MyBVMMRalKPTdGffKp0haIUTVba//mYqRJSav6nW2zjw4z0RQaQ2zqbRDIu01R2y6qXZJ3dvzRso+sdre6YEiqpW1023vHRpPg9ITpX1pmLzN4Y2emKcz6NavlfAgUJxhkumzkqYaa6aumSBbXFmbH+/s+XdAAgLJsSMHDfh7IYiflZWgWyMUDA12fd00Kr7/2qkPYhaFo/PA==; 5:mOnrbfngvV4Nt8CrwbKl421K5XXGhkwRthcuuZwro2a8buFtbxXiTQSglSr11XxTfE1V4V0kx0ZwTHmM4D0NkcuXGLN7iyEZCFdLG+4QZenG2bO1v+bxL03njzTkysWkReAIuN0zLttIboVLlH97hw==; 24:icmUJF2JFXyCqygTTRCqT7iBsZBvCzfLxps+IslAOkG7HNzj5SC6jPzNQ3kimRnjIwvxMgS1soD2ihd0zzjSJWmJDt/PuDNvPwxwCp0tfRA=; 7:N1KyVG7C3pdq/yS5DpXiEYOiNAIImaZ4AjETahkBiMm3InjLftGR3gUO1sybfBw6aQ5FjFa/m6Wk0kf9a3rRusrPkRCp2q6IBKKE2LqzUUYw/elK8fEQ1jyPv02nlsco8g6dsoryyXTwcDE4P99rANFnWMBZLMcr8bH031LHP9BBIsdhy4aCwHhWqZKFLmJe7wW+xp43dmmQID2Oqrh64Ezs6EiWR4PBVEPknhBCacAOh0cZI0cgzJZXo/6m47/P x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB523; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820)(162533806227266)(21748063052155)(31960201722614)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(61426038)(61427038); SRVR:BY2PR03MB523; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB523; x-forefront-prvs: 0036736630 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(24454002)(189002)(377454003)(199003)(13464003)(790700001)(76176999)(86612001)(6116002)(19300405004)(4326007)(102836003)(54356999)(77096005)(50986999)(2906002)(19617315012)(86362001)(68736007)(8676002)(7736002)(8666005)(7696003)(81156014)(7906003)(15975445007)(189998001)(2501003)(16236675004)(19580405001)(19580395003)(2950100001)(3280700002)(81166006)(9686002)(8936002)(74316002)(3660700001)(106356001)(10090500001)(11100500001)(87936001)(5001770100001)(2900100001)(10400500002)(5002640100001)(122556002)(5005710100001)(93886004)(33656002)(92566002)(10290500002)(97736004)(19625215002)(586003)(105586002)(101416001)(8990500004)(99286002)(7846002)(76576001)(7059030)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB523; 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: 16 Aug 2016 14:49:00.6520 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB523 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Tue, 16 Aug 2016 14:49:04 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Liming. I'm a bit confused by your email. I my original email below, I reference directly: >> DSC spec (January 2016 1.26) says I can do this: >> >> (Section 3.6 pp 76) In this section it says: ... Build options priority (appended from lowest to highest and/or highest repl= acement) is: * Highest, DSC file's component scoped for individual INF fi= les. * [BuildOptions.$(arch).CodeBase.Edk2ModuleType] * [BuildOptions.$(arch).CodeBase] * [BuildOptions.common.CodeBase] * [BuildOptions.$(arch)] * [BuildOptions.common] * [BuildOptions] * INF File's [BuildOptions] section * Lowest - tools_def.txt entry In the "Prototype" section immediately below this (Page 79) is the grammar. There is no interpretation of the grammar corresponds to [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] Which is the format that actually works in the code. Is there some other section or interpretation that you are referring to? K2 From: Gao, Liming [mailto:liming.gao@intel.com] Sent: Monday, August 15, 2016 7:17 PM To: Kurt Kennett ; afish@apple.com Cc: edk2-devel Subject: RE: [edk2] Setting BuildOptions by module type does not seem to wo= rk Hi, This style has been defined in DSC spec 1.26. It can be downloaded from h= ttps://github.com/tianocore/tianocore.github.io/wiki/EDK%20II%20Specificati= ons Thanks Liming From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Kurt= Kennett Sent: Tuesday, August 16, 2016 1:56 AM To: afish@apple.com Cc: edk2-devel > Subject: Re: [edk2] Setting BuildOptions by module type does not seem to wo= rk 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] 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 wrote: > > No, I had not tried that. I tried it now and it does not seem to work. > > I have: > > [BuildOptions.AARCH64.common] > *_VS2015x86_AARCH64_DLINK_FLAGS =3D /BORK > > [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] > *_VS2015x86_AARCH64_DLINK_FLAGS =3D /PLOR > > [BuildOptions.AARCH64.common.EDKII.DXE_RUNTIME_DRIVER] > *_VS2015x86_AARCH64_DLINK_FLAGS =3D /BONK > > And the only one that makes it to the command line is the /BORK one. > > (The tools do not complain about the specification of options as above). > I'm guessing the syntax checking is not very good? [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? Thanks, Andrew Fish > K2 > > -----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 > to work > > >> On Aug 15, 2016, at 9:10 AM, Kurt Kennett wrote: >> >> DSC spec (January 2016 1.26) says I can do this: >> >> (Section 3.6 pp 76) >> >> ... >> * [BuildOptions.$(arch).CodeBase.Edk2ModuleType] >> ... >> >> And this works fine: >> >> [BuildOptions.AARCH64.common] >> *_VS2015x86_*_DLINK_FLAGS =3D /BORK >> >> But when I also do: >> >> [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] >> *_VS2015x86_*_DLINK_FLAGS =3D /PLOR >> >> 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. >> > > Kurt, > > Have you tried [BuildOptions.AARCH64.EDKII.DXE_RUNTIME_DRIVER]? Do you ne= ed EDK compatibility? > > I'm guessing that works given: > ~/work/src/edk2(master)>git grep "BuildOptions." -- *.dsc | grep > DXE_RUNTIME_DRIVER > OvmfPkg/OvmfPkgIa32.dsc:49:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIV > ER] > OvmfPkg/OvmfPkgIa32X64.dsc:54:[BuildOptions.common.EDKII.DXE_RUNTIME_D > RIVER] > OvmfPkg/OvmfPkgX64.dsc:54:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVE > R] > QuarkPlatformPkg/Quark.dsc:885:[BuildOptions.common.EDKII.DXE_RUNTIME_ > DRIVER] > > >> I'm not familiar with the DSC processing tools source. Anybody know wher= e to look to see why not? >> > > It starts here: > https://github.com/tianocore/edk2/blob/master/BaseTools/Source/Python/ > build/build.py and uses some code from: > https://github.com/tianocore/edk2/tree/master/BaseTools/Source/Python/ > Common > > Thanks, > > Andrew Fish > >> K2 >> >> >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel