public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2] BaseTools/GenFds: Correct file type set for the PIC section
@ 2022-08-30 10:18 Konstantin Aladyshev
  2022-09-27  1:17 ` 回复: " gaoliming
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Aladyshev @ 2022-08-30 10:18 UTC (permalink / raw)
  To: devel; +Cc: bob.c.feng, gaoliming, yuwei.chen, Konstantin Aladyshev

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>
---
 BaseTools/Source/Python/GenFds/FdfParser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py
index 5c8263f9bc..693e62de7e 100644
--- a/BaseTools/Source/Python/GenFds/FdfParser.py
+++ b/BaseTools/Source/Python/GenFds/FdfParser.py
@@ -3996,7 +3996,7 @@ class FdfParser:
             if FileType not in {BINARY_FILE_TYPE_PE32, "SEC_PE32"}:
                 raise Warning(WarningString % FileType, self.FileName, self.CurrentLineNumber)
         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)
         elif SectionType == BINARY_FILE_TYPE_TE:
             if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* 回复: [PATCH v2] BaseTools/GenFds: Correct file type set for the PIC section
  2022-08-30 10:18 [PATCH v2] BaseTools/GenFds: Correct file type set for the PIC section Konstantin Aladyshev
@ 2022-09-27  1:17 ` gaoliming
  0 siblings, 0 replies; 2+ messages in thread
From: gaoliming @ 2022-09-27  1:17 UTC (permalink / raw)
  To: 'Konstantin Aladyshev', devel; +Cc: bob.c.feng, yuwei.chen

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: Konstantin Aladyshev <aladyshev22@gmail.com>
> 发送时间: 2022年8月30日 18:19
> 收件人: devel@edk2.groups.io
> 抄送: bob.c.feng@intel.com; gaoliming@byosoft.com.cn;
> yuwei.chen@intel.com; Konstantin Aladyshev <aladyshev22@gmail.com>
> 主题: [PATCH v2] 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>
> ---
>  BaseTools/Source/Python/GenFds/FdfParser.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py
> b/BaseTools/Source/Python/GenFds/FdfParser.py
> index 5c8263f9bc..693e62de7e 100644
> --- a/BaseTools/Source/Python/GenFds/FdfParser.py
> +++ b/BaseTools/Source/Python/GenFds/FdfParser.py
> @@ -3996,7 +3996,7 @@ class FdfParser:
>              if FileType not in {BINARY_FILE_TYPE_PE32, "SEC_PE32"}:
> 
>                  raise Warning(WarningString % FileType, self.FileName,
> self.CurrentLineNumber)
> 
>          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)
> 
>          elif SectionType == BINARY_FILE_TYPE_TE:
> 
>              if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}:
> 
> --
> 2.25.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-27  1:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-30 10:18 [PATCH v2] BaseTools/GenFds: Correct file type set for the PIC section Konstantin Aladyshev
2022-09-27  1:17 ` 回复: " gaoliming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox