]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Add Feature Flag Pcd Type into Override list
authorYonghong Zhu <yonghong.zhu@intel.com>
Tue, 20 Mar 2018 06:57:04 +0000 (14:57 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Tue, 20 Mar 2018 08:55:33 +0000 (16:55 +0800)
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>
BaseTools/Source/Python/Workspace/DscBuildData.py

index 517385a32262cf15b99f6ff7cb20bfa9b2bf28f1..87494df329aafa87abac54333485df76593128ae 100644 (file)
@@ -1272,7 +1272,8 @@ class DscBuildData(PlatformBuildClassObject):
                 if PcdInDec:\r
                     PcdInDec.PcdValueFromComm = NoFiledValues[(Guid,Name)][0]\r
                     if PcdInDec.Type in [self._PCD_TYPE_STRING_[MODEL_PCD_FIXED_AT_BUILD],\r
-                                        self._PCD_TYPE_STRING_[MODEL_PCD_PATCHABLE_IN_MODULE]]:\r
+                                        self._PCD_TYPE_STRING_[MODEL_PCD_PATCHABLE_IN_MODULE],\r
+                                        self._PCD_TYPE_STRING_[MODEL_PCD_FEATURE_FLAG]]:\r
                         self.Pcds[Name, Guid] = copy.deepcopy(PcdInDec)\r
                         self.Pcds[Name, Guid].DefaultValue = NoFiledValues[( Guid,Name)][0]\r
         return AllPcds\r