From ca3ad58bfa2284f0dc98ec904423e83874a90f52 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Sun, 31 Jan 2010 01:39:20 +0000 Subject: Updated to support passing PE/COFF and LZMA decompress up via HOBS. Currently turned off. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9887 6f19259b-4bc3-4df7-8a09-765794883524 --- BeagleBoardPkg/Sec/Sec.c | 14 +++++++++++++- BeagleBoardPkg/Sec/Sec.inf | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'BeagleBoardPkg/Sec') diff --git a/BeagleBoardPkg/Sec/Sec.c b/BeagleBoardPkg/Sec/Sec.c index a87ff6d65d..448a713f4d 100755 --- a/BeagleBoardPkg/Sec/Sec.c +++ b/BeagleBoardPkg/Sec/Sec.c @@ -24,9 +24,11 @@ #include #include - +#include #include +#include "LzmaDecompress.h" + VOID EFIAPI _ModuleEntryPoint( @@ -260,6 +262,16 @@ CEntryPoint ( ExtractGuidedSectionLibConstructor(); LzmaDecompressLibConstructor(); + // Build HOBs to pass up our version of stuff the DXE Core needs to save space +#if 0 + BuildPeCoffLoaderHob (); + BuildExtractSectionHob ( + &gLzmaCustomDecompressGuid, + LzmaGuidedSectionGetInfo, + LzmaGuidedSectionExtraction + ); +#endif + DecompressFirstFv (); // Load the DXE Core and transfer control to it diff --git a/BeagleBoardPkg/Sec/Sec.inf b/BeagleBoardPkg/Sec/Sec.inf index 58acf9ef4e..87394504ac 100755 --- a/BeagleBoardPkg/Sec/Sec.inf +++ b/BeagleBoardPkg/Sec/Sec.inf @@ -37,6 +37,7 @@ EmbeddedPkg/EmbeddedPkg.dec ArmPkg/ArmPkg.dec Omap35xxPkg/Omap35xxPkg.dec + IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec [LibraryClasses] BaseLib -- cgit v1.2.3