mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
8059cd2483
commit
c196d1d129
|
@ -21,7 +21,8 @@ import Eot.EotGlobalData as EotGlobalData
|
|||
from optparse import OptionParser
|
||||
from Common.StringUtils import NormPath
|
||||
from Common import BuildToolError
|
||||
from Common.Misc import GuidStructureStringToGuidString, sdict
|
||||
from Common.Misc import GuidStructureStringToGuidString
|
||||
from collections import OrderedDict as sdict
|
||||
from Eot.Parser import *
|
||||
from Eot.InfParserLite import EdkInfParser
|
||||
from Common.StringUtils import GetSplitValueList
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue