]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Remove './SecMain' from 'run' target
authorFeng, Bob C <bob.c.feng@intel.com>
Fri, 10 May 2019 06:33:36 +0000 (14:33 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 22 May 2019 01:15:56 +0000 (09:15 +0800)
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1561

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 <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
BaseTools/Source/Python/build/build.py

index 78654a0deee24c8fa63d109c7865f4a352d89c33..a8b4ce73751fc881a4262d989eff7edb0cc38f5c 100644 (file)
@@ -1232,10 +1232,6 @@ class Build():
 \r
         # run\r
         if Target == 'run':\r
-            RunDir = os.path.normpath(os.path.join(AutoGenObject.BuildDir, GlobalData.gGlobalDefines['ARCH']))\r
-            Command = '.\SecMain'\r
-            os.chdir(RunDir)\r
-            LaunchCommand(Command, RunDir)\r
             return True\r
 \r
         # build modules\r