summaryrefslogtreecommitdiff
path: root/tools/mkimage.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2013-08-19 19:03:19 +0200
committerStefano Babic <sbabic@denx.de>2013-08-31 15:06:29 +0200
commit9bac0bb37402ca72fd905f3e591080b4cfb98c42 (patch)
treea5a70267410495940ea38484c42472ffbbcd7f95 /tools/mkimage.h
parent377e367a8558c5327c925387ecf1f0a4ee7ca177 (diff)
downloadu-boot-imx-9bac0bb37402ca72fd905f3e591080b4cfb98c42.zip
u-boot-imx-9bac0bb37402ca72fd905f3e591080b4cfb98c42.tar.gz
u-boot-imx-9bac0bb37402ca72fd905f3e591080b4cfb98c42.tar.bz2
tools: add variable padding of data image in mkimage
Use previously unused return value of function vrec_header to return a padding size to generic mkimage. This padding size is used in copy_files to pad with zeros after copying the data image. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools/mkimage.h')
-rw-r--r--tools/mkimage.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mkimage.h b/tools/mkimage.h
index 950e190..ecb3032 100644
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -132,7 +132,10 @@ struct image_type_params {
/*
* This callback function will be executed for variable size record
* It is expected to build this header in memory and return its length
- * and a pointer to it
+ * and a pointer to it by using image_type_params.header_size and
+ * image_type_params.hdr. The return value shall indicate if an
+ * additional padding should be used when copying the data image
+ * by returning the padding length.
*/
int (*vrec_header) (struct mkimage_params *,
struct image_type_params *);