summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2018-03-20 14:57:04 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-03-20 16:55:33 +0800
commitb7bfcd1a7e96524d15345e420c3f7120c29a107f (patch)
tree1c7c6b99dcb08e098f19ee57c6c342897c7a0d4e /BaseTools/Source/Python
parentbce776a5b695b5bf1f063f5417e48c56b43b88a7 (diff)
downloadedk2-b7bfcd1a7e96524d15345e420c3f7120c29a107f.tar.gz
edk2-b7bfcd1a7e96524d15345e420c3f7120c29a107f.tar.bz2
edk2-b7bfcd1a7e96524d15345e420c3f7120c29a107f.zip
BaseTools: Add Feature Flag Pcd Type into Override list
when only define the PCD in the DEC file, and use --pcd feature, we also need cover this case for Feature Flag Type. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 517385a322..87494df329 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -1272,7 +1272,8 @@ class DscBuildData(PlatformBuildClassObject):
if PcdInDec:
PcdInDec.PcdValueFromComm = NoFiledValues[(Guid,Name)][0]
if PcdInDec.Type in [self._PCD_TYPE_STRING_[MODEL_PCD_FIXED_AT_BUILD],
- self._PCD_TYPE_STRING_[MODEL_PCD_PATCHABLE_IN_MODULE]]:
+ self._PCD_TYPE_STRING_[MODEL_PCD_PATCHABLE_IN_MODULE],
+ self._PCD_TYPE_STRING_[MODEL_PCD_FEATURE_FLAG]]:
self.Pcds[Name, Guid] = copy.deepcopy(PcdInDec)
self.Pcds[Name, Guid].DefaultValue = NoFiledValues[( Guid,Name)][0]
return AllPcds