From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KH7Im9kL; spf=pass (domain: gmail.com, ip: 209.85.208.173, mailfrom: aladyshev22@gmail.com) Received: by mail-lj1-f173.google.com with SMTP id k22so10830409ljg.2 for ; Tue, 30 Aug 2022 03:19:56 -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=uSRgx/4mubftH2YondSArvC3hVrHFnuHjh4IqvMtT/Y=; b=KH7Im9kLKSPuvux136FFoEBdOfLDziu/LcEoZXOIWHuRV0FWu/S9WMqa9GJgdrFCe6 F6wuUpdoCF5rFFq2P59X6HaoebOxS+MEhWg3wPqjEAdpuEDAa2aPCUun/hyo3ARPhaN4 YNuACgIBZJ34AA321feTKKkmsJZyEZYHd5N04WA8h9NFIQurJpMS4E7A+esfX/RXlmcy tSGDEe80MiIkw7Z5SWlDIn9AwZpFaxZ3aWM7cCT+5KSvotsx6lujNou6+RzCFutAtitu dMPDBl/h4gDFv//dWLxS9mVH1mFpCe3QuLc0nnwUVA0reNAObSnDyYMvmilCI1wBy8I9 Qwkg== 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=uSRgx/4mubftH2YondSArvC3hVrHFnuHjh4IqvMtT/Y=; b=mbgWUfQlgAp9gCrLNVgdAn5i/jRJe/nkswnUHeGZlyijuD1v9IG4oumDFcExPxW0Eu M+vsDUPB6L2IJINJjEzo2szjMmV7HXw02wfYDxp5Fu0yURHGLdABssWOjYGcWWtyHsIF wIIoSxl749+N/kOD0E5jfvUETEqEcs4Rv2Rf3DXLmvGdXSANwozt9ddCoEYLMdzS0LmA YqhQE+E3XrrCbKRME+k9F8QARHuu34hnpOZskLInvbAaW1jFRRhEbJdowvWyLZHDRZY4 yBi+kFgX4yU1oxsKsSxGraHH/0tKvXTZ+WJu10KYKZH74WIF7qKt4D/IyCphw/VUhpYv zGiw== X-Gm-Message-State: ACgBeo0FlKgknAZ3rqZIGcrrvjbnZpsdzROK3YU3u4TsHU+my2PTqw+q JqcFNlibF927glbPmDnZGsJirDElL4I= 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) Return-Path: 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: [PATCH v2] BaseTools: Support COMPAT16 section generation Date: Tue, 30 Aug 2022 13:19:57 +0300 Message-Id: <20220830101957.18517-1-aladyshev22@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 --- 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',=0D BINARY_FILE_TYPE_TE : 'EFI_SECTION_TE',=0D 'FV_IMAGE' : 'EFI_SECTION_FIRMWARE_VOLUME_IMAGE',=0D + 'COMPAT16' : 'EFI_SECTION_COMPATIBILITY16',=0D BINARY_FILE_TYPE_DXE_DEPEX : 'EFI_SECTION_DXE_DEPEX',=0D BINARY_FILE_TYPE_PEI_DEPEX : 'EFI_SECTION_PEI_DEPEX',=0D 'GUIDED' : 'EFI_SECTION_GUID_DEFINED',=0D --=20 2.25.1