summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/GenPcdDb.py
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2017-11-24 14:30:11 +0800
committerLiming Gao <liming.gao@intel.com>2017-12-25 11:05:45 +0800
commitae7b6df816e913394a7f11264f24953658ff34ba (patch)
tree10906d07aa821e1aa531ee3048f3d946cd485cc2 /BaseTools/Source/Python/AutoGen/GenPcdDb.py
parent309e37a22915dca12d3e5b914d8b3429f7624601 (diff)
downloadedk2-ae7b6df816e913394a7f11264f24953658ff34ba.tar.gz
edk2-ae7b6df816e913394a7f11264f24953658ff34ba.tar.bz2
edk2-ae7b6df816e913394a7f11264f24953658ff34ba.zip
BaseTools: Support Structure PCD value assignment in DEC/DSC
https://bugzilla.tianocore.org/show_bug.cgi?id=542 This is pure BaseTools enhancement to support PCD with one structure. User can specify PCD value based on its structure field. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/GenPcdDb.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/GenPcdDb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenPcdDb.py b/BaseTools/Source/Python/AutoGen/GenPcdDb.py
index fc9ac7178f..ddbfe281b8 100644
--- a/BaseTools/Source/Python/AutoGen/GenPcdDb.py
+++ b/BaseTools/Source/Python/AutoGen/GenPcdDb.py
@@ -1158,6 +1158,9 @@ def CreatePcdDatabasePhaseSpecificAutoGen (Platform, Phase):
VarCheckTab = VAR_CHECK_PCD_VARIABLE_TAB_CONTAINER()
i = 0
ReorderedDynPcdList = GetOrderedDynamicPcdList(Platform.DynamicPcdList, Platform.PcdTokenNumber)
+ for item in ReorderedDynPcdList:
+ if item.DatumType not in [TAB_UINT8, TAB_UINT16, TAB_UINT32, TAB_UINT64, TAB_VOID, "BOOLEAN"]:
+ item.DatumType = "VOID*"
for Pcd in ReorderedDynPcdList:
VoidStarTypeCurrSize = []
i += 1