diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-25 17:19:02 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-26 09:10:23 +0800 |
commit | dc082d50293751b918787e5db9566bcec150f474 (patch) | |
tree | 43a0dfa970a9f24039954e40f8d91bf9288f9e2b /BaseTools/Source/Python/Eot/EotMain.py | |
parent | dde29b9ca544a47e08cb53cba3895fcabe82521e (diff) | |
download | edk2-dc082d50293751b918787e5db9566bcec150f474.tar.gz edk2-dc082d50293751b918787e5db9566bcec150f474.tar.bz2 edk2-dc082d50293751b918787e5db9566bcec150f474.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Eot/EotMain.py')
-rw-r--r-- | BaseTools/Source/Python/Eot/EotMain.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Eot/EotMain.py b/BaseTools/Source/Python/Eot/EotMain.py index 3020f6525e..4802aea8b1 100644 --- a/BaseTools/Source/Python/Eot/EotMain.py +++ b/BaseTools/Source/Python/Eot/EotMain.py @@ -391,7 +391,7 @@ class FirmwareVolume(Image): FfsDxeCoreGuid = None
FfsPeiPrioriGuid = None
FfsDxePrioriGuid = None
- for FfsID in self.UnDispatchedFfsDict.keys():
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):
Ffs = self.UnDispatchedFfsDict[FfsID]
if Ffs.Type == 0x03:
FfsSecCoreGuid = FfsID
@@ -497,7 +497,7 @@ class FirmwareVolume(Image): def DisPatchDxe(self, Db):
IsInstalled = False
ScheduleList = sdict()
- for FfsID in self.UnDispatchedFfsDict.keys():
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):
CouldBeLoaded = False
DepexString = ''
FileDepex = None
@@ -562,7 +562,7 @@ class FirmwareVolume(Image): def DisPatchPei(self, Db):
IsInstalled = False
- for FfsID in self.UnDispatchedFfsDict.keys():
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):
CouldBeLoaded = True
DepexString = ''
FileDepex = None
|