From: Simon Glass Date: Sun, 30 Aug 2015 16:55:23 -0600 Subject: [U-Boot] [PATCH v5 12/41] mkimage: Allow the original file size to be recorded In-Reply-To: <1440975352-28528-1-git-send-email-sjg@chromium.org> References: <1440975352-28528-1-git-send-email-sjg@chromium.org> Message-ID: <1440975352-28528-13-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v5: - Fix comment on orig_file_size Changes in v4: None Changes in v3: None Changes in v2: None tools/imagetool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/imagetool.h b/tools/imagetool.h index 99bbf2f..ad2deb5 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 */ }; /* -- 2.5.0.457.gab17608