diff mbox

[U-Boot,v3,05/25] mkimage: Allow the original file size to be recorded

Message ID 1435102150-29438-6-git-send-email-sjg@chromium.org
State Deferred
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass June 23, 2015, 11:28 p.m. UTC
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>
---

Changes in v3: None
Changes in v2: None

 tools/imagetool.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Joe Hershberger June 25, 2015, 10:36 p.m. UTC | #1
Hi Simon,

On Tue, Jun 23, 2015 at 6:28 PM, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> 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..23c7d30 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;             /* Pad size for file */

It looks like you forgot to change the comment.

>  };
>
>  /*
> --
> 2.4.3.573.g4eafbef
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
diff mbox

Patch

diff --git a/tools/imagetool.h b/tools/imagetool.h
index 99bbf2f..23c7d30 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;		/* Pad size for file */
 };
 
 /*