]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Report Fd File Path in build log
authorYunhua Feng <yunhuax.feng@intel.com>
Tue, 4 Jul 2017 03:27:35 +0000 (11:27 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 10 Jul 2017 01:59:57 +0000 (09:59 +0800)
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>
BaseTools/Source/Python/GenFds/Fd.py

index 0c06ff57dc319f532ca187187a763ec91a206341..684b5cea88bef2aa4c976081131df64bd7b0c6ab 100644 (file)
@@ -52,7 +52,9 @@ class FD(FDClassObject):
         #\r
         # Print Information\r
         #\r
-        GenFdsGlobalVariable.InfLogger("Fd File Name:%s" %self.FdUiName)\r
+        FdFileName = os.path.join(GenFdsGlobalVariable.FvDir, self.FdUiName + '.fd')\r
+        GenFdsGlobalVariable.InfLogger("Fd File Name:%s (%s)" %(self.FdUiName, FdFileName))\r
+\r
         Offset = 0x00\r
         for item in self.BlockSizeList:\r
             Offset = Offset + item[0]  * item[1]\r
@@ -125,11 +127,6 @@ class FD(FDClassObject):
             GenFdsGlobalVariable.VerboseLogger('Call each region\'s AddToBuffer function')\r
             RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFds.ImageBinDict, self.vtfRawDict, self.DefineVarDict)\r
         #\r
-        # Create a empty Fd file\r
-        #\r
-        GenFdsGlobalVariable.VerboseLogger ('Create an empty Fd file')\r
-        FdFileName = os.path.join(GenFdsGlobalVariable.FvDir,self.FdUiName + '.fd')\r
-        #\r
         # Write the buffer contents to Fd file\r
         #\r
         GenFdsGlobalVariable.VerboseLogger('Write the buffer contents to Fd file')\r