From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in5.apple.com (mail-out5.apple.com [17.151.62.27]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E6C2B1A1DF6 for ; Tue, 16 Aug 2016 08:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1471360505; x=2335274105; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Byw1h6XSi17JzMCbOlFeBlJnoIvqVLOkRXBiDk3XDDg=; b=UfEiZlJHV0yoVSjg4Jp60vTaWOUFuhQD4GVs9rXNNhyXVAdMk+YVUXeSyCEtqfr5 wWBTCxuSZlqc/4JKnmVZabm+zwmjTcD1lB5WTkGDf9tBghG0nDFU2VjRGhS8Nnuy gW8QPZZ/wf76K28btTF+2ARcwBeLl4ActCjsS7dFv1QMlU8I1rv6qVOcX9eP1A44 ov0UrVzr4Q5xs+u6I8VUF4QtrpXG/bTv9OxTXL206rkYU077TTB2g9t6z1aazP6M pqyIHuu5/PELRoXsxQPstm/kCXlNaY9loDV38DXQ+VoUqjn+PVSM0PpHJd6BDxJ/ AO3aOxSenx41XTJEmr0elw==; Received: from relay5.apple.com (relay5.apple.com [17.128.113.88]) by mail-in5.apple.com (Apple Secure Mail Relay) with SMTP id D7.28.07273.9FD23B75; Tue, 16 Aug 2016 08:15:05 -0700 (PDT) X-AuditID: 11973e13-f794a6d000001c69-e4-57b32df9cfc2 Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by relay5.apple.com (Apple SCV relay) with SMTP id ED.95.30701.9FD23B75; Tue, 16 Aug 2016 08:15:05 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.23.169] by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OC000IS5D146220@nwk-mmpp-sz09.apple.com>; Tue, 16 Aug 2016 08:15:05 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Tue, 16 Aug 2016 08:15:04 -0700 Cc: "Gao, Liming" , edk2-devel Message-id: References: <56352D44-41C4-49D8-8BFA-C92B84CC0CDC@apple.com> <4FA3496D-C050-40FA-8CB1-E3603E431E79@apple.com> <4A89E2EF3DFEDB4C8BFDE51014F606A1155EB6CE@shsmsx102.ccr.corp.intel.com> To: Kurt Kennett X-Mailer: Apple Mail (2.3112) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsUi2FAYoftTd3O4wY3VghZ7Dh1ltpi03MJi xb0N7A7MHov3vGTy6J79j8Wjdcdf9gDmKC6blNSczLLUIn27BK6M33/esRT838tUsWfVVOYG xkOzmboYOTkkBEwkbpw8zwphi0lcuLeerYuRi0NIYC+jxI7Zr9lhin5O+c8CYgsJHGSU6J4n D2LzCghK/Jh8DyzOLBAmsWPjf2aI5neMEp9OPwFrFhYQl3h3ZhMzhO0rMePfarAGNgFliRXz P4DVcArESlycugbsChYBVYmHPTuZIYb6SVw5vIsNYpmNxLqjb6Gu+88sMet+H1ARB4eIgK7E xi5jiENlJfZtWMAGYd9mk/h8XGMCo/AsJLfOQnLrLKBuZgF1iSlTciHC2hJP3l1ghbDVJBb+ XsSELL6AkW0Vo1BuYmaObmaeqV5iQUFOql5yfu4mRlDcTLcT3sF4epXVIUYBDkYlHt4TDJvC hVgTy4orcw8xSnOwKInzbvu3PlxIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QDIwvPzwc/vPfd WiJ8yOF5mMU8nibnh2v+VDEoGCk9ny89M7XfJ0dpIZ/xW2GWKhedFd/inT9s3ePSvCg7bb6q h57OZDHniD1mupE5k9t8Izvdl3hv/nCLr6Wm/fEczq6NfN+qWWZ4Hqt4s09tlbNjiFpuvZD5 IfO9Zub10QxGfPFGet7lrp1KLMUZiYZazEXFiQDsZ+nvfAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsUi2FAcoPtTd3O4weep3BZ7Dh1ltpi03MJi xb0N7A7MHov3vGTy6J79j8Wjdcdf9gDmKC6blNSczLLUIn27BK6M33/esRT838tUsWfVVOYG xkOzmboYOTkkBEwkfk75zwJhi0lcuLeeDcQWEjjIKNE9Tx7E5hUQlPgx+R5YDbNAmMSOjf+Z uxi5gGreMUp8Ov2EHSQhLCAu8e7MJmYI21dixr/VYA1sAsoSK+Z/AKvhFIiVuDh1DSuIzSKg KvGwZyczxFA/iSuHd7FBLLORWHf0LRvEgv/MErPu9wEVcXCICOhKbOwyhjhUVmLfhgVsExgF ZiG5bxaS+2YBdTALqEtMmZILEdaWePLuAiuErSax8PciJmTxBYxsqxgFilJzEitN9RILCnJS 9ZLzczcxggO9MGIH4/9lVocYBTgYlXh4FZg3hQuxJpYVV+YeYpTgYFYS4Z2gsTlciDclsbIq tSg/vqg0J7X4EONERqAnJzJLiSbnA+MwryTe0MTEwMTY2MzY2NzEnJbCSuK8l5SBLhJITyxJ zU5NLUgtgjmKiYNTqoGR2brzDDdPIs/jJTtnLC6/cLLj9CWT9ZFf+teucvrxc6/9+YbnW1zX Hc/qjV5dezVWaF2KZMMvG41ap6nxK15y8kXw2YVOPScfnSy6MJg34v3GzWdnnLIP+T29itXt afwOpWvafxUd923lz1nzzbNs49L3p6s1NlvdmJNbuTj/WmBB8mvWRXwCSizFGYmGWsxFxYkA 27FPh+cCAAA= 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 15:15:06 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Aug 16, 2016, at 7:49 AM, Kurt Kennett = wrote: >=20 > Hi Liming. I=E2=80=99m a bit confused by your email. > =20 > I my original email below, I reference directly: > =20 > >> DSC spec (January 2016 1.26) says I can do this: > >>=20 > >> (Section 3.6 pp 76) >=20 > In this section it says: > =20 > =E2=80=A6 > Build options priority (appended from lowest to highest and/or highest = replacement) is: > =E2=80=A2 Highest, DSC file=E2=80=99s component scoped = for individual INF files. > =E2=80=A2 [BuildOptions.$(arch).CodeBase.Edk2ModuleType] > =E2=80=A2 [BuildOptions.$(arch).CodeBase] > =E2=80=A2 [BuildOptions.common.CodeBase] > =E2=80=A2 [BuildOptions.$(arch)] > =E2=80=A2 [BuildOptions.common] > =E2=80=A2 [BuildOptions] > =E2=80=A2 INF File=E2=80=99s [BuildOptions] section > =E2=80=A2 Lowest - tools_def.txt entry > =20 > In the =E2=80=9CPrototype=E2=80=9D section immediately below this = (Page 79) is the grammar. > =20 > There is no interpretation of the grammar corresponds to > =20 > [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] Kurt, It looks like a bug in the spec as there is a missing Edk2ModuleType = common type.=20 =E2=80=A2 [BuildOptions.$(arch).CodeBase.Edk2ModuleType] =E2=80=A2 [BuildOptions.common.CodeBase.Edk2ModuleType] =E2=80=A2 [BuildOptions.$(arch).CodeBase] Or I guess you could interpret the spec that the last = BuildOptions.$(arch).CodeBase.Edk2ModuleType wins either common or = matching $(arch)?=20 Did [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] not work? Did you = try without the illegal entry = [BuildOptions.AARCH64.common.EDKII.DXE_RUNTIME_DRIVER] Thanks, Andrew Fish > =20 > Which is the format that actually works in the code. > =20 > Is there some other section or interpretation that you are referring = to? > =20 > K2 > =20 > From: Gao, Liming [mailto:liming.gao@intel.com]=20 > 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 work > =20 > Hi, > This style has been defined in DSC spec 1.26. It can be downloaded = from = https://github.com/tianocore/tianocore.github.io/wiki/EDK%20II%20Specifica= tions = > =20 > 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 work > =20 > Okay this seems to work: >=20 > [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] >=20 > Thanks Andrew. >=20 > (doesn't match the spec though :) ) >=20 > K2 >=20 > -----Original Message----- > From: afish@apple.com [mailto:afish@apple.com = ]=20 > Sent: Monday, August 15, 2016 10:30 AM > To: Kurt Kennett=20 > Cc: edk2-devel=20 > Subject: Re: [edk2] Setting BuildOptions by module type does not seem = to work >=20 >=20 > > On Aug 15, 2016, at 9:34 AM, Kurt Kennett wrote: > >=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 >=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] >=20 > I see the [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] form used in = other places, but you have an extra .common?=20 >=20 > Thanks, >=20 > Andrew Fish >=20 > > K2 > >=20 > > -----Original Message----- > > From: afish@apple.com = [mailto:afish@apple.com ] > > Sent: Monday, August 15, 2016 9:22 AM > > To: Kurt Kennett=20 > > Cc: edk2-devel=20 > > 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 wrote: > >>=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 need 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 = where 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 = >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel =