summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2015-12-07 09:03:35 +0000
committeryzhu52 <yzhu52@Edk2>2015-12-07 09:03:35 +0000
commit043928da6a7c9c5427c12ca49bf625fc6f052526 (patch)
tree8f6f3a9d80b6caa7e56219e6c9a61d74b185e4c7
parentca9d6d7962a7ed07ebde22fdde7543d4d0f6cd66 (diff)
downloadedk2-043928da6a7c9c5427c12ca49bf625fc6f052526.tar.gz
edk2-043928da6a7c9c5427c12ca49bf625fc6f052526.tar.bz2
edk2-043928da6a7c9c5427c12ca49bf625fc6f052526.zip
BaseTools: Fix a bug in the VPD report generation
Changed the if condition to check whether current Region is FD VPD region to fix a bug in the VPD report generation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19139 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--BaseTools/Source/Python/build/BuildReport.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py
index 722d8b7f45..d459a0113a 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -1389,11 +1389,11 @@ class FdReport(object):
self.FdRegionList = [FdRegionReport(FdRegion, Wa) for FdRegion in Fd.RegionList]
self.FvPath = os.path.join(Wa.BuildDir, "FV")
self.VpdFilePath = os.path.join(self.FvPath, "%s.map" % Wa.Platform.VpdToolGuid)
- VpdPcdToken = 'gEfiMdeModulePkgTokenSpaceGuid'
- VpdPcdName = 'PcdVpdBaseAddress'
+ self.VPDBaseAddress = 0
+ self.VPDSize = 0
self.VPDInfoList = []
for index, FdRegion in enumerate(Fd.RegionList):
- if (VpdPcdName, VpdPcdToken) == FdRegion.PcdOffset:
+ if str(FdRegion.RegionType) is 'FILE' and Wa.Platform.VpdToolGuid in str(FdRegion.RegionDataList):
self.VPDBaseAddress = self.FdRegionList[index].BaseAddress
self.VPDSize = self.FdRegionList[index].Size
break