summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/AutoGen.py
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-05-11 21:23:29 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-05-12 13:34:53 +0800
commit7256bd55e9883bbdfda32733eb533ddeccd3e2da (patch)
tree60e86bae66220c8cb3ab1470f25d067ba46fd806 /BaseTools/Source/Python/AutoGen/AutoGen.py
parentfb1c81a1e5d299c0cb0783cbfe7e727202c2c471 (diff)
downloadedk2-7256bd55e9883bbdfda32733eb533ddeccd3e2da.tar.gz
edk2-7256bd55e9883bbdfda32733eb533ddeccd3e2da.tar.bz2
edk2-7256bd55e9883bbdfda32733eb533ddeccd3e2da.zip
BaseTools: Fix the bug that FixedPcdGetPtr failure for CArray Pcd
This patch for the bug FixedPcdGetPtr report failure for the CArray type Pcd. 1) correct the Fixed Pcd list; 2) correct the Fixed Pcd in Library AutoGen file to same with Driver AutoGen file format. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGen.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py
index 205a75dc80..8d8957b3d9 100644
--- a/BaseTools/Source/Python/AutoGen/AutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/AutoGen.py
@@ -2759,10 +2759,7 @@ class ModuleAutoGen(AutoGen):
if self._FixedAtBuildPcds:
return self._FixedAtBuildPcds
for Pcd in self.ModulePcdList:
- if self.IsLibrary:
- if not (Pcd.Pending == False and Pcd.Type == "FixedAtBuild"):
- continue
- elif Pcd.Type != "FixedAtBuild":
+ if Pcd.Type != "FixedAtBuild":
continue
if Pcd not in self._FixedAtBuildPcds:
self._FixedAtBuildPcds.append(Pcd)