]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/DepexSection.py
Revert BaseTools: PYTHON3 migration
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / DepexSection.py
index d04160e890f17781c0e2596e1f53c1fcaa434e61..b2d123bfc04578883016688bf00ded6e8faf4280 100644 (file)
 ##\r
 # Import Modules\r
 #\r
-import Section\r
-from GenFdsGlobalVariable import GenFdsGlobalVariable\r
+from __future__ import absolute_import\r
+from . import Section\r
+from .GenFdsGlobalVariable import GenFdsGlobalVariable\r
 import subprocess\r
-from Ffs import Ffs\r
+from .Ffs import Ffs\r
 import Common.LongFilePathOs as os\r
 from CommonDataClass.FdfClass import DepexSectionClassObject\r
 from AutoGen.GenDepex import DependencyExpression\r
@@ -96,13 +97,13 @@ class DepexSection (DepexSectionClassObject):
 \r
         if self.DepexType == 'PEI_DEPEX_EXP':\r
             ModuleType = SUP_MODULE_PEIM\r
-            SecType    = 'PEI_DEPEX'\r
+            SecType    = BINARY_FILE_TYPE_PEI_DEPEX\r
         elif self.DepexType == 'DXE_DEPEX_EXP':\r
             ModuleType = SUP_MODULE_DXE_DRIVER\r
-            SecType    = 'DXE_DEPEX'\r
+            SecType    = BINARY_FILE_TYPE_DXE_DEPEX\r
         elif self.DepexType == 'SMM_DEPEX_EXP':\r
             ModuleType = SUP_MODULE_DXE_SMM_DRIVER\r
-            SecType    = 'SMM_DEPEX'\r
+            SecType    = BINARY_FILE_TYPE_SMM_DEPEX\r
         else:\r
             EdkLogger.error("GenFds", FORMAT_INVALID,\r
                             "Depex type %s is not valid for module %s" % (self.DepexType, ModuleName))\r