]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/OptRomInfStatement.py
BaseTools: Replace Binary File type strings with predefined constant
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / OptRomInfStatement.py
index 8f8761b20589280ab701daa46cd4cb2c637dac78..a865ac4436d5c39d031e3ea3e90b6da11cafd459 100644 (file)
@@ -141,7 +141,7 @@ class OptRomInfStatement (FfsInfStatement):
 \r
         OutputFileList = []\r
         for Sect in Rule.SectionList:\r
-            if Sect.SectionType == 'PE32':\r
+            if Sect.SectionType == BINARY_FILE_TYPE_PE32:\r
                 if Sect.FileName is not None:\r
                     GenSecInputFile = self.__ExtendMacro__(Sect.FileName)\r
                     OutputFileList.append(GenSecInputFile)\r