From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0714.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe42::714]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C6EBA1A1E2A for ; Mon, 15 Aug 2016 09:34:17 -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=YwqHKIuDZQ8Q7GqEwjUbfqMIQAjBP6BV7ccK3x9+fuI=; b=WJ3lJ8fAmkHDu7eR3T5l8Zjil8UQ36KVqKAav7QsvW3CPOVJZLjmkSEzKzfg7wkmbbGfVP/Iu6ZvjpG48N7vF7XgkHTw+b+1SiRpdJkpj1ZwyGHWY4mYSXTNYjuyXYwxiQE06yx+EFVfpFRgBOQiSWCUqQ7iu3PClfXgp+7yHrQ= 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; Mon, 15 Aug 2016 16:34:15 +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 16:34:15 +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: AdH3DXjXZzkLe6CzToa1ZeYDl2WXawAA56WAAAALG0A= Date: Mon, 15 Aug 2016 16:34:14 +0000 Message-ID: References: <56352D44-41C4-49D8-8BFA-C92B84CC0CDC@apple.com> In-Reply-To: <56352D44-41C4-49D8-8BFA-C92B84CC0CDC@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: a29a0fca-7781-43af-f05b-08d3c529ff0c x-microsoft-exchange-diagnostics: 1; BY2PR03MB523; 6:B4HtrTCXDGUDJ88gvw7geFynPt2+lZcBR438ypkz7Jp3IKeZ7NKwgtP6ZWr8zoxzW6+f9slhG1DXlZ4vsAmrGsBhx/skzT+w3Cr7Nbxm7gMEbmwdwDZODtpOMRG3G0/rKe4xecE9F732i7TU7Q16xyUAZurujSk/X6kybwv8OO52z2xbUqkkOrHRlRaPM9XBx6GWzIKTwJfadIMydKEw7sHvY6WPPbLsDN3ZH3TnnrZ6D7fGAH+CvQ9magUmeZ3KzAa9KYGXfjH+SZSkHLE9VgCUzb5wyMtpWM4kqaP6DvkdRsLYiQWCn7ycICJ4W9WP0vStlp0LN4oudkvmJ7/rgQ==; 5:Qkik3FsG8kBtnFu/jW6i7FhgkwA51xwGJ8JoOs7qdMOmHlQO421KBuSCOnZyzIUwH1KIASefNoWn297ZIlLus6Zavg6XfK6vPQ0cnPT/TvldBkVTUnvkqw3p73zfPYpYYvKMwmzSeltsx892yP0RCg==; 24:LYJhKw2t/0BcuexmCJaik6jExHDpHLWVxQVjun0eRxdPqoz+n4SKzn2lJYbOy0OiMpgguIGt/Vg1RPe8MvTJDVNla6XstaqLn1eCWEFZuEU=; 7:B1NKAwUX/cHGZWf5SvhUIJxwKiwAb3CwoPCf6NhUulq9xAR/hzEXNPuCJz+fgLavJf+jX4L6iz1leLj4Ab4TDtQJIp+IFOtwTc1tc00EqkJV6bOZ74h0smINcLk74zOnVjAwwlU1Ia5ydlqJgsByhW6utpn7dlX6RbRKIi4TNAcnTzP4Si5D45pJaoltQsDp7ht0ZQrnWM/CIB21MOLIZotmhinRYECFgx24yF3jz4otBWSA7rxpvzUzTHcuvb9q x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB523; 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:BY2PR03MB523; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB523; x-forefront-prvs: 0035B15214 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(377454003)(199003)(13464003)(24454002)(189002)(106356001)(5002640100001)(2351001)(97736004)(33656002)(92566002)(10290500002)(87936001)(10400500002)(10090500001)(5005710100001)(2900100001)(122556002)(11100500001)(76576001)(99286002)(105586002)(586003)(101416001)(8990500004)(54356999)(50986999)(86612001)(76176999)(68736007)(2906002)(86362001)(77096005)(3280700002)(3660700001)(4326007)(102836003)(6116002)(2501003)(2950100001)(15975445007)(8936002)(9686002)(305945005)(5640700001)(81166006)(74316002)(81156014)(7696003)(1730700003)(8676002)(8666005)(7736002)(189998001)(7846002)(110136002)(19580405001)(19580395003)(7059030)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB523; H:BY2PR03MB522.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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 16:34:14.9848 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB523 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 16:34:18 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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). K2 -----Original Message----- From: afish@apple.com [mailto:afish@apple.com]=20 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 wo= rk > On Aug 15, 2016, at 9:10 AM, Kurt Kennett wr= ote: >=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 Kurt, 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_RUNTIM= E_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_DRIVE= R] > I'm not familiar with the DSC processing tools source. Anybody know wher= e to look to see why not? >=20 It starts here: https://github.com/tianocore/edk2/blob/master/BaseTools/Sou= rce/Python/build/build.py and uses some code from: https://github.com/tiano= core/edk2/tree/master/BaseTools/Source/Python/Common Thanks, Andrew Fish > K2 >=20 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel