From: Simon Glass Date: Sun, 30 Aug 2015 22:55:23 +0000 (-0600) Subject: mkimage: Allow the original file size to be recorded X-Git-Tag: v2015.10-rc3~6^2~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b99e5bbb619f91c675306226a262a14c9d9a3a3;p=u-boot 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 Reviewed-by: Joe Hershberger --- 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 */ }; /*