diff options
author | BobCF <bob.c.feng@intel.com> | 2018-06-22 17:14:13 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-07-13 17:25:43 +0800 |
commit | 543f5ac30facfbb40eafb2b4908649a427784080 (patch) | |
tree | 4225636a5ca48691912bfe1a7bd3ee45d7bdfd55 /BaseTools/Source/Python/AutoGen/GenC.py | |
parent | e550f259a94ecbd97bff5bfaba4dd3d5ed272be8 (diff) | |
download | edk2-543f5ac30facfbb40eafb2b4908649a427784080.tar.gz edk2-543f5ac30facfbb40eafb2b4908649a427784080.tar.bz2 edk2-543f5ac30facfbb40eafb2b4908649a427784080.zip |
BaseTools: Enable structure pcd in FDF 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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/GenC.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/GenC.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py index eac41ed9bf..2dca9ffd5b 100644 --- a/BaseTools/Source/Python/AutoGen/GenC.py +++ b/BaseTools/Source/Python/AutoGen/GenC.py @@ -890,6 +890,8 @@ def CreateModulePcdCode(Info, AutoGenC, AutoGenH, Pcd): if Pcd.PcdValueFromComm:
Pcd.DefaultValue = Pcd.PcdValueFromComm
+ elif Pcd.PcdValueFromFdf:
+ Pcd.DefaultValue = Pcd.PcdValueFromFdf
if Pcd.Type in PCD_DYNAMIC_EX_TYPE_SET:
TokenNumber = int(Pcd.TokenValue, 0)
@@ -1183,6 +1185,8 @@ def CreateLibraryPcdCode(Info, AutoGenC, AutoGenH, Pcd): if Pcd.PcdValueFromComm:
Pcd.DefaultValue = Pcd.PcdValueFromComm
+ elif Pcd.PcdValueFromFdf:
+ Pcd.DefaultValue = Pcd.PcdValueFromFdf
#
# Write PCDs
#
|