diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-10-28 09:09:48 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-11-02 09:50:04 +0800 |
commit | a0c9ce31b686f1aad449e3572fddbe981fe9e1c7 (patch) | |
tree | 6674bc3ebc3708cfb7fab9739e4e871c9e1e90d1 | |
parent | 18ca2fec97010e8a79407ec092539218c04ee1c5 (diff) | |
download | edk2-platforms-a0c9ce31b686f1aad449e3572fddbe981fe9e1c7.tar.xz |
BaseTools: Fix a bug for tooldef class not include the newly Env
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>
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index f17b55c4cf..35e70370a5 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -825,6 +825,8 @@ class Build(): EdkLogger.quiet("%-16s = %s" % ("POSTBUILD", self.PostbuildScript))
if self.PrebuildScript:
self.LaunchPrebuild()
+ self.TargetTxt = TargetTxtClassObject()
+ self.ToolDef = ToolDefClassObject()
if not (self.LaunchPrebuildFlag and os.path.exists(self.PlatformBuildPath)):
self.InitBuild()
|