diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-19 15:25:39 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-21 20:03:02 +0800 |
commit | c3d0f526c04c277d416996efe347f232716528ad (patch) | |
tree | f02f2e8709382428ab66504386e491a56aff3d3c /BaseTools/Source/Python/Workspace/DscBuildData.py | |
parent | e7ac09b957561ba4533cb0a8297a568723ca8bd7 (diff) | |
download | edk2-c3d0f526c04c277d416996efe347f232716528ad.tar.gz edk2-c3d0f526c04c277d416996efe347f232716528ad.tar.bz2 edk2-c3d0f526c04c277d416996efe347f232716528ad.zip |
BaseTools: Fix the bug that PcdValueFromComm is not set
the bug is PcdValueFromComm is not set, but the Pcd have been override
by the command line option.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DscBuildData.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/DscBuildData.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index e481ea4f64..17e6f62cac 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -1067,6 +1067,7 @@ class DscBuildData(PlatformBuildClassObject): PcdItem = BuildData.Pcds[key]
if (TokenSpaceGuidCName, TokenCName) == (PcdItem.TokenSpaceGuidCName, PcdItem.TokenCName) and FieldName =="":
PcdItem.DefaultValue = pcdvalue
+ PcdItem.PcdValueFromComm = pcdvalue
#In command line, the latter full assign value in commandLine should override the former field assign value.
#For example, --pcd Token.pcd.field="" --pcd Token.pcd=H"{}"
delete_assign = []
|