summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Aubert <p.aubert@staubli.com>2015-09-16 08:29:11 +0200
committerTom Rini <trini@konsulko.com>2015-10-24 13:50:31 -0400
commit83636fa09d6b35279381b9fc497203a206fbb445 (patch)
tree041ae929755de21e2ff1624f7fc25fd843f650d3 /common
parent310ae37edb3becedf5da904201f3439ea42ab12f (diff)
downloadtalos-obmc-uboot-83636fa09d6b35279381b9fc497203a206fbb445.tar.gz
talos-obmc-uboot-83636fa09d6b35279381b9fc497203a206fbb445.zip
Allow imxtract to extract part of script image.
Scripts are multi-file images, the imxtract command should handle them in the same manner. Signed-off-by: Pierre Aubert <p.aubert@staubli.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ximg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c
index 8b8645c9e1..d033c15b62 100644
--- a/common/cmd_ximg.c
+++ b/common/cmd_ximg.c
@@ -88,7 +88,8 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
image_print_contents(hdr);
#endif
- if (!image_check_type(hdr, IH_TYPE_MULTI)) {
+ if (!image_check_type(hdr, IH_TYPE_MULTI) &&
+ !image_check_type(hdr, IH_TYPE_SCRIPT)) {
printf("Wrong Image Type for %s command\n",
cmdtp->name);
return 1;
OpenPOWER on IntegriCloud