mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 03:17:29 +01:00
gzip/zlib: make features optional
If you really want to slim down U-Boot and you would rather use a higher compression scheme (like LZMA), it'd be nice to disable gzip/zlib since these code bases take up a significant amount of space. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
8edcde5e4e
commit
44431cabbb
@@ -352,6 +352,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
|
||||
*load_end = load + image_len;
|
||||
puts("OK\n");
|
||||
break;
|
||||
#ifdef CONFIG_GZIP
|
||||
case IH_COMP_GZIP:
|
||||
printf (" Uncompressing %s ... ", type_name);
|
||||
if (gunzip ((void *)load, unc_len,
|
||||
@@ -365,6 +366,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
|
||||
|
||||
*load_end = load + image_len;
|
||||
break;
|
||||
#endif /* CONFIG_GZIP */
|
||||
#ifdef CONFIG_BZIP2
|
||||
case IH_COMP_BZIP2:
|
||||
printf (" Uncompressing %s ... ", type_name);
|
||||
|
||||
Reference in New Issue
Block a user