From nobody Tue May 21 20:15:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+92976+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+92976+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1661854803; cv=none; d=zohomail.com; s=zohoarc; b=Pqngmnv5uAKjL+rpfHfViyGEItls2465L4Ga8zdE0iqRSjLF7qzGhjtQPTYxeuFT9J6ZA7c9wi3AqxSUDypAprCWcTUHrSM2Sz0qVwdDJRq9rdQMEat5hWpvFqLzkeJPf8q0sQLjptqcNJzfTI+JVzvwL7c4eoq6bNFm49XcOZk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661854803; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=pRUxNlL7NqYGzq8/bXtahDNWMD9y927kq7btJfInAtk=; b=oH3KFu810yu3nk/gMxwK0zphgCY6+0Q0YafwgO51d1RrI3i0S21xeOvIlfP8vtj7+Ev3VMFs5E0hjSzfdt0kXvyFzJeRHbLP8FtG+gSY1azj0Z1QVw/ZuoJ837UOtTxi54s4xCfV5fu3TYHVoe49CTsF8+DkUoA6egtZWTe0Dm4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+92976+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 166185480352193.34855083887919; Tue, 30 Aug 2022 03:20:03 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Lvs1YY1788612xakkzvXmMvU; Tue, 30 Aug 2022 03:20:03 -0700 X-Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by mx.groups.io with SMTP id smtpd.web12.9990.1661854797243729116 for ; Tue, 30 Aug 2022 03:19:57 -0700 X-Received: by mail-lj1-f173.google.com with SMTP id k22so10830409ljg.2 for ; Tue, 30 Aug 2022 03:19:56 -0700 (PDT) X-Gm-Message-State: ESshyoiPUsOR9TKs1v1jZZvjx1787277AA= X-Google-Smtp-Source: AA6agR7BWgYLoLwl2SnA28WWSzRK+zEtaHGo7xsF/pchzNBWvJFYa2t8XAU2zrWmf89r9d2yVhCsxg== X-Received: by 2002:a05:651c:238c:b0:261:d468:d633 with SMTP id bk12-20020a05651c238c00b00261d468d633mr6767162ljb.479.1661854795066; Tue, 30 Aug 2022 03:19:55 -0700 (PDT) X-Received: from PC10319.67 ([82.97.198.254]) by smtp.googlemail.com with ESMTPSA id a21-20020a05651c031500b0025e0bb97f8fsm1705197ljp.116.2022.08.30.03.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 03:19:54 -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: [edk2-devel] [PATCH v2] BaseTools: Support COMPAT16 section generation Date: Tue, 30 Aug 2022 13:19:57 +0300 Message-Id: <20220830101957.18517-1-aladyshev22@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,aladyshev22@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1661854803; bh=lvt2comuXmoxCA0sLf5ErTUrhyJvALHuWWqQuqS33Fw=; h=Cc:Date:From:Reply-To:Subject:To; b=kFvLnuRpXfHoyLJBx6RQvmy3ew7S/Mhz1hJl6ZR1tU9LX6lhfR7Kyp9orjjsrMRdZix qh2Yb5LRbEK9MNA4NEiZj52tcrB3xdR9Y/LoJGaF5taAkdM+OJInyOzYesxm+aN9Gwo0j BXqO5bYd+o6S949EBYEhq+UXdkNdO87+tfs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1661854805615100001 Content-Type: text/plain; charset="utf-8" Currently COMPAT16 section type is not recognized and GenSec is called without the "-s [SectionType]" argument. Add COMPAT16 type to the SectionType dictionary to fix the issue. Now this syntax works correctly: ``` FILE FREEFORM =3D { SECTION COMPAT16 =3D } ``` Signed-off-by: Konstantin Aladyshev Reviewed-by: Bob Feng --- BaseTools/Source/Python/GenFds/Section.py | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/Python/GenFds/Section.py b/BaseTools/Source/P= ython/GenFds/Section.py index 447828c8e5..859db7230a 100644 --- a/BaseTools/Source/Python/GenFds/Section.py +++ b/BaseTools/Source/Python/GenFds/Section.py @@ -28,6 +28,7 @@ class Section (SectionClassObject): BINARY_FILE_TYPE_PIC : 'EFI_SECTION_PIC', BINARY_FILE_TYPE_TE : 'EFI_SECTION_TE', 'FV_IMAGE' : 'EFI_SECTION_FIRMWARE_VOLUME_IMAGE', + 'COMPAT16' : 'EFI_SECTION_COMPATIBILITY16', BINARY_FILE_TYPE_DXE_DEPEX : 'EFI_SECTION_DXE_DEPEX', BINARY_FILE_TYPE_PEI_DEPEX : 'EFI_SECTION_PEI_DEPEX', 'GUIDED' : 'EFI_SECTION_GUID_DEFINED', --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#92976): https://edk2.groups.io/g/devel/message/92976 Mute This Topic: https://groups.io/mt/93345713/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-