Basetools/GenFds: refactor class FV
1) initialize UiFvName via __init__ parameter. No change to default behavior. 2) initialize 3 empty lists in __init__. Curently not guarenteed initialized. Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@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>
This commit is contained in:
committed by
Yonghong Zhu
parent
5a264f28ee
commit
9ffaaac2e5
@ -2090,8 +2090,7 @@ class FdfParser:
|
||||
if not self._IsToken(TAB_SECTION_END):
|
||||
raise Warning("expected ']'", self.FileName, self.CurrentLineNumber)
|
||||
|
||||
FvObj = FV()
|
||||
FvObj.UiFvName = self.CurrentFvName
|
||||
FvObj = FV(Name=self.CurrentFvName)
|
||||
self.Profile.FvDict[self.CurrentFvName] = FvObj
|
||||
|
||||
Status = self._GetCreateFile(FvObj)
|
||||
@ -2102,9 +2101,6 @@ class FdfParser:
|
||||
|
||||
self._GetAddressStatements(FvObj)
|
||||
|
||||
FvObj.FvExtEntryTypeValue = []
|
||||
FvObj.FvExtEntryType = []
|
||||
FvObj.FvExtEntryData = []
|
||||
while True:
|
||||
self._GetSetStatements(FvObj)
|
||||
|
||||
|
Reference in New Issue
Block a user