From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CE3C482335 for ; Wed, 21 Dec 2016 17:18:39 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 21 Dec 2016 17:18:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,386,1477983600"; d="scan'208";a="45595625" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 21 Dec 2016 17:18:39 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 21 Dec 2016 17:18:39 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Thu, 22 Dec 2016 09:18:37 +0800 From: "Gao, Liming" To: Andrew Fish CC: edk2-devel Thread-Topic: [edk2] FDF Spec question? Thread-Index: AQHSWyD6ajcIFFV2/UCS/4347so5i6EScM3Q//+yS4CAAQjIoA== Date: Thu, 22 Dec 2016 01:18:36 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D6C2FEB@shsmsx102.ccr.corp.intel.com> References: <4B9E734E-C111-4CDB-AA8E-B3FA8B06D22B@apple.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14D6C1D52@shsmsx102.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: FDF Spec question? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 01:18:39 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Andrew: You mean newform.bin has section header. It is just a leaf section. You e= xpect to directly add it into GUIDED section without specify section header= again. Right? Thanks Liming -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Andr= ew Fish Sent: Thursday, December 22, 2016 1:29 AM To: Gao, Liming Cc: edk2-devel Subject: Re: [edk2] FDF Spec question? > On Dec 21, 2016, at 6:27 AM, Gao, Liming wrote: >=20 > Andrew: > Encapsulation section data is the section stream, not raw format. Then, = Leaf section can be extracted from encapsulation section. >=20 Liming, I happen to have the section stream in binary form checked into the source = tree. The section extraction code actually dynamically creates the section = header(s) for the stream and this means the section header in the FV is not= really used (the section extraction code actually just skips over it).=20 Technically speaking only the post processed GUID'ed section needs to produ= ce the leaf. My case is kind of like I compressed the data without the sect= ion header. The section header is redundant data from the section extractio= n codes point of view as the binary format already has that info.=20 Thanks, Andrew Fish > Thanks > Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of An= drew Fish > Sent: Wednesday, December 21, 2016 8:27 AM > To: edk2-devel > Subject: [edk2] FDF Spec question? >=20 > Is it possible in the FDF syntax to make the payload of a EFI_SECTION_GUI= D_DEFINED (Encapsulating section) a raw binary file? >=20 > I can make the contents of the GUID'ed encapsulation section a section. B= ut when I'm processing the GUID'ed section I just end up skipping over the = extra 4 byte section header so it is unused space.=20 >=20 > SECTION GUIDED 4C2B8C75-C6F6-11E6-B483-B8E8562CBAFA PROCESSING_REQUIRED= =3D TRUE { > SECTION RAW =3D $(WORKSPACE)/MyPackage/MyNewType/Binary/newform.bin > } >=20 > There is a syntax to make a leaf section a binary file.=20 >=20 > SECTION SUBTYPE_GUID AFC13561-9A65-4754-9C93-E133B3B8767C =3D $(WORKSPAC= E)/MyPackage/MyNewType/Binary/newform.bin >=20 >=20 > Thanks, >=20 > Andrew Fish > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel