]> git.sur5r.net Git - u-boot/commitdiff
mkimage: Allow the original file size to be recorded
authorSimon Glass <sjg@chromium.org>
Sun, 30 Aug 2015 22:55:23 +0000 (16:55 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 3 Sep 2015 03:28:23 +0000 (21:28 -0600)
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>
tools/imagetool.h

index 99bbf2f459e5ae2d66bb69a25b55011a990b84c3..ad2deb58dceae81e97884e0a19cf9c3541a78f6d 100644 (file)
@@ -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 */
 };
 
 /*