diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-09-11 06:18:05 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-09-20 22:18:06 +0800 |
commit | 71cac3f791c2469468838ded6519b624d32345bb (patch) | |
tree | deb7ce643c1350ff4d75af77a48cb58bc14ebf68 /BaseTools/Source/Python/build | |
parent | 6c204ed4f2a5fc7e471e477dfdb276023f6a7310 (diff) | |
download | edk2-71cac3f791c2469468838ded6519b624d32345bb.tar.gz edk2-71cac3f791c2469468838ded6519b624d32345bb.tar.bz2 edk2-71cac3f791c2469468838ded6519b624d32345bb.zip |
BaseTools: Workspace classes refactor properties
1) use decorators
2) also change some private functions to public when all callers are
external
3) change external callers to use functions instead of directly
accessing private data.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index e6a9c6ef71..d74082fc26 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1006,7 +1006,7 @@ class Build(): else:
self.Db.InitDatabase()
self.Db_Flag = True
- Platform = self.Db._MapPlatform(str(self.PlatformFile))
+ Platform = self.Db.MapPlatform(str(self.PlatformFile))
self.Prebuild = str(Platform.Prebuild)
if self.Prebuild:
PrebuildList = []
@@ -1045,7 +1045,7 @@ class Build(): if 'POSTBUILD' in GlobalData.gCommandLineDefines:
self.Postbuild = GlobalData.gCommandLineDefines.get('POSTBUILD')
else:
- Platform = self.Db._MapPlatform(str(self.PlatformFile))
+ Platform = self.Db.MapPlatform(str(self.PlatformFile))
self.Postbuild = str(Platform.Postbuild)
if self.Postbuild:
PostbuildList = []
|