# This file is used to be the main entrance of EOT tool\r
#\r
# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
\r
##\r
FfsDxeCoreGuid = None\r
FfsPeiPrioriGuid = None\r
FfsDxePrioriGuid = None\r
- for FfsID in self.UnDispatchedFfsDict.keys():\r
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):\r
Ffs = self.UnDispatchedFfsDict[FfsID]\r
if Ffs.Type == 0x03:\r
FfsSecCoreGuid = FfsID\r
def DisPatchDxe(self, Db):\r
IsInstalled = False\r
ScheduleList = sdict()\r
- for FfsID in self.UnDispatchedFfsDict.keys():\r
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):\r
CouldBeLoaded = False\r
DepexString = ''\r
FileDepex = None\r
\r
def DisPatchPei(self, Db):\r
IsInstalled = False\r
- for FfsID in self.UnDispatchedFfsDict.keys():\r
+ for FfsID in list(self.UnDispatchedFfsDict.keys()):\r
CouldBeLoaded = True\r
DepexString = ''\r
FileDepex = None\r
Fv.frombuffer(Buf, 0, len(Buf))\r
\r
self.BasicInfo.append([Fv.Name, Fv.FileSystemGuid, Fv.Size])\r
- self.FfsDict.append(Fv.FfsDict)\r
+ self.FfsDict.update(Fv.FfsDict)\r
\r
## Class Eot\r
#\r
if not InfFile:\r
continue\r
EdkLogger.quiet("Parsing %s ..." % str(InfFile))\r
- EdkInfParser(InfFile, EotGlobalData.gDb, Inf_Files[InfFile], '')\r
+ EdkInfParser(InfFile, EotGlobalData.gDb, Inf_Files[InfFile])\r
\r
EotGlobalData.gDb.Conn.commit()\r
EdkLogger.quiet("Building database for meta data files done!")\r