Update to not generate EOT report when the FV list in empty
authorqhuang8 <qhuang8@c2973edb-eda0-4c78-bc6a-9341b269661f>
Mon, 8 Feb 2010 06:29:04 +0000 (06:29 +0000)
committerqhuang8 <qhuang8@c2973edb-eda0-4c78-bc6a-9341b269661f>
Mon, 8 Feb 2010 06:29:04 +0000 (06:29 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1851 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/Python/build/BuildReport.py

index 6979b47..a7b8231 100755 (executable)
@@ -848,6 +848,8 @@ class PredictionReport(object):
             if os.path.isfile(FvFile):
                 FvFileList.append(FvFile)
 
+        if len(FvFileList) == 0:
+            return
         #
         # Write source file list and GUID file list to an intermediate file
         # as the input for EOT tool and dispatch List as the output file
@@ -896,6 +898,8 @@ class PredictionReport(object):
     # @param File            The file object for report
     #
     def _GenerateExecutionOrderReport(self, File):
+        if len(self.ItemList) == 0:
+            return
         FileWrite(File, gSectionStart)
         FileWrite(File, "Execution Order Prediction")
         FileWrite(File, "*P PEI phase")