From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by mx.groups.io with SMTP id smtpd.web12.9980.1661854711853620699 for ; Tue, 30 Aug 2022 03:18:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fS3wvBao; spf=pass (domain: gmail.com, ip: 209.85.167.43, mailfrom: aladyshev22@gmail.com) Received: by mail-lf1-f43.google.com with SMTP id z29so6284117lfb.13 for ; Tue, 30 Aug 2022 03:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=NRWhSU9gMUMy0ksbGKobTnCEq2wQAfHBHaWgahFgli4=; b=fS3wvBaosb3NplPqAByWrzXtn1Og6OLdqrOd1dV1cmdPpkdCqSXQQvGG8rKC7YhxQa pQU4WhRpKMMGpxjXB6uHySygQlwE+TQmcVnMbKDHEIp/9j1nKk8UA0o96hf0toHe0f4k YUPC8hTR5ibTO92wbKP1Pp8RxYDgFEHRN3r7EvVZzNKWPw/aZcna5mF6AvEfdudRvR4v i1GySvpkTeRN8LdHr1YcnOJQ9e+naIapf/XCqXMQ4f8ouNTXqJJ+1QCJbH7g02hmNqU4 IVmtWNREeT3Ys3YgI9aeoY5hs93E9UV9TsyYKP+e/8V16kEjOX2aQ9fksyr2bkWupcpr ee+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=NRWhSU9gMUMy0ksbGKobTnCEq2wQAfHBHaWgahFgli4=; b=sl2lLDOcdSMORcZmf67IDD+upgnothRXtuc/Bfdud4ITBVE4ry4zOvZYgsDKXfTVU2 33Rir6r7vmXJrVigw9VHrbP9CSSX0BAtgwnnA+QqJ0ye4G2YrX0P/aufitbKkt0JkEw+ WHTPoSHXQbabRauVk/t/YVZ8xzQMZ64yjTZMrcxAYKEcTmoN0/tty5JrisgmrGx6KjRV Jid1ef9p5vpDUrk47Ij1VME8FFi0Rw/LmxL3B62v5UmQWpZH8kVf4qlcR5Jt9NPCdsxf myW1oS067A3UfGZW0hf0Nixi6wS81kkySHi+2EbBRNKzlBh1IMkyxgWkTync1zez3upw rwIg== X-Gm-Message-State: ACgBeo2mscBHPwQ6nUF2z7IQmTOjpby27cabRwVnVEVUG68KwRy0TZuQ Xx4jqt9zrX5IB+Hw3SPd7mDL6Tu4yRU= X-Google-Smtp-Source: AA6agR6XEoN87bmP8122GyPmaqyFwP8iL6A+2TAPmT67NIwPcHaqPUkDXImzpXD5ILIG55UAWfy5qg== X-Received: by 2002:a05:6512:2313:b0:48a:e615:289b with SMTP id o19-20020a056512231300b0048ae615289bmr7246729lfu.201.1661854709934; Tue, 30 Aug 2022 03:18:29 -0700 (PDT) Return-Path: Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id i3-20020a2ea223000000b00262fa7bae79sm1261405ljm.81.2022.08.30.03.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 03:18:29 -0700 (PDT) From: "Konstantin Aladyshev" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn, yuwei.chen@intel.com, Konstantin Aladyshev Subject: [PATCH v2] BaseTools/GenFds: Correct file type set for the PIC section Date: Tue, 30 Aug 2022 13:18:31 +0300 Message-Id: <20220830101831.18391-1-aladyshev22@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 --- 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"}:=0D raise Warning(WarningString % FileType, self.FileName, sel= f.CurrentLineNumber)=0D elif SectionType =3D=3D BINARY_FILE_TYPE_PIC:=0D - if FileType not in {BINARY_FILE_TYPE_PIC, BINARY_FILE_TYPE_PIC= }:=0D + if FileType not in {BINARY_FILE_TYPE_PIC, "SEC_PIC"}:=0D raise Warning(WarningString % FileType, self.FileName, sel= f.CurrentLineNumber)=0D elif SectionType =3D=3D BINARY_FILE_TYPE_TE:=0D if FileType not in {BINARY_FILE_TYPE_TE, "SEC_TE"}:=0D --=20 2.25.1