summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorFeng, YunhuaX </o=Intel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Feng, YunhuaX4e1>2018-02-27 15:38:18 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-02-28 08:49:51 +0800
commit97e1ff1b913bdedcf08c0d1917d488e0097759b7 (patch)
tree706c1fdc1e7a97039b38553a1314d19774b74435 /BaseTools
parentea927d2f3f2e34f4b26c10829f5887830cb0720e (diff)
downloadedk2-97e1ff1b913bdedcf08c0d1917d488e0097759b7.zip
edk2-97e1ff1b913bdedcf08c0d1917d488e0097759b7.tar.gz
edk2-97e1ff1b913bdedcf08c0d1917d488e0097759b7.tar.bz2
BaseTools: Fix report not used --pcd value incorrectly
Argument --pcd gUefiOvmfPkgTokenSpaceGuid.test10=H"{1}", If the PCD is not used, report value {0x01, 0x00}, is incorrect. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/build/BuildReport.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py
index 2114499..58595d6 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -978,6 +978,7 @@ class PcdReport(object):
for pcd in GlobalData.BuildOptionPcd:
if (Pcd.TokenSpaceGuidCName, Pcd.TokenCName) == (pcd[0], pcd[1]):
PcdValue = pcd[2]
+ Pcd.DefaultValue = PcdValue
BuildOptionMatch = True
break