mirror of https://github.com/acidanthera/audk.git
BaseTools/GenFds: Correct file type set for the PIC section
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>
This commit is contained in:
parent
0a29933ea9
commit
d23eb3aa99
|
@ -4018,7 +4018,7 @@ class FdfParser:
|
||||||
if FileType not in {BINARY_FILE_TYPE_PE32, "SEC_PE32"}:
|
if FileType not in {BINARY_FILE_TYPE_PE32, "SEC_PE32"}:
|
||||||
raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)
|
raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)
|
||||||
elif SectionType == BINARY_FILE_TYPE_PIC:
|
elif SectionType == BINARY_FILE_TYPE_PIC:
|
||||||
if FileType not in {BINARY_FILE_TYPE_PIC, BINARY_FILE_TYPE_PIC}:
|
if FileType not in {BINARY_FILE_TYPE_PIC, "SEC_PIC"}:
|
||||||
raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)
|
raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)
|
||||||
elif SectionType == BINARY_FILE_TYPE_TE:
|
elif SectionType == BINARY_FILE_TYPE_TE:
|
||||||
if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}:
|
if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}:
|
||||||
|
|
Loading…
Reference in New Issue