From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in4.apple.com (mail-out4.apple.com [17.151.62.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2E5F01A1E2C for ; Mon, 15 Aug 2016 10:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1471282183; x=2335195783; 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=Wsup5GIgTU/Xyh4wD/02tTxNqMvhz31v54ZZCADHm0A=; b=VYkzjBWnnuPJGAEcEMrS3Td2rEDHA5sRT9xt/YyvS7JdYT6RMZJQHrFjPcIQ5g9O qiG4M86p94b5S6DkDrw+ozCwTVFYz+4C5/KhPgIaWrjv7L4SWqZ0M42FsbkFNvEa 7N9Z60mrsfsykVE93BoITfmoi2i01h9lwXeeWqNfVZrA0wfwY6xIkpg6ibL7pZBZ gigJ5cpNDQbfPEBEgjw0Zfmm1H/q/rD0gPhaUGLjjl9I+73CMs78O5m0TdwhEn89 5gh7PlsnDe/CeCXv4lVV3107PE8BfBQIZE5SOjy99bR4SVw01vcFgp650QbcrfTi WUOQjNQaU/zKlRK8mgF1YA==; Received: from relay5.apple.com (relay5.apple.com [17.128.113.88]) by mail-in4.apple.com (Apple Secure Mail Relay) with SMTP id 83.BF.07433.70CF1B75; Mon, 15 Aug 2016 10:29:43 -0700 (PDT) X-AuditID: 11973e12-f79b16d000001d09-2e-57b1fc077800 Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by relay5.apple.com (Apple SCV relay) with SMTP id 68.D7.30701.70CF1B75; Mon, 15 Aug 2016 10:29:43 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.67.115] by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OBY00JWQOKXOX20@nwk-mmpp-sz11.apple.com>; Mon, 15 Aug 2016 10:29:43 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Mon, 15 Aug 2016 10:29:33 -0700 Cc: edk2-devel Message-id: <4FA3496D-C050-40FA-8CB1-E3603E431E79@apple.com> References: <56352D44-41C4-49D8-8BFA-C92B84CC0CDC@apple.com> To: Kurt Kennett X-Mailer: Apple Mail (2.3112) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKLMWRmVeSWpSXmKPExsUi2FAYocv+Z2O4QV+DocWeQ0eZLSYtt3Bg 8uie/Y/Fo3XHX/YApigum5TUnMyy1CJ9uwSujO61W5gKDkhUTJtxg62B8aBIFyMnh4SAicSV WzfYIWwxiQv31rN1MXJxCAnsZZQ4v3EHO0xRw8uzYLaQwCFGiYk/DUBsXgFBiR+T77F0MXJw MAvISxw8LwsSZhbQkvj+qJUFYs47RomHsxYwgSSEBcQl3p3ZxAxh+0rM+LeaBcRmE1CWWDH/ A9h8ToFYiU9bzoHFWQRUJXqe9bFCDNWQ+Lp6OzvEXhuJ1a0PoBY8YJT4O+cQ2BEiAroSG7uM IW6Wldi3YQHYMxICa9gkTu65wTqBUWQWkrtnIdw9C8ndCxiZVzEK5SZm5uhm5pnoJRYU5KTq JefnbmIEhft0O6EdjKdWWR1iFOBgVOLh3VG9IVyINbGsuDL3EKM0B4uSOO+6f+vDhQTSE0tS s1NTC1KL4otKc1KLDzEycXBKNTCWfszcVW+vvYe3q0hgnTPno8X3LXcFlwZXfFdkNGBvWG8/ 2bj+/SnO+0u8c+8elM+UFexprZjDoe0l5WwXVzFlw1275AmLUv7dTj+7YI+LlYvLwamdMasV bkmYplu5fg1t/+Nr8V30ALtxvXl5aqlowLJzIj1/7f6H/dW+OjGBR2aWjOKEECWW4oxEQy3m ouJEAHtampJYAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgkeLIzCtJLcpLzFFi42IRbCiercv+Z2O4wcRWPYs9h44yW0xabuHA 5NE9+x+LR+uOv+wBTFFcNimpOZllqUX6dglcGd1rtzAVHJComDbjBlsD40GRLkZODgkBE4mG l2fZIWwxiQv31rOB2EIChxglJv40ALF5BQQlfky+x9LFyMHBLCAvcfC8LEiYWUBL4vujVqAw F1D5O0aJh7MWMIEkhAXEJd6d2cQMYftKzPi3mgXEZhNQllgx/wPYLk6BWIlPW86BxVkEVCV6 nvWxQgzVkPi6ejs7xF4bidWtD6AWPGCU+DvnENgRIgK6Ehu7jCFulpXYt2EB2wRGwVlITp2F cOosJKcuYGRexShQlJqTWGmql1hQkJOql5yfu4kRHJ6FETsY/y+zOsQowMGoxMO7o3pDuBBr YllxZS4wKDiYlUR4s75tDBfiTUmsrEotyo8vKs1JLT7EmAx0/0RmKdHkfGDs5JXEG5qYGJgY G5sZG5ubmJMmrCTOe2fOunAhgfTEktTs1NSC1CKYLUwcnFINjDWHXsdJHYvWl2JN1GKyl7Vj SeDJvx1+NjX91bow5e53YhuvC66QvhB4L0h/397K0PkcaxM8gw8928fpMDMq0i/CLI0lefkR t9b+Ovd7xXmqD0/5RK0LMzFn8Hu/IGRCzWn1GaL+9gX16VPvCs0wemBt8PUo47u6y6w52prp L9ZtnvAwv6BCiaU4I9FQi7moOBEAwGwzV5MCAAA= 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:29:44 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > 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 = /BORK > > [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] > *_VS2015x86_AARCH64_DLINK_FLAGS = /PLOR > > [BuildOptions.AARCH64.common.EDKII.DXE_RUNTIME_DRIVER] > *_VS2015x86_AARCH64_DLINK_FLAGS = /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 = /BORK >> >> But when I also do: >> >> [BuildOptions.AARCH64.common.DXE_RUNTIME_DRIVER] >> *_VS2015x86_*_DLINK_FLAGS = /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 need 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_DRIVER] > OvmfPkg/OvmfPkgIa32X64.dsc:54:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] > OvmfPkg/OvmfPkgX64.dsc:54:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] > QuarkPlatformPkg/Quark.dsc:885:[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] > > >> I'm not familiar with the DSC processing tools source. Anybody know where 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