diff options
author | Matthew McClintock <msm@freescale.com> | 2011-05-24 05:48:26 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 14:11:21 +0200 |
commit | 0e0996ef4fb340bd91ce6588a998cdaf10f43a42 (patch) | |
tree | 16710ebe6ddb369075eb0defce7b4416ffbcc067 /common/cmd_ximg.c | |
parent | df3fc52608daa1e10332f59cd2f226ba400d1c98 (diff) | |
download | u-boot-imx-0e0996ef4fb340bd91ce6588a998cdaf10f43a42.zip u-boot-imx-0e0996ef4fb340bd91ce6588a998cdaf10f43a42.tar.gz u-boot-imx-0e0996ef4fb340bd91ce6588a998cdaf10f43a42.tar.bz2 |
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>
Diffstat (limited to 'common/cmd_ximg.c')
-rw-r--r-- | common/cmd_ximg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index dceb975..850188e 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -215,6 +215,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) memmove ((char *) dest, (char *)data, len); #endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */ break; +#ifdef CONFIG_GZIP case IH_COMP_GZIP: printf (" Uncompressing part %d ... ", part); 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; } break; +#endif #if defined(CONFIG_BZIP2) case IH_COMP_BZIP2: { |