diff options
author | Liming Gao <liming.gao@intel.com> | 2017-11-24 14:30:11 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-12-25 11:05:45 +0800 |
commit | ae7b6df816e913394a7f11264f24953658ff34ba (patch) | |
tree | 10906d07aa821e1aa531ee3048f3d946cd485cc2 /BaseTools/Source/Python/CommonDataClass/DataClass.py | |
parent | 309e37a22915dca12d3e5b914d8b3429f7624601 (diff) | |
download | edk2-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/CommonDataClass/DataClass.py')
-rw-r--r-- | BaseTools/Source/Python/CommonDataClass/DataClass.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/CommonDataClass/DataClass.py b/BaseTools/Source/Python/CommonDataClass/DataClass.py index 3be369a0f4..efeba3e5dc 100644 --- a/BaseTools/Source/Python/CommonDataClass/DataClass.py +++ b/BaseTools/Source/Python/CommonDataClass/DataClass.py @@ -77,6 +77,16 @@ MODEL_PCD_DYNAMIC = 4008 MODEL_PCD_DYNAMIC_DEFAULT = 4009
MODEL_PCD_DYNAMIC_VPD = 4010
MODEL_PCD_DYNAMIC_HII = 4011
+MODEL_PCD_TYPE_LIST = [MODEL_PCD_FIXED_AT_BUILD,
+ MODEL_PCD_PATCHABLE_IN_MODULE,
+ MODEL_PCD_FEATURE_FLAG,
+ MODEL_PCD_DYNAMIC_DEFAULT,
+ MODEL_PCD_DYNAMIC_HII,
+ MODEL_PCD_DYNAMIC_VPD,
+ MODEL_PCD_DYNAMIC_EX_DEFAULT,
+ MODEL_PCD_DYNAMIC_EX_HII,
+ MODEL_PCD_DYNAMIC_EX_VPD
+ ]
MODEL_META_DATA_HEADER_COMMENT = 5000
MODEL_META_DATA_HEADER = 5001
|