projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
310ae37
)
Allow imxtract to extract part of script image.
author
Pierre Aubert
<p.aubert@staubli.com>
Wed, 16 Sep 2015 06:29:11 +0000
(08:29 +0200)
committer
Tom Rini
<trini@konsulko.com>
Sat, 24 Oct 2015 17:50:31 +0000
(13:50 -0400)
Scripts are multi-file images, the imxtract command should handle them
in the same manner.
Signed-off-by: Pierre Aubert <p.aubert@staubli.com>
common/cmd_ximg.c
patch
|
blob
|
history
diff --git
a/common/cmd_ximg.c
b/common/cmd_ximg.c
index 8b8645c9e1367028690eb6098465509fe60f446a..d033c15b629cf2a88823bde658110dde23da2903 100644
(file)
--- 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;