summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/build
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2015-12-18 06:47:44 +0000
committervanjeff <vanjeff@Edk2>2015-12-18 06:47:44 +0000
commitb30dd623c9151866cd1ef1cf31de62d415586875 (patch)
tree96d6f9c1d9d132bbc4cd326f08560b7e683ebff2 /BaseTools/Source/Python/build
parente6ad964ec7a1f6f98a2b14d374541c02f48fdf2e (diff)
downloadedk2-platforms-b30dd623c9151866cd1ef1cf31de62d415586875.tar.xz
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. (Sync patch r19139 from main trunk.) 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/branches/UDK2015@19375 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Source/Python/build')
-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