mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-28 09:11:34 +02:00
common/cmd_ximg.c: add ifdef protection for gzip uncompression
Print a message if we do not have the ability to uncompress a gzip image. Before, u-boot would just assume the routines were available Signed-off-by: Matthew McClintock <msm@freescale.com>
This commit is contained in:
parent
df3fc52608
commit
0e0996ef4f
@ -215,6 +215,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
|||||||
memmove ((char *) dest, (char *)data, len);
|
memmove ((char *) dest, (char *)data, len);
|
||||||
#endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */
|
#endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */
|
||||||
break;
|
break;
|
||||||
|
#ifdef CONFIG_GZIP
|
||||||
case IH_COMP_GZIP:
|
case IH_COMP_GZIP:
|
||||||
printf (" Uncompressing part %d ... ", part);
|
printf (" Uncompressing part %d ... ", part);
|
||||||
if (gunzip ((void *) dest, unc_len,
|
if (gunzip ((void *) dest, unc_len,
|
||||||
@ -223,6 +224,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
#if defined(CONFIG_BZIP2)
|
#if defined(CONFIG_BZIP2)
|
||||||
case IH_COMP_BZIP2:
|
case IH_COMP_BZIP2:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user