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/GenFds | |
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/GenFds')
-rw-r--r-- | BaseTools/Source/Python/GenFds/FfsInfStatement.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/GenFds/FfsInfStatement.py b/BaseTools/Source/Python/GenFds/FfsInfStatement.py index 56bb966698..6149bc81b4 100644 --- a/BaseTools/Source/Python/GenFds/FfsInfStatement.py +++ b/BaseTools/Source/Python/GenFds/FfsInfStatement.py @@ -341,9 +341,7 @@ class FfsInfStatement(FfsInfStatementClassObject): self.InfModule = Inf
self.PcdIsDriver = Inf.PcdIsDriver
self.IsBinaryModule = Inf.IsBinaryModule
- Inf._GetDepex()
- Inf._GetDepexExpression()
- if len(Inf._Depex.data) > 0 and len(Inf._DepexExpression.data) > 0:
+ if len(Inf.Depex.data) > 0 and len(Inf.DepexExpression.data) > 0:
self.Depex = True
GenFdsGlobalVariable.VerboseLogger("BaseName : %s" % self.BaseName)
|