mirror of https://github.com/acidanthera/audk.git
BaseTools: Dynamic Pcd value override from command line.
Fixed the pcd value override issue when Dynamic Pcd is from command line but is not list in Dsc file. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
24bd035c90
commit
7c19378762
|
@ -1270,9 +1270,14 @@ class DscBuildData(PlatformBuildClassObject):
|
||||||
PcdInDec.PcdValueFromComm = NoFiledValues[(Guid, Name)][0]
|
PcdInDec.PcdValueFromComm = NoFiledValues[(Guid, Name)][0]
|
||||||
if PcdInDec.Type in [self._PCD_TYPE_STRING_[MODEL_PCD_FIXED_AT_BUILD],
|
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._PCD_TYPE_STRING_[MODEL_PCD_FEATURE_FLAG],
|
||||||
|
self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC],
|
||||||
|
self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC_EX]]:
|
||||||
self.Pcds[Name, Guid] = copy.deepcopy(PcdInDec)
|
self.Pcds[Name, Guid] = copy.deepcopy(PcdInDec)
|
||||||
self.Pcds[Name, Guid].DefaultValue = NoFiledValues[( Guid, Name)][0]
|
self.Pcds[Name, Guid].DefaultValue = NoFiledValues[( Guid, Name)][0]
|
||||||
|
if PcdInDec.Type in [self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC],
|
||||||
|
self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC_EX]]:
|
||||||
|
self.Pcds[Name, Guid].SkuInfoList = {TAB_DEFAULT:SkuInfoClass(TAB_DEFAULT, self.SkuIds[TAB_DEFAULT][0], '', '', '', '', '', NoFiledValues[( Guid, Name)][0])}
|
||||||
return AllPcds
|
return AllPcds
|
||||||
|
|
||||||
def OverrideByFdfOverAll(self,AllPcds):
|
def OverrideByFdfOverAll(self,AllPcds):
|
||||||
|
|
Loading…
Reference in New Issue