BaseTools/UPT: Fix a parser issue
Update the method to get PCD information and support empty section. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@ -568,8 +568,9 @@ def GenUserExtensions(ModuleObject):
|
||||
if UserExtension.GetIdentifier() == 'Depex':
|
||||
continue
|
||||
Statement = UserExtension.GetStatement()
|
||||
if not Statement:
|
||||
continue
|
||||
# Comment the code to support user extension without any statement just the section header in []
|
||||
# if not Statement:
|
||||
# continue
|
||||
ArchList = UserExtension.GetSupArchList()
|
||||
for Index in xrange(0, len(ArchList)):
|
||||
ArchList[Index] = ConvertArchForInstall(ArchList[Index])
|
||||
|
Reference in New Issue
Block a user