diff options
author | Stefano Babic | 2013-08-19 19:03:19 +0200 |
---|---|---|
committer | Stefano Babic | 2013-08-31 15:06:29 +0200 |
commit | 9bac0bb37402ca72fd905f3e591080b4cfb98c42 (patch) | |
tree | a5a70267410495940ea38484c42472ffbbcd7f95 /tools/mkimage.h | |
parent | 377e367a8558c5327c925387ecf1f0a4ee7ca177 (diff) |
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mkimage.h b/tools/mkimage.h index 950e19067f0..ecb30322824 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 *); |