summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-02-03 23:22:26 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-18 09:11:47 +0800
commitc196d1d129ad7567f578e155c18e71ae62f9b2ad (patch)
tree0c065ba7e6030677b0a4e17ea2fb64a1e260dd10 /BaseTools/Source/Python/build
parent8059cd2483f95f7fd021b0e93b28d90f932fc9f9 (diff)
downloadedk2-c196d1d129ad7567f578e155c18e71ae62f9b2ad.tar.gz
edk2-c196d1d129ad7567f578e155c18e71ae62f9b2ad.tar.bz2
edk2-c196d1d129ad7567f578e155c18e71ae62f9b2ad.zip
BaseTools: Fixed a build report issue.
Generate report fail when -Y EXECUTION_ORDER in build command. This patch is going to fix this issue. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r--BaseTools/Source/Python/build/BuildReport.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py
index 0b98d62cb6..13b04acb75 100644
--- a/BaseTools/Source/Python/build/BuildReport.py
+++ b/BaseTools/Source/Python/build/BuildReport.py
@@ -1652,14 +1652,14 @@ class PredictionReport(object):
GuidList = os.path.join(self._EotDir, "GuidList.txt")
DispatchList = os.path.join(self._EotDir, "Dispatch.txt")
- TempFile = open(SourceList, "w+")
+ TempFile = []
for Item in self._SourceList:
FileWrite(TempFile, Item)
- TempFile.close()
- TempFile = open(GuidList, "w+")
+ SaveFileOnChange(SourceList, "".join(TempFile), False)
+ TempFile = []
for Key in self._GuidMap:
FileWrite(TempFile, "%s %s" % (Key, self._GuidMap[Key]))
- TempFile.close()
+ SaveFileOnChange(GuidList, "".join(TempFile), False)
try:
from Eot.EotMain import Eot