]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/UiSection.py
BaseTools: Replace Binary File type strings with predefined constant
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / UiSection.py
index 084f761e1285e8ea3d316233613faab8379e7a5f..280500952b63efdb09a6b37833c03a2042f49114 100644 (file)
@@ -22,7 +22,7 @@ import Common.LongFilePathOs as os
 from GenFdsGlobalVariable import GenFdsGlobalVariable\r
 from CommonDataClass.FdfClass import UiSectionClassObject\r
 from Common.LongFilePathSupport import OpenLongFilePath as open\r
-from Common.DataType import SUP_MODULE_SEC\r
+from Common.DataType import *\r
 \r
 ## generate UI section\r
 #\r
@@ -58,7 +58,7 @@ class UiSection (UiSectionClassObject):
             self.StringData = FfsInf.__ExtendMacro__(self.StringData)\r
             self.FileName = FfsInf.__ExtendMacro__(self.FileName)\r
 \r
-        OutputFile = os.path.join(OutputPath, ModuleName + SUP_MODULE_SEC + SecNum + Ffs.SectionSuffix.get('UI'))\r
+        OutputFile = os.path.join(OutputPath, ModuleName + SUP_MODULE_SEC + SecNum + Ffs.SectionSuffix.get(BINARY_FILE_TYPE_UI))\r
 \r
         if self.StringData is not None :\r
             NameString = self.StringData\r