summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/AutoGen.py
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2018-06-28 05:27:48 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-06-29 15:38:51 +0800
commit7c12d613ba78d2b5ab781a91bbb011304ffab705 (patch)
treef3cf4fc4797c4b20536804d4d38e8e4a44892da0 /BaseTools/Source/Python/AutoGen/AutoGen.py
parent395f33368620e13b64f7f5c10fd1d87c7559a2fc (diff)
downloadedk2-7c12d613ba78d2b5ab781a91bbb011304ffab705.tar.gz
edk2-7c12d613ba78d2b5ab781a91bbb011304ffab705.tar.bz2
edk2-7c12d613ba78d2b5ab781a91bbb011304ffab705.zip
BaseTools: AutoGen - clean up access
1) add a property so others can access needed data 2) change GenMake to use property 3) add local variable in GenMake to speed up access 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/AutoGen/AutoGen.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py
index 381dbc0a71..c8009d04d7 100644
--- a/BaseTools/Source/Python/AutoGen/AutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/AutoGen.py
@@ -2780,7 +2780,7 @@ class ModuleAutoGen(AutoGen):
self._Macro = OrderedDict()
self._Macro["WORKSPACE" ] = self.WorkspaceDir
self._Macro["MODULE_NAME" ] = self.Name
- self._Macro["MODULE_NAME_GUID" ] = self._GetUniqueBaseName()
+ self._Macro["MODULE_NAME_GUID" ] = self.UniqueBaseName
self._Macro["MODULE_GUID" ] = self.Guid
self._Macro["MODULE_VERSION" ] = self.Version
self._Macro["MODULE_TYPE" ] = self.ModuleType
@@ -4408,6 +4408,7 @@ class ModuleAutoGen(AutoGen):
BuildCommand = property(_GetBuildCommand)
FixedAtBuildPcds = property(_GetFixedAtBuildPcds)
+ UniqueBaseName = property(_GetUniqueBaseName)
# This acts like the main() function for the script, unless it is 'import'ed into another script.
if __name__ == '__main__':