From nobody Mon Feb 9 02:28:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40474+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40474+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557713858; cv=none; d=zoho.com; s=zohoarc; b=jMocXiQ03nH8m5lM7JZPQeC7hRxketHZpPgo0P1Vx1uoJQEcjRSzq/6AJb81eNMOhGD26UgDJ9pX4k3IJpUmEdWGOzJa67klSlrVVrzNnt5FTiE9NxqwzW13t75O7o6mTV5o0pVY/Sy2I98+8tRO/tYtNmZGHFsFKlRaNfn3XPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557713858; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=aQkEGz7OvQH/THknvUu+iz5ZkyxvTvto3I6gg8lgY6o=; b=Xs2jmJwOLMf2cmdgpP43G0DYjvYQ16t+kNo55xYKolhwWel1523fo8iWgbwyapexiAebrctmBJAmx+IzSlymWc5EVnNHV237XKvCntC+CMieBBUZwafo9+GW1SLR6GXm2MCIl4YiXgbhHQZviyQkAmZdERHqTx8HMFTomKDK1FA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40474+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557713858497383.30439009327256; Sun, 12 May 2019 19:17:38 -0700 (PDT) Return-Path: X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Sun, 12 May 2019 19:17:36 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 May 2019 19:17:35 -0700 X-ExtLoop1: 1 X-Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.147]) by orsmga006.jf.intel.com with ESMTP; 12 May 2019 19:17:34 -0700 From: "Dandan Bi" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao Subject: [edk2-devel] [patch 1/5] MdePkg: Merge TianoCustomDecompress algorithm into Date: Mon, 13 May 2019 10:15:48 +0800 Message-Id: <20190513021552.7792-2-dandan.bi@intel.com> In-Reply-To: <20190513021552.7792-1-dandan.bi@intel.com> References: <20190513021552.7792-1-dandan.bi@intel.com> Precedence: Bulk List-Unsubscribe: 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,dandan.bi@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557713857; bh=WlzqlEchx+0W+Est/A4zImmjNG9hFqUqdiW8/D9fM7Q=; h=Cc:Date:From:Reply-To:Subject:To; b=uinRGg7NcZ0OsOD02GVWJY1bgrtsrE9Kijb4+oepCfqLINCzldOfcrVYw5186WI5JG+ IscVvTd8kMYsrlAJW/OavLUD0fvigOdoIaG81YpHwWLWfhQhmShbHU18DHpVy582/hE42 m6Ab84wQ2aYOChPA/qjl2kZ0hiu305sErJA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1722 We plan to merge the BaseUefiTianoCustomDecompressLib in MdeModulePkg into the BaseUefDecompressLib in MdePkg. In order to reduce the duplicated codes and maintain easily. This patch adds a new fdf file in BaseUefDecompressLib (BaseUefiTianoCustomDecompressLib.inf) to keep the same functionality and usage model with the one in MdeModulePkg, and then update consumer to use this new one one and remove the one in MdeModulePkg finally. Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Dandan Bi --- .../BaseUefiDecompressLib.c | 69 ++++-- .../BaseUefiDecompressLib.uni | 6 +- .../BaseUefiDecompressLibInternals.h | 44 +++- .../BaseUefiTianoCustomDecompressLib.c | 213 ++++++++++++++++++ .../BaseUefiTianoCustomDecompressLib.inf | 42 ++++ MdePkg/MdePkg.dec | 5 + MdePkg/MdePkg.dsc | 1 + 7 files changed, 363 insertions(+), 17 deletions(-) create mode 100644 MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCusto= mDecompressLib.c create mode 100644 MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCusto= mDecompressLib.inf diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c b= /MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c index 8e502b0fdb..d2c40bf1ca 100644 --- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c @@ -1,21 +1,14 @@ /** @file UEFI Decompress Library implementation refer to UEFI specification. =20 - Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ =20 - -#include -#include -#include -#include -#include - #include "BaseUefiDecompressLibInternals.h" =20 /** Read NumOfBit of bits from source into mBitBuf. =20 @@ -746,15 +739,15 @@ UefiDecompressGetInfo ( @retval RETURN_INVALID_PARAMETER The source buffer specified by Source is corrupt= ed (not in a valid compressed format). **/ RETURN_STATUS -EFIAPI -UefiDecompress ( +UefiTianoDecompress ( IN CONST VOID *Source, IN OUT VOID *Destination, - IN OUT VOID *Scratch OPTIONAL + IN OUT VOID *Scratch, + IN UINT32 Version ) { UINT32 CompSize; UINT32 OrigSize; SCRATCH_DATA *Sd; @@ -784,12 +777,22 @@ UefiDecompress ( SetMem (Sd, sizeof (SCRATCH_DATA), 0); =20 // // The length of the field 'Position Set Code Length Array Size' in Bloc= k Header. // For UEFI 2.0 de/compression algorithm(Version 1), mPBit =3D 4 - // - Sd->mPBit =3D 4; + // For Tiano de/compression algorithm(Version 2), mPBit =3D 5 + // + switch (Version) { + case 1 : + Sd->mPBit =3D 4; + break; + case 2 : + Sd->mPBit =3D 5; + break; + default: + ASSERT (FALSE); + } Sd->mSrcBase =3D (UINT8 *)Src; Sd->mDstBase =3D Dst; // // CompSize and OrigSize are calculated in bytes // @@ -813,5 +816,45 @@ UefiDecompress ( return RETURN_INVALID_PARAMETER; } =20 return RETURN_SUCCESS; } + +/** + Decompresses a UEFI compressed source buffer. + + Extracts decompressed data to its original form. + This function is designed so that the decompression algorithm can be imp= lemented + without using any memory services. As a result, this function is not al= lowed to + call any memory allocation services in its implementation. It is the ca= ller's + responsibility to allocate and free the Destination and Scratch buffers. + If the compressed source data specified by Source is successfully decomp= ressed + into Destination, then RETURN_SUCCESS is returned. If the compressed so= urce data + specified by Source is not in a valid compressed data format, + then RETURN_INVALID_PARAMETER is returned. + + If Source is NULL, then ASSERT(). + If Destination is NULL, then ASSERT(). + If the required scratch buffer size > 0 and Scratch is NULL, then ASSERT= (). + + @param Source The source buffer containing the compressed data. + @param Destination The destination buffer to store the decompressed data + @param Scratch A temporary scratch buffer that is used to perform t= he decompression. + This is an optional parameter that may be NULL if the + required scratch buffer size is 0. + + @retval RETURN_SUCCESS Decompression completed successfully, and + the uncompressed buffer is returned in Destinati= on. + @retval RETURN_INVALID_PARAMETER + The source buffer specified by Source is corrupt= ed + (not in a valid compressed format). +**/ +RETURN_STATUS +EFIAPI +UefiDecompress ( + IN CONST VOID *Source, + IN OUT VOID *Destination, + IN OUT VOID *Scratch OPTIONAL + ) +{ + return UefiTianoDecompress (Source, Destination, Scratch, 1); +} diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.uni= b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.uni index 1cec6bd965..25f379d047 100644 --- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.uni +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.uni @@ -1,16 +1,16 @@ // /** @file // UEFI Decompress Library implementation. // // UEFI Decompress Library implementation. // -// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
+// Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
// // SPDX-License-Identifier: BSD-2-Clause-Patent // // **/ =20 =20 -#string STR_MODULE_ABSTRACT #language en-US "UEFI Decompress L= ibrary implementation" +#string STR_MODULE_ABSTRACT #language en-US "UEFI Decompress L= ibrary and Tiano Custom Decompress Library implementation." =20 -#string STR_MODULE_DESCRIPTION #language en-US "UEFI Decompress L= ibrary implementation." +#string STR_MODULE_DESCRIPTION #language en-US "Tiano custom deco= mpression algorithm shares most of the code with the UEFI Decompress algori= thm." =20 diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLibInte= rnals.h b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLibInterna= ls.h index 9821c19c7b..0bfb503337 100644 --- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLibInternals.h +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLibInternals.h @@ -1,16 +1,21 @@ /** @file Internal data structure defintions for Base UEFI Decompress Library. =20 - Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ =20 #ifndef __BASE_UEFI_DECOMPRESS_LIB_INTERNALS_H__ #define __BASE_UEFI_DECOMPRESS_LIB_INTERNALS_H__ =20 +#include +#include +#include +#include +#include // // Decompression algorithm begins here // #define BITBUFSIZ 32 #define MAXMATCH 256 @@ -56,10 +61,11 @@ typedef struct { UINT16 mPTTable[256]; =20 /// /// The length of the field 'Position Set Code Length Array Size' in Blo= ck Header. /// For UEFI 2.0 de/compression algorithm, mPBit =3D 4. + /// For Tiano de/compression algorithm, mPBit =3D 5. /// UINT8 mPBit; } SCRATCH_DATA; =20 /** @@ -200,6 +206,42 @@ DecodeC ( VOID Decode ( SCRATCH_DATA *Sd ); =20 +/** + Decompresses a compressed source buffer. + + Extracts decompressed data to its original form. + This function is designed so that the decompression algorithm can be imp= lemented + without using any memory services. As a result, this function is not al= lowed to + call any memory allocation services in its implementation. It is the ca= ller's + responsibility to allocate and free the Destination and Scratch buffers. + If the compressed source data specified by Source is successfully decomp= ressed + into Destination, then RETURN_SUCCESS is returned. If the compressed so= urce data + specified by Source is not in a valid compressed data format, + then RETURN_INVALID_PARAMETER is returned. + + If Source is NULL, then ASSERT(). + If Destination is NULL, then ASSERT(). + If the required scratch buffer size > 0 and Scratch is NULL, then ASSERT= (). + + @param Source The source buffer containing the compressed data. + @param Destination The destination buffer to store the decompressed dat= a. + @param Scratch A temporary scratch buffer that is used to perform t= he decompression. + This is an optional parameter that may be NULL if the + required scratch buffer size is 0. + + @retval RETURN_SUCCESS Decompression completed successfully, and + the uncompressed buffer is returned in Destinati= on. + @retval RETURN_INVALID_PARAMETER + The source buffer specified by Source is corrupt= ed + (not in a valid compressed format). +**/ +RETURN_STATUS +UefiTianoDecompress ( + IN CONST VOID *Source, + IN OUT VOID *Destination, + IN OUT VOID *Scratch, + IN UINT32 Version + ); #endif diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecomp= ressLib.c b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompr= essLib.c new file mode 100644 index 0000000000..5a73933d2a --- /dev/null +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib= .c @@ -0,0 +1,213 @@ +/** @file + UEFI Decompress Library implementation refer to UEFI specification. + + Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+ Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include +#include +#include "BaseUefiDecompressLibInternals.h" + +/** + Examines a GUIDed section and returns the size of the decoded buffer and= the + size of an optional scratch buffer required to actually decode the data = in a GUIDed section. + + Examines a GUIDed section specified by InputSection. + If GUID for InputSection does not match the GUID that this handler suppo= rts, + then RETURN_UNSUPPORTED is returned. + If the required information can not be retrieved from InputSection, + then RETURN_INVALID_PARAMETER is returned. + If the GUID of InputSection does match the GUID that this handler suppor= ts, + then the size required to hold the decoded buffer is returned in OututBu= fferSize, + the size of an optional scratch buffer is returned in ScratchSize, and t= he Attributes field + from EFI_GUID_DEFINED_SECTION header of InputSection is returned in Sect= ionAttribute. + + If InputSection is NULL, then ASSERT(). + If OutputBufferSize is NULL, then ASSERT(). + If ScratchBufferSize is NULL, then ASSERT(). + If SectionAttribute is NULL, then ASSERT(). + + + @param[in] InputSection A pointer to a GUIDed section of an FFS f= ormatted file. + @param[out] OutputBufferSize A pointer to the size, in bytes, of an ou= tput buffer required + if the buffer specified by InputSection w= ere decoded. + @param[out] ScratchBufferSize A pointer to the size, in bytes, required= as scratch space + if the buffer specified by InputSection w= ere decoded. + @param[out] SectionAttribute A pointer to the attributes of the GUIDed= section. See the Attributes + field of EFI_GUID_DEFINED_SECTION in the = PI Specification. + + @retval RETURN_SUCCESS The information about InputSection wa= s returned. + @retval RETURN_UNSUPPORTED The section specified by InputSection= does not match the GUID this handler supports. + @retval RETURN_INVALID_PARAMETER The information can not be retrieved = from the section specified by InputSection. + +**/ +RETURN_STATUS +EFIAPI +TianoDecompressGetInfo ( + IN CONST VOID *InputSection, + OUT UINT32 *OutputBufferSize, + OUT UINT32 *ScratchBufferSize, + OUT UINT16 *SectionAttribute + ) + +{ + ASSERT (SectionAttribute !=3D NULL); + + if (InputSection =3D=3D NULL) { + return RETURN_INVALID_PARAMETER; + } + + if (IS_SECTION2 (InputSection)) { + if (!CompareGuid ( + &gTianoCustomDecompressGuid, + &(((EFI_GUID_DEFINED_SECTION2 *) InputSection)->SectionDefinitionG= uid))) { + return RETURN_INVALID_PARAMETER; + } + // + // Get guid attribute of guid section. + // + *SectionAttribute =3D ((EFI_GUID_DEFINED_SECTION2 *) InputSection)->At= tributes; + + // + // Call Tiano GetInfo to get the required size info. + // + return UefiDecompressGetInfo ( + (UINT8 *) InputSection + ((EFI_GUID_DEFINED_SECTION2 *) Input= Section)->DataOffset, + SECTION2_SIZE (InputSection) - ((EFI_GUID_DEFINED_SECTION2 *)= InputSection)->DataOffset, + OutputBufferSize, + ScratchBufferSize + ); + } else { + if (!CompareGuid ( + &gTianoCustomDecompressGuid, + &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGu= id))) { + return RETURN_INVALID_PARAMETER; + } + // + // Get guid attribute of guid section. + // + *SectionAttribute =3D ((EFI_GUID_DEFINED_SECTION *) InputSection)->Att= ributes; + + // + // Call Tiano GetInfo to get the required size info. + // + return UefiDecompressGetInfo ( + (UINT8 *) InputSection + ((EFI_GUID_DEFINED_SECTION *) InputS= ection)->DataOffset, + SECTION_SIZE (InputSection) - ((EFI_GUID_DEFINED_SECTION *) I= nputSection)->DataOffset, + OutputBufferSize, + ScratchBufferSize + ); + } +} + +/** + Decompress a Tiano compressed GUIDed section into a caller allocated out= put buffer. + + Decodes the GUIDed section specified by InputSection. + If GUID for InputSection does not match the GUID that this handler suppo= rts, then RETURN_UNSUPPORTED is returned. + If the data in InputSection can not be decoded, then RETURN_INVALID_PARA= METER is returned. + If the GUID of InputSection does match the GUID that this handler suppor= ts, then InputSection + is decoded into the buffer specified by OutputBuffer and the authenticat= ion status of this + decode operation is returned in AuthenticationStatus. If the decoded bu= ffer is identical to the + data in InputSection, then OutputBuffer is set to point at the data in I= nputSection. Otherwise, + the decoded data will be placed in caller allocated buffer specified by = OutputBuffer. + + If InputSection is NULL, then ASSERT(). + If OutputBuffer is NULL, then ASSERT(). + If ScratchBuffer is NULL and this decode operation requires a scratch bu= ffer, then ASSERT(). + If AuthenticationStatus is NULL, then ASSERT(). + + + @param[in] InputSection A pointer to a GUIDed section of an FFS format= ted file. + @param[out] OutputBuffer A pointer to a buffer that contains the result= of a decode operation. + @param[in] ScratchBuffer A caller allocated buffer that may be required= by this function + as a scratch buffer to perform the decode oper= ation. + @param[out] AuthenticationStatus + A pointer to the authentication status of the = decoded output buffer. + See the definition of authentication status in= the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI + section of the PI Specification. EFI_AUTH_STAT= US_PLATFORM_OVERRIDE must + never be set by this handler. + + @retval RETURN_SUCCESS The buffer specified by InputSection = was decoded. + @retval RETURN_UNSUPPORTED The section specified by InputSection= does not match the GUID this handler supports. + @retval RETURN_INVALID_PARAMETER The section specified by InputSection= can not be decoded. + +**/ +RETURN_STATUS +EFIAPI +TianoDecompress ( + IN CONST VOID *InputSection, + OUT VOID **OutputBuffer, + IN VOID *ScratchBuffer, OPTIONAL + OUT UINT32 *AuthenticationStatus + ) +{ + ASSERT (OutputBuffer !=3D NULL); + ASSERT (InputSection !=3D NULL); + + if (IS_SECTION2 (InputSection)) { + if (!CompareGuid ( + &gTianoCustomDecompressGuid, + &(((EFI_GUID_DEFINED_SECTION2 *) InputSection)->SectionDefinitionG= uid))) { + return RETURN_INVALID_PARAMETER; + } + + // + // Set Authentication to Zero. + // + *AuthenticationStatus =3D 0; + + // + // Call Tiano Decompress to get the raw data + // + return UefiTianoDecompress ( + (UINT8 *) InputSection + ((EFI_GUID_DEFINED_SECTION2 *) Input= Section)->DataOffset, + *OutputBuffer, + ScratchBuffer, + 2 + ); + } else { + if (!CompareGuid ( + &gTianoCustomDecompressGuid, + &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGu= id))) { + return RETURN_INVALID_PARAMETER; + } + + // + // Set Authentication to Zero. + // + *AuthenticationStatus =3D 0; + + // + // Call Tiano Decompress to get the raw data + // + return UefiTianoDecompress ( + (UINT8 *) InputSection + ((EFI_GUID_DEFINED_SECTION *) InputS= ection)->DataOffset, + *OutputBuffer, + ScratchBuffer, + 2 + ); + } +} + +/** + Registers TianoDecompress and TianoDecompressGetInfo handlers with Tiano= CustomerDecompressGuid + + @retval RETURN_SUCCESS Register successfully. + @retval RETURN_OUT_OF_RESOURCES No enough memory to store this handle= r. +**/ +RETURN_STATUS +EFIAPI +TianoDecompressLibConstructor ( + VOID +) +{ + return ExtractGuidedSectionRegisterHandlers ( + &gTianoCustomDecompressGuid, + TianoDecompressGetInfo, + TianoDecompress + ); +} diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecomp= ressLib.inf b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecom= pressLib.inf new file mode 100644 index 0000000000..280a5f307d --- /dev/null +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib= .inf @@ -0,0 +1,42 @@ +## @file +# This library instance produces UefiDecompressLib and Tiano Custom decom= pression algorithm. +# Tiano custom decompression algorithm shares most of code with Uefi Deco= mpress algorithm. +# +# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D BaseUefiTianoCustomDecompressLib + MODULE_UNI_FILE =3D BaseUefiDecompressLib.uni + FILE_GUID =3D d774c4d9-c121-4da3-a5e2-0f317e3c630c + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D UefiDecompressLib + CONSTRUCTOR =3D TianoDecompressLibConstructor + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 EBC +# + +[Sources] + BaseUefiDecompressLibInternals.h + BaseUefiDecompressLib.c + BaseUefiTianoCustomDecompressLib.c + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + BaseLib + DebugLib + BaseMemoryLib + ExtractGuidedSectionLib + +[Guids] + gTianoCustomDecompressGuid ## PRODUCES ## UNDEFINED # specifies ti= ano custom decompress algorithm. diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 28d4a966c2..6c563375ee 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -759,10 +759,15 @@ [Guids] # GUID defined in Windows UEFI Firmware Update Platform doc # ## Include/IndustryStandard/WindowsUxCapsule.h gWindowsUxCapsuleGuid =3D { 0x3b8c8162, 0x188c, 0x46a4, { 0xae,= 0xc9, 0xbe, 0x43, 0xf1, 0xd6, 0x56, 0x97}} =20 + # + # GUID indicates the tiano custom compress/decompress algorithm. + # + gTianoCustomDecompressGuid =3D { 0xA31280AD, 0x481E, 0x41B6, { 0x95,= 0xE8, 0x12, 0x7F, 0x4C, 0x98, 0x47, 0x79 }} + [Guids.IA32, Guids.X64] ## Include/Guid/Cper.h gEfiIa32X64ErrorTypeCacheCheckGuid =3D { 0xA55701F5, 0xE3EF, 0x43de, { 0= xAC, 0x72, 0x24, 0x9B, 0x57, 0x3F, 0xAD, 0x2C }} =20 ## Include/Guid/Cper.h diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc index 21743e384c..a2ff12fe75 100644 --- a/MdePkg/MdePkg.dsc +++ b/MdePkg/MdePkg.dsc @@ -55,10 +55,11 @@ [Components] MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.i= nf MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf + MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.inf MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf =20 MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf --=20 2.18.0.windows.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 (#40474): https://edk2.groups.io/g/devel/message/40474 Mute This Topic: https://groups.io/mt/31602929/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-