From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: bob.c.feng@intel.com) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by groups.io with SMTP; Tue, 21 May 2019 18:05:55 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2019 18:05:54 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 21 May 2019 18:05:54 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 21 May 2019 18:05:54 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.18]) with mapi id 14.03.0415.000; Wed, 22 May 2019 09:05:52 +0800 From: "Bob Feng" To: "Kinney, Michael D" , "Gao, Liming" , "devel@edk2.groups.io" Subject: Re: [Patch] BaseTools: Remove './SecMain' from 'run' target Thread-Topic: [Patch] BaseTools: Remove './SecMain' from 'run' target Thread-Index: AQHVBvpWjYakGzkbJEGDZvTEKnWOq6ZjbxaAgACG3tCAEUNyAIAACsgAgAEiKiA= Date: Wed, 22 May 2019 01:05:52 +0000 Message-ID: <08650203BA1BD64D8AD9B6D5D74A85D160112258@SHSMSX101.ccr.corp.intel.com> References: <20190510063336.27928-1-bob.c.feng@intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E4466B8@SHSMSX104.ccr.corp.intel.com> <08650203BA1BD64D8AD9B6D5D74A85D16010A5F3@SHSMSX101.ccr.corp.intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E44EF2C@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: bob.c.feng@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I entered a new BZ to create the EmulatorPkg postbuild script for "build ru= n" support. https://bugzilla.tianocore.org/show_bug.cgi?id=3D1828 Thanks, Bob -----Original Message----- From: Kinney, Michael D=20 Sent: Tuesday, May 21, 2019 11:45 PM To: Gao, Liming ; Feng, Bob C ;= devel@edk2.groups.io; Kinney, Michael D Subject: RE: [Patch] BaseTools: Remove './SecMain' from 'run' target Reviewed-by: Michael D Kinney If we want the 'run' target to work for the EmulatorPkg, we can add a pytho= n post build script to support that. Please enter a BZ feature request. There is an example in the following edk2-staging branch that runs QEMU for= an OvmfPkg build using a 'run' target. https://github.com/tianocore/edk2-staging/tree/Bug_1525_FmpDevicePkg_Multip= leControllers/OvmfPkg The DSC file contains a POSTBUILD statement. There are two python scripts = in this example, but could be consolidated to a single python script for th= e EmulatorPkg. Run.py finds the output directory where the EmulatorPkg exe= cutable for each supported host OS can be found. https://github.com/tianocore/edk2-staging/blob/Bug_1525_FmpDevicePkg_Multip= leControllers/OvmfPkg/OvmfPkgIa32X64.dsc https://github.com/tianocore/edk2-staging/blob/Bug_1525_FmpDevicePkg_Multip= leControllers/OvmfPkg/PostBuild.py https://github.com/tianocore/edk2-staging/blob/Bug_1525_FmpDevicePkg_Multip= leControllers/OvmfPkg/Run.py Best regards, Mike > -----Original Message----- > From: Gao, Liming > Sent: Tuesday, May 21, 2019 8:06 AM > To: Feng, Bob C ; devel@edk2.groups.io > Cc: Kinney, Michael D > Subject: RE: [Patch] BaseTools: Remove './SecMain' from 'run' target >=20 > Bob: > Because NT32 has been removed, this change should be OK.=20 > Reviewed-by: Liming Gao >=20 > Thanks > Liming > > -----Original Message----- > > From: Feng, Bob C > > Sent: Friday, May 10, 2019 3:34 PM > > To: Gao, Liming ; > devel@edk2.groups.io > > Cc: Kinney, Michael D > > Subject: RE: [Patch] BaseTools: Remove './SecMain' > from 'run' target > > > > I think NT32Pkg need a POSTBUILD scripts to execute > its run command. > > > > > > -----Original Message----- > > From: Gao, Liming > > Sent: Friday, May 10, 2019 3:26 PM > > To: Feng, Bob C ; > devel@edk2.groups.io > > Cc: Kinney, Michael D > > Subject: RE: [Patch] BaseTools: Remove './SecMain' > from 'run' target > > > > Bob: > > Please make sure run command still works on NT32 > platform. > > > > >-----Original Message----- > > >From: Feng, Bob C > > >Sent: Friday, May 10, 2019 2:34 PM > > >To: devel@edk2.groups.io > > >Cc: Feng, Bob C ; Gao, Liming=20 > > >; Kinney, Michael D > > > >Subject: [Patch] BaseTools: Remove './SecMain' from > 'run' target > > > > > >BZ: > https://bugzilla.tianocore.org/show_bug.cgi?id=3D1561 > > > > > >When a target of 'run' is passed into build.py, > BaseTools > > >unconditionally attempts to execute the application > called './SecMain' > > >in the build output directory. > > > > > >This behavior applies to the Nt32Pkg which is being > replaced with > > >features in the EmulatorPkg. > > > > > >Signed-off-by: Bob Feng > > >Cc: Liming Gao > > >Cc: Michael D Kinney > > >--- > > > BaseTools/Source/Python/build/build.py | 4 ---- > > > 1 file changed, 4 deletions(-) > > > > > >diff --git a/BaseTools/Source/Python/build/build.py > > >b/BaseTools/Source/Python/build/build.py > > >index 7271570d29..04f266abf5 100644 > > >--- a/BaseTools/Source/Python/build/build.py > > >+++ b/BaseTools/Source/Python/build/build.py > > >@@ -1225,14 +1225,10 @@ class Build(): > > > > > > makefile =3D > > > >GenMake.BuildFile(AutoGenObject)._FILE_NAME_[GenMake.g > MakeType] > > > > > > # run > > > if Target =3D=3D 'run': > > >- RunDir =3D > os.path.normpath(os.path.join(AutoGenObject.BuildDir, > > >GlobalData.gGlobalDefines['ARCH'])) > > >- Command =3D '.\SecMain' > > >- os.chdir(RunDir) > > >- LaunchCommand(Command, RunDir) > > > return True > > > > > > # build modules > > > if BuildModule: > > > BuildCommand =3D BuildCommand + [Target] > > >-- > > >2.20.1.windows.1