mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
BaseTools: Fix a Eot issue.
FirmwareVolume.UnDispatchedFfsDict is mutated during iteration, convert the FirmwareVolume.UnDispatchedFfsDict.keys() to a new list to resolve this problem. 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
dde29b9ca5
commit
dc082d5029
@ -391,7 +391,7 @@ class FirmwareVolume(Image):
|
|||||||
FfsDxeCoreGuid = None
|
FfsDxeCoreGuid = None
|
||||||
FfsPeiPrioriGuid = None
|
FfsPeiPrioriGuid = None
|
||||||
FfsDxePrioriGuid = None
|
FfsDxePrioriGuid = None
|
||||||
for FfsID in self.UnDispatchedFfsDict.keys():
|
for FfsID in list(self.UnDispatchedFfsDict.keys()):
|
||||||
Ffs = self.UnDispatchedFfsDict[FfsID]
|
Ffs = self.UnDispatchedFfsDict[FfsID]
|
||||||
if Ffs.Type == 0x03:
|
if Ffs.Type == 0x03:
|
||||||
FfsSecCoreGuid = FfsID
|
FfsSecCoreGuid = FfsID
|
||||||
@ -497,7 +497,7 @@ class FirmwareVolume(Image):
|
|||||||
def DisPatchDxe(self, Db):
|
def DisPatchDxe(self, Db):
|
||||||
IsInstalled = False
|
IsInstalled = False
|
||||||
ScheduleList = sdict()
|
ScheduleList = sdict()
|
||||||
for FfsID in self.UnDispatchedFfsDict.keys():
|
for FfsID in list(self.UnDispatchedFfsDict.keys()):
|
||||||
CouldBeLoaded = False
|
CouldBeLoaded = False
|
||||||
DepexString = ''
|
DepexString = ''
|
||||||
FileDepex = None
|
FileDepex = None
|
||||||
@ -562,7 +562,7 @@ class FirmwareVolume(Image):
|
|||||||
|
|
||||||
def DisPatchPei(self, Db):
|
def DisPatchPei(self, Db):
|
||||||
IsInstalled = False
|
IsInstalled = False
|
||||||
for FfsID in self.UnDispatchedFfsDict.keys():
|
for FfsID in list(self.UnDispatchedFfsDict.keys()):
|
||||||
CouldBeLoaded = True
|
CouldBeLoaded = True
|
||||||
DepexString = ''
|
DepexString = ''
|
||||||
FileDepex = None
|
FileDepex = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user