diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-07 05:29:07 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-07 05:29:07 +0000 |
commit | 30f80dd8dedf2c333be4616442daf5d1b412e23e (patch) | |
tree | 81c72954148b30a1a9ac81ff160b2279e5e8faba /Tools/CCode/Source/EfiCompress/EfiCompressMain.c | |
parent | 61e61e3d30f3965953dcfe646d15a17bd9173da1 (diff) | |
download | edk2-platforms-30f80dd8dedf2c333be4616442daf5d1b412e23e.tar.xz |
The main issue want to be resolve is that some tools need EfiCompress and other tools need TianoCompress, but only common Compress(indeed is TianoCompress) is provided in tool/CCode/Common.
EfiCompress and TianoCompress are all originated from LZ77 algorithms and they have very little different, that different position set for Huffman code.
EfiCompress is defined in EFI 1.1 spec and EfiRom tool need it to create a recognized compressed EFI driver.
TianoCompress is for pursuer more size saving and it used be GenFfs and GenSection tools.
So this patch:
1) Split EfiComress and TianoCompress in edkII’s tools
2) Change EfiRom tool use EfiCompress and GenFfs/GenSection use TianoCompress
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2064 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/CCode/Source/EfiCompress/EfiCompressMain.c')
-rw-r--r-- | Tools/CCode/Source/EfiCompress/EfiCompressMain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/CCode/Source/EfiCompress/EfiCompressMain.c b/Tools/CCode/Source/EfiCompress/EfiCompressMain.c index f745ea2b46..b07f62990d 100644 --- a/Tools/CCode/Source/EfiCompress/EfiCompressMain.c +++ b/Tools/CCode/Source/EfiCompress/EfiCompressMain.c @@ -27,7 +27,7 @@ Abstract: #include <stdio.h>
#include <Common/UefiBaseTypes.h>
-#include "EfiCompress.h"
+#include "Compress.h"
#define UTILITY_NAME "EfiCompress"
#define UTILITY_MAJOR_VERSION 1
@@ -176,14 +176,14 @@ Returns: // Get destination data size and do the compression
//
DstSize = 0;
- Status = Compress (SrcBuffer, SrcSize, DstBuffer, &DstSize);
+ Status = EfiCompress (SrcBuffer, SrcSize, DstBuffer, &DstSize);
if (Status == EFI_BUFFER_TOO_SMALL) {
if ((DstBuffer = malloc (DstSize)) == NULL) {
printf ("Can't allocate memory\n");
goto Done;
}
- Status = Compress (SrcBuffer, SrcSize, DstBuffer, &DstSize);
+ Status = EfiCompress (SrcBuffer, SrcSize, DstBuffer, &DstSize);
}
if (EFI_ERROR (Status)) {
|