summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2017-07-04 11:27:35 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-07-10 09:59:57 +0800
commitc82fc2b555285306904c9c1ed6524a85bee8841a (patch)
treea870ba4b97f6cf2c1d7d0e0a4a5d3383e2f841e3
parent47a29bc7072b20d465ccfd634b74121a67368c4f (diff)
downloadedk2-c82fc2b555285306904c9c1ed6524a85bee8841a.tar.gz
edk2-c82fc2b555285306904c9c1ed6524a85bee8841a.tar.bz2
edk2-c82fc2b555285306904c9c1ed6524a85bee8841a.zip
BaseTools: Report Fd File Path in build log
At the end of build, Report Fd image path in build log Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
-rw-r--r--BaseTools/Source/Python/GenFds/Fd.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/BaseTools/Source/Python/GenFds/Fd.py b/BaseTools/Source/Python/GenFds/Fd.py
index 0c06ff57dc..684b5cea88 100644
--- a/BaseTools/Source/Python/GenFds/Fd.py
+++ b/BaseTools/Source/Python/GenFds/Fd.py
@@ -52,7 +52,9 @@ class FD(FDClassObject):
#
# Print Information
#
- GenFdsGlobalVariable.InfLogger("Fd File Name:%s" %self.FdUiName)
+ FdFileName = os.path.join(GenFdsGlobalVariable.FvDir, self.FdUiName + '.fd')
+ GenFdsGlobalVariable.InfLogger("Fd File Name:%s (%s)" %(self.FdUiName, FdFileName))
+
Offset = 0x00
for item in self.BlockSizeList:
Offset = Offset + item[0] * item[1]
@@ -125,11 +127,6 @@ class FD(FDClassObject):
GenFdsGlobalVariable.VerboseLogger('Call each region\'s AddToBuffer function')
RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFds.ImageBinDict, self.vtfRawDict, self.DefineVarDict)
#
- # Create a empty Fd file
- #
- GenFdsGlobalVariable.VerboseLogger ('Create an empty Fd file')
- FdFileName = os.path.join(GenFdsGlobalVariable.FvDir,self.FdUiName + '.fd')
- #
# Write the buffer contents to Fd file
#
GenFdsGlobalVariable.VerboseLogger('Write the buffer contents to Fd file')