summaryrefslogtreecommitdiff
path: root/tools/mkimage.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-09-15 23:50:16 +0000
committerWolfgang Denk <wd@denx.de>2011-10-05 22:03:12 +0200
commitf0662105b674a3874227316abf8536bebc9b5995 (patch)
tree35e46ac50259bf18ab03de3cbfc941e411c8d636 /tools/mkimage.h
parent163967905f9e41232d5f7c525a9811a200fe30ba (diff)
downloadu-boot-f0662105b674a3874227316abf8536bebc9b5995.tar.gz
u-boot-f0662105b674a3874227316abf8536bebc9b5995.tar.bz2
u-boot-f0662105b674a3874227316abf8536bebc9b5995.zip
mkimage: Add variable lenght header support
Some images have not a header of fix lenght. The patch will be used for the generation of AIS images, because this header has a variable lenght. The patch adds also the parameter "-s" (skip) to not copy automatically the passed image file. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'tools/mkimage.h')
-rw-r--r--tools/mkimage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/mkimage.h b/tools/mkimage.h
index e59a91913e..213baf0037 100644
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -60,6 +60,7 @@ struct mkimage_params {
int lflag;
int vflag;
int xflag;
+ int skipcpy;
int os;
int arch;
int type;
@@ -122,6 +123,13 @@ struct image_type_params {
int (*check_image_type) (uint8_t);
/* This callback function will be executed if fflag is defined */
int (*fflag_handle) (struct mkimage_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
+ */
+ int (*vrec_header) (struct mkimage_params *,
+ struct image_type_params *);
/* pointer to the next registered entry in linked list */
struct image_type_params *next;
};