diff options
author | Hess Chen <hesheng.chen@intel.com> | 2017-04-01 13:33:05 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-05 10:46:19 +0800 |
commit | 490433ab847cf318f31f73bbbc1a503ae47370a4 (patch) | |
tree | 2ebbd2454ef2206874e98a965da10ee22d35de7d /BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py | |
parent | 09e27ac559c5538a0b86afb0b056ef2a3f705483 (diff) | |
download | edk2-490433ab847cf318f31f73bbbc1a503ae47370a4.tar.gz edk2-490433ab847cf318f31f73bbbc1a503ae47370a4.tar.bz2 edk2-490433ab847cf318f31f73bbbc1a503ae47370a4.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py')
-rw-r--r-- | BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py b/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py index bb8a1206b1..a376f56fcf 100644 --- a/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py +++ b/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py @@ -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])
|