]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/GenFds: Correct file type set for the PIC section
authorKonstantin Aladyshev <aladyshev22@gmail.com>
Tue, 30 Aug 2022 10:18:31 +0000 (18:18 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 19 Oct 2022 06:32:07 +0000 (06:32 +0000)
Corrently the set of file types for the PIC section contains two
duplicate values.
Replace the duplicate value with the correct one to fix the issue.

Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/GenFds/FdfParser.py

index aa18fef09e9810963b58082f8a91b90d91fb9985..a9a14ca2bb3324fb73d35cd518f12c54edd8dea9 100644 (file)
@@ -4018,7 +4018,7 @@ class FdfParser:
             if FileType not in {BINARY_FILE_TYPE_PE32, "SEC_PE32"}:\r
                 raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)\r
         elif SectionType == BINARY_FILE_TYPE_PIC:\r
-            if FileType not in {BINARY_FILE_TYPE_PIC, BINARY_FILE_TYPE_PIC}:\r
+            if FileType not in {BINARY_FILE_TYPE_PIC, "SEC_PIC"}:\r
                 raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)\r
         elif SectionType == BINARY_FILE_TYPE_TE:\r
             if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}:\r