## @file\r
# Parse FV image\r
#\r
-# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>\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
self.FfsDict = sdict()\r
self.OrderedFfsDict = sdict()\r
self.UnDispatchedFfsDict = sdict()\r
- self.NoDepexFfsDict = sdict()\r
self.ProtocolList = sdict()\r
\r
def CheckArchProtocol(self):\r
\r
self.DisPatchDxe(Db)\r
\r
- def DisPatchNoDepexFfs(self, Db):\r
- # Last Load Drivers without Depex\r
- for FfsID in self.NoDepexFfsDict:\r
- NewFfs = self.NoDepexFfsDict.pop(FfsID)\r
- self.OrderedFfsDict[FfsID] = NewFfs\r
- self.LoadProtocol(Db, FfsID)\r
-\r
- return True\r
-\r
- def LoadCallbackProtocol(self):\r
- IsLoad = True\r
- for Protocol in self.ProtocolList:\r
- for Callback in self.ProtocolList[Protocol][1]:\r
- if Callback[0] not in self.OrderedFfsDict.keys():\r
- IsLoad = False\r
- continue\r
- if IsLoad:\r
- EotGlobalData.gProtocolList[Protocol.lower()] = self.ProtocolList[Protocol][0]\r
- self.ProtocolList.pop(Protocol)\r
-\r
def LoadProtocol(self, Db, ModuleGuid):\r
SqlCommand = """select GuidValue from Report\r
where SourceFileFullPath in\r
NewFfs = self.UnDispatchedFfsDict.pop(FfsID)\r
NewFfs.Depex = DepexString\r
if FileDepex is not None:\r
- ScheduleList.insert.insert(FileDepex[1], FfsID, NewFfs, FileDepex[0])\r
+ ScheduleList.insert(FileDepex[1], FfsID, NewFfs, FileDepex[0])\r
else:\r
ScheduleList[FfsID] = NewFfs\r
else:\r