]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix a bug for tooldef class not include the newly Env
authorYonghong Zhu <yonghong.zhu@intel.com>
Fri, 28 Oct 2016 01:09:48 +0000 (09:09 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 2 Nov 2016 01:50:04 +0000 (09:50 +0800)
Prebuild script may update os.environ, but the tooldef class not include
the new ENV variables. so after the Launch prebuild script, we should
re-init the tooldef class to include the new ENV variables.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/build/build.py

index f17b55c4cfa8003938ab43f634c3003b2819da97..35e70370a5026208c07b6afb8704e1c2cf366568 100644 (file)
@@ -825,6 +825,8 @@ class Build():
             EdkLogger.quiet("%-16s = %s" % ("POSTBUILD", self.PostbuildScript))\r
         if self.PrebuildScript:\r
             self.LaunchPrebuild()\r
+            self.TargetTxt = TargetTxtClassObject()\r
+            self.ToolDef   = ToolDefClassObject()\r
         if not (self.LaunchPrebuildFlag and os.path.exists(self.PlatformBuildPath)):\r
             self.InitBuild()\r
 \r