From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web08.5848.1664241485506600737 for ; Mon, 26 Sep 2022 18:18:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=Ktt269Yo; spf=pass (domain: byosoft.com.cn, ip: 101.227.64.242, mailfrom: gaoliming@byosoft.com.cn) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 14872CD1F722 for ; Tue, 27 Sep 2022 09:18:01 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1664241481; bh=a4pMWdQfERWMfPi/RvAiTwoMdbEIzxZOi7HAE6ecOos=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=Ktt269YocBw207xBsxF9vLIfNGcCBZ6wAjma/1HYo/awpuJVZsJPV7950BH1HcW4s cJSlCTj72urnf3bxvKflrZFBsHhr00Gq3HBvnMWefHlus+9cE5rRucGPvJg3D+qrUP 0EftfkPLcpCe6XFJ7XTfpsKlh4DpawSGg59bE5LE= Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 10369CD1F708 for ; Tue, 27 Sep 2022 09:18:01 +0800 (CST) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id D76B1CD1F688 for ; Tue, 27 Sep 2022 09:18:00 +0800 (CST) Authentication-Results: walk.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id 712ABCD1F6E7 for ; Tue, 27 Sep 2022 09:17:57 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 27 Sep 2022 09:17:56 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Konstantin Aladyshev'" , Cc: , References: <20220830101831.18391-1-aladyshev22@gmail.com> In-Reply-To: <20220830101831.18391-1-aladyshev22@gmail.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjJdIEJhc2VUb29scy9HZW5GZHM6IENvcnJlY3QgZmlsZSB0eXBlIHNldCBmb3IgdGhlIFBJQyBzZWN0aW9u?= Date: Tue, 27 Sep 2022 09:17:56 +0800 Message-ID: <013701d8d20e$f9a4eca0$eceec5e0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQMlEinafk7HRmZJvmdrb5r04IzB86tZ+YZg Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Konstantin Aladyshev > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA8=D4=C230=C8=D5 18:19 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: bob.c.feng@intel.com; gaoliming@byosoft.com.cn; > yuwei.chen@intel.com; Konstantin Aladyshev > =D6=F7=CC=E2: [PATCH v2] BaseTools/GenFds: Correct file type set for = the PIC section >=20 > 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. >=20 > Signed-off-by: Konstantin Aladyshev > --- > BaseTools/Source/Python/GenFds/FdfParser.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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"}: >=20 > raise Warning(WarningString % FileType, = self.FileName, > self.CurrentLineNumber) >=20 > elif SectionType =3D=3D BINARY_FILE_TYPE_PIC: >=20 > - if FileType not in {BINARY_FILE_TYPE_PIC, > BINARY_FILE_TYPE_PIC}: >=20 > + if FileType not in {BINARY_FILE_TYPE_PIC, "SEC_PIC"}: >=20 > raise Warning(WarningString % FileType, = self.FileName, > self.CurrentLineNumber) >=20 > elif SectionType =3D=3D BINARY_FILE_TYPE_TE: >=20 > if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}: >=20 > -- > 2.25.1