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>
(cherry picked from commit 97e1ff1b91
)
This commit is contained in:
committed by
Yonghong Zhu
parent
9a47d8a3d4
commit
1a7e6a252e
@ -978,6 +978,7 @@ class PcdReport(object):
|
|||||||
for pcd in GlobalData.BuildOptionPcd:
|
for pcd in GlobalData.BuildOptionPcd:
|
||||||
if (Pcd.TokenSpaceGuidCName, Pcd.TokenCName) == (pcd[0], pcd[1]):
|
if (Pcd.TokenSpaceGuidCName, Pcd.TokenCName) == (pcd[0], pcd[1]):
|
||||||
PcdValue = pcd[2]
|
PcdValue = pcd[2]
|
||||||
|
Pcd.DefaultValue = PcdValue
|
||||||
BuildOptionMatch = True
|
BuildOptionMatch = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user