summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-30 16:55:23 -0600
committerSimon Glass <sjg@chromium.org>2015-09-02 21:28:23 -0600
commit1b99e5bbb619f91c675306226a262a14c9d9a3a3 (patch)
treeeccb55f1d1ccbda5deae4978caa3ca6978fd3872
parent424b86ae597fa933b94fa91a6683e8c6b47af81d (diff)
downloadtalos-obmc-uboot-1b99e5bbb619f91c675306226a262a14c9d9a3a3.tar.gz
talos-obmc-uboot-1b99e5bbb619f91c675306226a262a14c9d9a3a3.zip
mkimage: Allow the original file size to be recorded
Allow the image handler to store the original input file size so that it can reference it later. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--tools/imagetool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h
index 99bbf2f459..ad2deb58dc 100644
--- a/tools/imagetool.h
+++ b/tools/imagetool.h
@@ -60,6 +60,7 @@ struct image_tool_params {
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 */
+ int orig_file_size; /* Original size for file before padding */
};
/*
OpenPOWER on IntegriCloud