diff options
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r-- | BaseTools/Source/Python/build/BuildReport.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index 58595d62b3..b2cc6eec0a 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -1726,7 +1726,13 @@ class FdRegionReport(object): FvTotalSize = 0
FvTakenSize = 0
FvFreeSize = 0
- FvReportFileName = os.path.join(self._FvDir, FvName + ".Fv.txt")
+ if not os.path.isfile(FvName):
+ FvReportFileName = os.path.join(self._FvDir, FvName + ".Fv.txt")
+ else:
+ if FvName.upper().endswith('.FV'):
+ FvReportFileName = FvName + ".txt"
+ else:
+ FvReportFileName = FvName + ".Fv.txt"
try:
#
# Collect size info in the firmware volume.
|