Skip to contentSkip to conversation

Allow imxtract to extract part of script image.

PATCH In review p.aubert at staubli.com 2 participants 2 messages Sep 16, 2015 – Oct 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow imxtract to extract part of script image.

From: Pierre Aubert <[email protected]>

Scripts are multi-file images, the imxtract command should handle them in the same manner.

---
 common/cmd_ximg.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
common/cmd_ximg.c +2 -1
index 64b9186..abd94ec 100644
@@ -87,7 +87,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;
Signature · 1 line
1.7.6.5
#1 lore raw
Quoted 6 lines · Pierre Aubert

From: Pierre Aubert <[email protected]>

Scripts are multi-file images, the imxtract command should handle them in the same manner.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151024/58d54dcc/attachment.sig>