From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web09.4143.1664676839949604901 for ; Sat, 01 Oct 2022 19:14:00 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=eHYTkB1B; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: bob.c.feng@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664676839; x=1696212839; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=lCvbEOQ+co+SEj1PLgm4zDe1vZefrSzd8/ELsjAvc60=; b=eHYTkB1BmrqaqLklOTroHjd8no71Twjz9ZG1jNaWu1fmWjrr7cSrfQhR VK6CTiYUwO8UzQ210bJxt2hp8UvNfT2sdu89TZG62CiJ+DTGkV5/BWA+x unEUHkFxB/PuCPIPZGOY3Mdu1xn3OTfzebr4wLZSgq8tBksXOhLnZN9nJ YUOqE1jujF2TpEc1ndE0MhHfmxO9nclcPn5/qDp5tOk+u1CX7pKdSehxI FIVs7gqXP+SrLfIiZF2NqVOZJO5y8pYc33icglmQ9BsRVi5hE78cpj3aI Ad5r2uhdzsgAMYnG1wcM7yMYlprGRIOl2CS2muoaPopHtCExnIuMMBp1T A==; X-IronPort-AV: E=McAfee;i="6500,9779,10487"; a="282806123" X-IronPort-AV: E=Sophos;i="5.93,361,1654585200"; d="scan'208";a="282806123" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2022 19:13:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10487"; a="765537336" X-IronPort-AV: E=Sophos;i="5.93,361,1654585200"; d="scan'208";a="765537336" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga001.fm.intel.com with ESMTP; 01 Oct 2022 19:13:59 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 1 Oct 2022 19:13:59 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Sat, 1 Oct 2022 19:13:59 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.108) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Sat, 1 Oct 2022 19:13:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EnfAuQY3/BjQs/eRGSO/WgFJzLjoTO3gv3MbYt+flrQ1lELtuMW0ikxocTYm64XyryNV7KXjCENx0Cn1wWIyhDYRDNPclJe1aZ7xUklX1FJZb0KooYqflfuWLszSlaWkOIw1VfJUePHcHmpnLOHOX/0ryTrzQlQFlUyOxEd0jJiq5+3R7DsaNeAcMUQi+c1tDLyiCH8pFELAUYTEaI5molwIZE5I7BzmYgrS8AMKEXFSysFIA2vzQyzCPAIL6ivJg+Unr6dWkrkjYeMrAgoXgyg51ry2IMiEqQCYmNrF0HCPCTZoniz3c7SLyxo6nEMzEeOyX80U+WHs+wKMuy+OsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1iMf4SinrH8gW+JeypfFBHaeyatwYdMHgSOmlKagrzw=; b=exc4I3wFuko18fEfLFBlYSMDgHn66VJ+/BcXq73oosrUwAOU79gJMKs/4gBvhggCZJanEqy68fEFJoZa1L7CemtC6T5aWtZqmCT1iUCu90bKvJhVuODWS8WdpYkr+qEZhJp6ojaf7Xnz9w/Ym+fr3vTPcB3D3CN/Rl8Vh1N/ow804jLB8YIW4rgzwgbVXlIbcX7TjGUjIZNRvfrgFi8l6RIJzGlA4T/l7QH1yewrxG1FLEjfs0WYaxUadkjlM+ne1nJlBO+BE1Uov6q5FYzXZYnSrV9HiR7uwfMreY/Mgwo4aZRyKQEafU8P5bL1BKUjXtY7uBqK49hQJA/AIySLXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB5863.namprd11.prod.outlook.com (2603:10b6:510:135::11) by CO6PR11MB5619.namprd11.prod.outlook.com (2603:10b6:5:358::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24; Sun, 2 Oct 2022 02:13:57 +0000 Received: from PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::b6b:85ec:5ee0:d1]) by PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::b6b:85ec:5ee0:d1%9]) with mapi id 15.20.5676.017; Sun, 2 Oct 2022 02:13:57 +0000 From: "Bob Feng" To: Konstantin Aladyshev , "devel@edk2.groups.io" CC: "Gao, Liming" , "Chen, Christine" Subject: Re: [PATCH v2] BaseTools: Support COMPAT16 section generation Thread-Topic: [PATCH v2] BaseTools: Support COMPAT16 section generation Thread-Index: AQHYvFoSBjFghfd5qkK5RIAX62f+t636kHgw Date: Sun, 2 Oct 2022 02:13:57 +0000 Message-ID: References: <20220830101957.18517-1-aladyshev22@gmail.com> In-Reply-To: <20220830101957.18517-1-aladyshev22@gmail.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5863:EE_|CO6PR11MB5619:EE_ x-ms-office365-filtering-correlation-id: 900f3cce-ae81-4dbd-ad04-08daa41bc35f x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1ZVKPX78C0HsbZqw3HM5t/oziJpEOUIIRkdudw0gR3lCrYbUoDQb2SGLPQWQXWxhyf/Setq+wq8f4HrXiyUFc+HjvN1s0Cz0Bhp+8aNl7aFIjpGem2UK52nwcbRo/FR/hBJc3yMVbFP96htMjUd2+oa3c4ALsqxxC1cWTAmkyO3EoEAkrOofS9nXr9qR8UtQF3sh32mbCbOJ6L2wDSEOYAeU8WqiduFEc4US/uYbkY2V0brBr9mFJ6Y3t0rmjYI71+REJNweXnBYog7lBSPnLuQZsZCAvoq0KjOguDTQUIfj+k+lL+Nhu7djL0aTo4vGnhqnBu/H42Loxupc+5xEErrHnj1okta0lAFGeVUCIuw2lfWibGY7c74yoIoFf7mscVDouKN2olxgcg7CVFASjVwOEOmHnBhOuGMDPg4uaGsnxV8dFx5Kg+XwiZuJAc+Dhu119+WeSKISoZwekilN6sDhhLWI/6GQn7RNufdEVnNkGkbemFnvDSXIJVurExmEp2y885mMbcJKyfe3yX1p+LYmK8vq1/GHmB9pyJknWoSzJiWfbkbtabz1v1e8IUt8AHAL0Hi4ZObdeTVKht6M95zePiArJG/eUCJaZPz8JZTQJj8N3L/sCo5H/CaQ41bNCBRVbIsVGwv0J9GNw2VvF4w4vFeGLPyKMajHEr3FJOcCl9XcheZEfJw6mxE79y/jS8QGREWbyR/lkU83n3t2ZpR+V4uksfWFleLoyHU6zubdFVn6gRyME+z1Q9LGmgQCDrtFvExw5CsVLUaPVmfpYA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB5863.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(39860400002)(376002)(136003)(346002)(366004)(451199015)(110136005)(54906003)(71200400001)(316002)(478600001)(76116006)(8676002)(66946007)(66556008)(66476007)(66446008)(64756008)(4326008)(38070700005)(41300700001)(6506007)(7696005)(52536014)(9686003)(5660300002)(26005)(86362001)(55016003)(107886003)(8936002)(53546011)(83380400001)(122000001)(82960400001)(38100700002)(2906002)(186003)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g+rp+p8fge2BbCIrSENaXMcoS8E3n/L/ZgG1wy3ioQjLe/3lN+JcphAOnoDq?= =?us-ascii?Q?qkC4sYa1fkj0RRxoe56t9AblypnzhQVcIyr2ES/unK/udNmeRRq5UZuHfcyP?= =?us-ascii?Q?LMHHnMm/bqyM6N2bDioKU9rXOuJRL9muhFfMZx/dt1480CKRz6IUGiNWfLQK?= =?us-ascii?Q?/IlLHaWhaSeNSVenCa931Zvl+3DiCgNzNWRexx1At9T6JLBowYdmpomY5+Rg?= =?us-ascii?Q?uBRwNfkyzSas2BzdXDF3ovLkCveV9kz/Rpp66Vqh86INWyZnlPSGHY177K8A?= =?us-ascii?Q?D64bbTNxamqZr2+zAtdj02KgKkTTX1lNHabcxpsDjSqd5CLhWamgyWQQZyKY?= =?us-ascii?Q?K1avob7mmXmz/+9zp8A6dsu1e7AeqDoMW9jLY+GIRw+odLeYY7atbJAseFqP?= =?us-ascii?Q?18K4gNMRSPzIrAEn8mqn3Sc77Ca0C1Or2ReA1OlUD18Tymvc5opTEsMDZesk?= =?us-ascii?Q?VLMvSKLl9RS/uw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q?ZZib8NEjT9MDzJnHNJFQ11Vf+TdQqfUYGQdUsuO8gb9KyK3AV7/lt4j5tW7l?= =?us-ascii?Q?wDEg/mPPMAQWIynPal5q/pBkKAGu7X3zna0TleLFvv9ZKkBit1of0tY2zXEE?= =?us-ascii?Q?9spo7yEQVLl5pbuqMPmg8rsBUPgE2B0ofGXBPyL1gnfWgFfni1vwrcTqD7Ef?= =?us-ascii?Q?ZsylV3jVYoHT6y47OTWKr6jq9Sm+p+Uj7PBNza05?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5863.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 900f3cce-ae81-4dbd-ad04-08daa41bc35f X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2022 02:13:57.5090 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: atvpOGPvlfms/xlwEgARTOp2e2cLMSIXHhSbh6GHiCNGbEuAF0hW+YdhgF+yXGIGo4iMh5b5hPYUFuqiz5rFMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR11MB5619 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng -----Original Message----- From: Konstantin Aladyshev =20 Sent: Tuesday, August 30, 2022 6:20 PM To: devel@edk2.groups.io Cc: Feng, Bob C ; Gao, Liming ; Chen, Christine ; Konstantin Aladyshev Subject: [PATCH v2] BaseTools: Support COMPAT16 section generation Currently COMPAT16 section type is not recognized and GenSec is called with= out 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', BINARY_FIL= E_TYPE_TE : 'EFI_SECTION_TE', 'FV_IMAGE' : 'EFI_SECTION_FIR= MWARE_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