Commit 83636fa0 authored by Pierre Aubert's avatar Pierre Aubert Committed by Tom Rini

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: default avatarPierre Aubert <p.aubert@staubli.com>
parent 310ae37e
...@@ -88,7 +88,8 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) ...@@ -88,7 +88,8 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
image_print_contents(hdr); image_print_contents(hdr);
#endif #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", printf("Wrong Image Type for %s command\n",
cmdtp->name); cmdtp->name);
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment