Merge branch 'rmobile' of git://git.denx.de/u-boot-sh
[oweals/u-boot.git] / tools / imagetool.h
index 3e15b4e22b9a0086c57d3bb6c61a2abe35838a31..ad2deb58dceae81e97884e0a19cf9c3541a78f6d 100644 (file)
@@ -16,6 +16,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <sys/types.h>
 #include <time.h>
 #include <unistd.h>
 #include <u-boot/sha1.h>
@@ -58,6 +59,8 @@ struct image_tool_params {
        const char *keydest;    /* Destination .dtb for public key */
        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 */
 };
 
 /*