Since in GenFds phase, the generate FV all use upper letter. In the
build report, we should use the upper letter FV name to combine the
file path.

Cc: Liming Gao <liming....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong....@intel.com>
---
 BaseTools/Source/Python/build/BuildReport.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/BaseTools/Source/Python/build/BuildReport.py 
b/BaseTools/Source/Python/build/BuildReport.py
index ef99989..26f6a32 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -1141,11 +1141,11 @@ class PredictionReport(object):
             return
 
         self._EotToolInvoked = True
         FvFileList = []
         for FvName in self._FvList:
-            FvFile = os.path.join(self._FvDir, FvName + ".Fv")
+            FvFile = os.path.join(self._FvDir, FvName.upper() + ".Fv")
             if os.path.isfile(FvFile):
                 FvFileList.append(FvFile)
 
         if len(FvFileList) == 0:
             return
@@ -1457,11 +1457,11 @@ class FdRegionReport(object):
 
         if self.Type == "FV":
             FvTotalSize = 0
             FvTakenSize = 0
             FvFreeSize  = 0
-            FvReportFileName = os.path.join(self._FvDir, FvName + ".Fv.txt")
+            FvReportFileName = os.path.join(self._FvDir, FvName.upper() + 
".Fv.txt")
             try:
                 #
                 # Collect size info in the firmware volume.
                 #
                 FvReport = open(FvReportFileName).read()
@@ -1474,11 +1474,11 @@ class FdRegionReport(object):
                 FvFreeSize = FvTotalSize - FvTakenSize
                 #
                 # Write size information to the report file.
                 #
                 FileWrite(File, "Size:               0x%X (%.0fK)" % 
(FvTotalSize, FvTotalSize / 1024.0))
-                FileWrite(File, "Fv Name:            %s (%.1f%% Full)" % 
(FvName, FvTakenSize * 100.0 / FvTotalSize))
+                FileWrite(File, "Fv Name:            %s (%.1f%% Full)" % 
(FvName.upper(), FvTakenSize * 100.0 / FvTotalSize))
                 FileWrite(File, "Occupied Size:      0x%X (%.0fK)" % 
(FvTakenSize, FvTakenSize / 1024.0))
                 FileWrite(File, "Free Size:          0x%X (%.0fK)" % 
(FvFreeSize, FvFreeSize / 1024.0))
                 FileWrite(File, "Offset     Module")
                 FileWrite(File, gSubSectionSep)
                 #
-- 
2.6.1.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to