diff options
author | BobCF <bob.c.feng@intel.com> | 2018-01-02 08:58:33 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-01-08 11:29:13 +0800 |
commit | a3623244b9a45386bcdce81b24f033bc86e28683 (patch) | |
tree | cea5fddaf22fc14994b3d73cfaf1f57392991bb3 /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | a099239015eb5b352ba3afdf4d0f4fdbfbaec4d0 (diff) | |
download | edk2-a3623244b9a45386bcdce81b24f033bc86e28683.tar.gz edk2-a3623244b9a45386bcdce81b24f033bc86e28683.tar.bz2 edk2-a3623244b9a45386bcdce81b24f033bc86e28683.zip |
BaseTools: Fix an issue in HiiPcd generation
DynamicHiiPcd may be used by PEIM or DXE driver.
All used DynamicHiiPcd value should be collected and placed into
the default setting PCD PcdNvStoreDefaultValueBuffer.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 8be5bfca83..758355c366 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -1405,9 +1405,8 @@ class PlatformAutoGen(AutoGen): if len(Sku.VariableName) > 0:
VariableGuidStructure = Sku.VariableGuidValue
VariableGuid = GuidStructureStringToGuidString(VariableGuidStructure)
- if Pcd.Phase == "DXE":
- for StorageName in Sku.DefaultStoreDict:
- VariableInfo.append_variable(var_info(Index,pcdname,StorageName,SkuName, StringToArray(Sku.VariableName),VariableGuid, Sku.VariableAttribute , Sku.HiiDefaultValue,Sku.DefaultStoreDict[StorageName],Pcd.DatumType))
+ for StorageName in Sku.DefaultStoreDict:
+ VariableInfo.append_variable(var_info(Index,pcdname,StorageName,SkuName, StringToArray(Sku.VariableName),VariableGuid, Sku.VariableAttribute , Sku.HiiDefaultValue,Sku.DefaultStoreDict[StorageName],Pcd.DatumType))
Index += 1
return VariableInfo
|