From 4b09cdc798ef62602f874a4da03d2a54ca60b4ae Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 28 Nov 2011 13:46:09 +0100 Subject: add kernel gunzip implementation The kernel uncompression functions have a unified API so use this implementation to get it. Signed-off-by: Sascha Hauer --- commands/bootm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'commands/bootm.c') diff --git a/commands/bootm.c b/commands/bootm.c index 79a16d4745..e2ed9bec50 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -88,9 +88,11 @@ int relocate_image(struct image_handle *handle, void *load_address) #ifdef CONFIG_CMD_BOOTM_ZLIB case IH_COMP_GZIP: printf (" Uncompressing ... "); - if (gunzip (load_address, unc_len, - data, &len) != 0) - return -1; + + ret = gunzip(data, len, NULL, NULL, load_address, NULL, + unzip_error); + if (ret) + return ret; break; #endif #ifdef CONFIG_CMD_BOOTM_BZLIB -- cgit v1.2.3