]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Sec/Sec.c
Updated to support passing PE/COFF and LZMA decompress up via HOBS. Currently turned...
[mirror_edk2.git] / BeagleBoardPkg / Sec / Sec.c
index a87ff6d65dc64d1fed27ef2ef6b2bcb0f2fbfa6d..448a713f4d41c475564e0a5fb053ccc1ba12d9fb 100755 (executable)
 #include <Library/PeCoffGetEntryPointLib.h>\r
 \r
 #include <Ppi/GuidedSectionExtraction.h>\r
-\r
+#include <Guid/LzmaDecompress.h>\r
 #include <Omap3530/Omap3530.h>\r
 \r
+#include "LzmaDecompress.h"\r
+\r
 VOID\r
 EFIAPI \r
 _ModuleEntryPoint(\r
@@ -260,6 +262,16 @@ CEntryPoint (
   ExtractGuidedSectionLibConstructor();\r
   LzmaDecompressLibConstructor();\r
 \r
+  // Build HOBs to pass up our version of stuff the DXE Core needs to save space\r
+#if 0\r
+  BuildPeCoffLoaderHob ();\r
+  BuildExtractSectionHob (\r
+    &gLzmaCustomDecompressGuid,\r
+    LzmaGuidedSectionGetInfo,\r
+    LzmaGuidedSectionExtraction\r
+    );\r
+#endif\r
+\r
   DecompressFirstFv ();\r
 \r
   // Load the DXE Core and transfer control to it\r