summaryrefslogtreecommitdiffstats
path: root/tools/imagetool.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-23 15:39:12 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:29 -0600
commit92a655c326b22de58dcd5371ca1a62fdc57f8e04 (patch)
treec4be6e5c792223d25a44f667a47e533a91bbfddc /tools/imagetool.h
parentaea3d40d05f0eb8627ac0999315cad5c4b3676f5 (diff)
downloadtalos-obmc-uboot-92a655c326b22de58dcd5371ca1a62fdc57f8e04.tar.gz
talos-obmc-uboot-92a655c326b22de58dcd5371ca1a62fdc57f8e04.zip
mkimage: Set up a file size parameter and keep it updated
Some functions called by mkimage would like to know the output file size. Initially this is the same as the input file size, but it may be affected by adding headers, etc. Add this information to the image parameters. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/imagetool.h')
-rw-r--r--tools/imagetool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h
index b7874f47cd..99bbf2f459 100644
--- a/tools/imagetool.h
+++ b/tools/imagetool.h
@@ -59,6 +59,7 @@ struct image_tool_params {
const char *keydest; /* Destination .dtb for public key */
const char *comment; /* Comment to add to signature node */
int require_keys; /* 1 to mark signing keys as 'required' */
+ int file_size; /* Total size of output file */
};
/*
OpenPOWER on IntegriCloud