mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 07:04:28 +02:00
Add PcdDxeIplSupportUefiDecompress usage into DxeIpl to save space
if UEFI decompression is not needed to find the DXE Core. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8190 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
72670d3e4c
commit
873b7997ef
@ -91,6 +91,9 @@
|
|||||||
[FeaturePcd.IA32]
|
[FeaturePcd.IA32]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
|
||||||
|
|
||||||
|
[FeaturePcd.common]
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress
|
||||||
|
|
||||||
[FixedPcd.common]
|
[FixedPcd.common]
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeiHandoffToDxe
|
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeiHandoffToDxe
|
||||||
|
|
||||||
|
@ -586,6 +586,7 @@ Decompress (
|
|||||||
//
|
//
|
||||||
switch (CompressionSection->CompressionType) {
|
switch (CompressionSection->CompressionType) {
|
||||||
case EFI_STANDARD_COMPRESSION:
|
case EFI_STANDARD_COMPRESSION:
|
||||||
|
if (FeaturePcdGet(PcdDxeIplSupportUefiDecompress)) {
|
||||||
//
|
//
|
||||||
// Load EFI standard compression.
|
// Load EFI standard compression.
|
||||||
// For compressed data, decompress them to destination buffer.
|
// For compressed data, decompress them to destination buffer.
|
||||||
@ -638,6 +639,9 @@ Decompress (
|
|||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
return EFI_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
case EFI_NOT_COMPRESSED:
|
case EFI_NOT_COMPRESSED:
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user