]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Pcds in [Components] are not display correct in the report
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 2 Apr 2018 03:18:40 +0000 (11:18 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 9 Apr 2018 06:05:45 +0000 (14:05 +0800)
The Pcd used in [Components] section, the PCD value is displayed
incorrect in the build report because the PCD default value was not
override.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/build/BuildReport.py

index 6a79e23632809bbcc97df446bb64882b0e5eb2b0..e06c352330bcf014cf36c0716ce72fc4c36364ba 100644 (file)
@@ -971,6 +971,7 @@ class PcdReport(object):
                         if (Pcd.TokenCName, Pcd.TokenSpaceGuidCName, Type) not in ModulePcdSet:\r
                             continue\r
                         InfDefault, PcdValue = ModulePcdSet[Pcd.TokenCName, Pcd.TokenSpaceGuidCName, Type]\r
+                        Pcd.DefaultValue = PcdValue\r
                         if InfDefault == "":\r
                             InfDefault = None\r
 \r