diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-09-27 16:22:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-09-28 09:23:45 +0200 |
commit | bd7f9b52e2d44bcdee69b087c5d2d1844263dd6d (patch) | |
tree | 4d13de83a91d932f6180b4d552c06f143d25e22f /scripts | |
parent | 4dbe7250eb72412a21c687b2f69c765088f03ada (diff) | |
download | barebox-bd7f9b52e2d44bcdee69b087c5d2d1844263dd6d.tar.gz barebox-bd7f9b52e2d44bcdee69b087c5d2d1844263dd6d.tar.xz |
image: use data base addr for image_print_contents, image_multi_count/getimg
as in barebox the data could be the mapped file or a allocated memory with
just the data (non header)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mkimage.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mkimage.c b/scripts/mkimage.c index 40a3483138..d3a8bfb887 100644 --- a/scripts/mkimage.c +++ b/scripts/mkimage.c @@ -255,7 +255,8 @@ NXTARG: ; } /* for multi-file images we need the data part, too */ - image_print_contents((image_header_t *)ptr); + image_print_contents((image_header_t *)ptr, + (void*)image_get_data((image_header_t *)ptr)); (void) munmap((void *)ptr, sbuf.st_size); (void) close (ifd); @@ -381,7 +382,7 @@ NXTARG: ; image_set_hcrc(hdr, checksum); - image_print_contents(hdr); + image_print_contents(hdr, (void*)image_get_data(hdr)); (void) munmap((void *)ptr, sbuf.st_size); |