mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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>
This commit is contained in:
parent
310ae37edb
commit
83636fa09d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue