From: Yingke Liu Date: Thu, 11 Jun 2015 05:21:59 +0000 (+0000) Subject: BaseTools: Fixed an error reported during generating report. X-Git-Tag: edk2-stable201903~9642 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e63ec1beac46991176b18c859372f0f16fb97b13;hp=aeaaf754ee6f2435b37e57f7cd9940d259e12d09 BaseTools: Fixed an error reported during generating report. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17623 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index 327d5a5347..264607b003 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -1237,10 +1237,10 @@ class FdRegionReport(object): # # Collect PCDs defined in DSC common section # - for Platform in Wa.BuildDatabase.WorkspaceDb.PlatformList: - for (TokenCName, TokenSpaceGuidCName) in Platform.Pcds: - DscDefaultValue = Platform.Pcds[(TokenCName, TokenSpaceGuidCName)].DefaultValue - PlatformPcds[(TokenCName, TokenSpaceGuidCName)] = DscDefaultValue + Platform = Wa.BuildDatabase[Wa.MetaFile, 'COMMON'] + for (TokenCName, TokenSpaceGuidCName) in Platform.Pcds: + DscDefaultValue = Platform.Pcds[(TokenCName, TokenSpaceGuidCName)].DefaultValue + PlatformPcds[(TokenCName, TokenSpaceGuidCName)] = DscDefaultValue # # Add PEI and DXE a priori files GUIDs defined in PI specification.