From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in2.apple.com (mail-out2.apple.com [17.151.62.25]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 076A31A1E12 for ; Tue, 16 Aug 2016 08:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1471362434; x=2335276034; 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=zOeUgeo1nVIZAWr1LgsruE2yabsP7xTmJ+3qFDqIeLo=; b=Ow+M51e0rZ5dYi1i6hUvHfsMIERXVS1EXcMvzxN7TcpmVFtFmnEMCDBi6o4QODwb Nx2DNg7BnCX6YHZ4oR/gNZe0MJ+ie3jDFWY18EeTqPRSJ1D45/2hPH+o52xxbIPI TKfEgYfdgDRRLUH8qDdqumhiOILb8lEdBN/WsKnBwRe0zKbGriTlivQ9Y1dlGeEu 4J2EIr/e4Qh4qDqEz2AVQw4MzM7Fu1WR6gXB8S9c1Zp17mpotvlLTufRmRZrgWj2 gRrCay5qWQFz27lzPOCxDl86vJJ6nxbfYOc/vjJLILcAj+BkTaHMrnusVIkQGBVb VTqpj0JaJ+iE1eCyWDs57A==; Received: from relay3.apple.com (relay3.apple.com [17.128.113.83]) by mail-in2.apple.com (Apple Secure Mail Relay) with SMTP id 4E.77.10360.28533B75; Tue, 16 Aug 2016 08:47:14 -0700 (PDT) X-AuditID: 11973e11-f79e76d000002878-b5-57b33582f4d8 Received: from nwk-mmpp-sz08.apple.com (nwk-mmpp-sz08.apple.com [17.128.115.25]) by relay3.apple.com (Apple SCV relay) with SMTP id 17.FD.18578.28533B75; Tue, 16 Aug 2016 08:47:14 -0700 (PDT) MIME-version: 1.0 Received: from [17.114.155.95] by nwk-mmpp-sz08.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OC00030YEIQ0410@nwk-mmpp-sz08.apple.com>; Tue, 16 Aug 2016 08:47:14 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Tue, 16 Aug 2016 08:47:13 -0700 Cc: edk2-devel , "Gao, Liming" 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+NgFjrLLMWRmVeSWpSXmKPExsUi2FAYrNtkujncYOtBVYs9h44yW0xabmGx 4t4Gdgdmj8V7XjJ5dM/+x+LRuuMvewBzFJdNSmpOZllqkb5dAlfGt9YDbAWL7Cralos2MJ40 6WLk5JAQMJF4uOw5C4QtJnHh3nq2LkYuDiGBvYwSfx8eZYUpejTrA1TiIKPE+gfn2UASvAKC Ej8m3wPq5uBgFlCXmDIlFyQsJPCOUWJaVyCILSwgLvHuzCZmCNtXYsa/1WDL2ASUJVbM/8AO YnMKxEr82nsZbCSLgKrE5sdtzBAj/SS+r1QDCTMLaEs8eXeBFWKrjUTb6t1Q5zSzSnxffIsR pF5EQFdiY5cxxMmyEvs2LACrkRDYwyax4/ETtgmMIrOQXD0L4epZSFYsYGRexSiUm5iZo5uZ Z6SXWFCQk6qXnJ+7iREU/tPtBHcwHl9ldYhRgINRiYf3BMOmcCHWxLLiytxDjNIcLErivLbA 6BESSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAKJQj+EmocFZG217hdWlnrkVyur+ZvbNrvtKZ I3MMY7KWJ9StPpqzL13k2kM1zq++C6pk5mTaRW2Olv74Ivn23Re6fwNvOD+dZFJwa53c6xrL 6a2Vbe+7M2Q5l0Vd2GK4xOfSu73/C5ijTnh+P+N66AaLT+NxtlXmDwolrJY3v3S62ttSmqFc p8RSnJFoqMVcVJwIAH3GpidgAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeLIzCtJLcpLzFFi42IRbCiW1G0y3RxucH6xosWeQ0eZLSYtt7BY cW8DuwOzx+I9L5k8umf/Y/Fo3fGXPYA5issmJTUnsyy1SN8ugSvjW+sBtoJFdhVty0UbGE+a dDFyckgImEg8mvWBDcIWk7hwbz2QzcUhJHCQUWL9g/NgCV4BQYkfk++xdDFycDALqEtMmZIL EhYSeMcoMa0rEMQWFhCXeHdmEzOE7Ssx499qFhCbTUBZYsX8D+wgNqdArMSvvZfBRrIIqEps ftzGDDHST+L7SjWQMLOAtsSTdxdYIbbaSLSt3g11TjOrxPfFtxhB6kUEdCU2dhlDnCwrsW/D ArYJjIKzkBw6C+HQWUimLmBkXsUoUJSak1hprJdYUJCTqpecn7uJERyuhcE7GP8sszrEKMDB qMTDe4JhU7gQa2JZcWXuIUYJDmYlEd5PhpvDhXhTEiurUovy44tKc1KLDzEmA70ykVlKNDkf GEt5JfGGJiYGJsbGZsbG5ibmpAkrifNeUgZaIZCeWJKanZpakFoEs4WJg1OqgVGxem5h4Y+z n7/eEbWJVJgpyzr/+ISDF1WmOK+y+LXy+8ZYrvnnljZvbvyee+pDr/Rs+wfn78830epf+r70 z8wzoTxv4wP7Ln6xtXHj59CJU9ghbV7YdjEw/mygyC+hVKuXauuEJ0i/ebMzle9jLedujR9H dhWc1l5dZsfz3SzGf2fhxG+8V/qUWIozEg21mIuKEwEQQ3M0mwIAAA== 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:47:15 -0000 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable > On Aug 16, 2016, at 8:22 AM, Kurt Kennett = wrote: >=20 > Thanks for your help, Andre. I appreciate it. =E2=98=BA >=20 > [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] > Does not work. >=20 Can you file a bugzilla report on the tools, and another on the spec to = mention BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER Thanks, Andrew Fish > [BuildOptions.AARCH64.common.EDKII.DXE_RUNTIME_DRIVER] > Does not work. >=20 > [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] > Works. >=20 >=20 > K2 >=20 > From: afish@apple.com [mailto:afish@apple.com] > Sent: Tuesday, August 16, 2016 8:15 AM > To: Kurt Kennett > Cc: Gao, Liming ; edk2-devel = > Subject: Re: [edk2] Setting BuildOptions by module type does not seem = to work >=20 >=20 > 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 >=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] >=20 > Kurt, >=20 > It looks like a bug in the spec as there is a missing Edk2ModuleType = common type. > =E2=80=A2 [BuildOptions.$(arch).CodeBase.Edk2ModuleType] > =E2=80=A2 [BuildOptions.common.CodeBase.Edk2ModuleType] > =E2=80=A2 [BuildOptions.$(arch).CodeBase] >=20 > 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] >=20 > Thanks, >=20 > Andrew Fish >=20 >=20 >=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] > 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] > 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 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? > [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 > 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 >> Cc: edk2-devel >> Subject: Re: [edk2] Setting BuildOptions by module type does not seem >> 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 >> 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] >>=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: >> = 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 >>=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 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel