summaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/imagetag_cmdline.h
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-05-27 13:22:19 +0000
committerJonas Gorski <jogo@openwrt.org>2012-05-27 13:22:19 +0000
commitb31108e0a8b1a747c07ddefbd688436e7d604830 (patch)
tree5d668e1907b27abe90ca5949be218265a759f6b9 /tools/firmware-utils/src/imagetag_cmdline.h
parent226b030e4472a095faf9d48dd8b2e07556ab8b24 (diff)
downloadmaster-31e0f0ae-b31108e0a8b1a747c07ddefbd688436e7d604830.tar.gz
master-31e0f0ae-b31108e0a8b1a747c07ddefbd688436e7d604830.tar.bz2
master-31e0f0ae-b31108e0a8b1a747c07ddefbd688436e7d604830.zip
tools: imagetag: add parameter for padding images
Allow images to be padded to a certain size. This prevents CFE from flashing them to the second image offset. SVN-Revision: 31875
Diffstat (limited to 'tools/firmware-utils/src/imagetag_cmdline.h')
-rw-r--r--tools/firmware-utils/src/imagetag_cmdline.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/firmware-utils/src/imagetag_cmdline.h b/tools/firmware-utils/src/imagetag_cmdline.h
index c566a9f293..a6fd3896b7 100644
--- a/tools/firmware-utils/src/imagetag_cmdline.h
+++ b/tools/firmware-utils/src/imagetag_cmdline.h
@@ -109,6 +109,9 @@ struct gengetopt_args_info
const char *reserved2_help; /**< @brief String for second reserved section. help description. */
int kernel_file_has_header_flag; /**< @brief Indicates that the kernel file includes the kernel header with correct load address and entry point, so no changes are needed (default=off). */
const char *kernel_file_has_header_help; /**< @brief Indicates that the kernel file includes the kernel header with correct load address and entry point, so no changes are needed help description. */
+ int pad_arg; /**< @brief Pad the image to this size if smaller (in MiB). */
+ char * pad_orig; /**< @brief Pad the image to this size if smaller (in MiB) original value given at command line. */
+ const char *pad_help; /**< @brief Pad the image to this size if smaller (in MiB) help description. */
unsigned int help_given ; /**< @brief Whether help was given. */
unsigned int version_given ; /**< @brief Whether version was given. */
@@ -136,6 +139,7 @@ struct gengetopt_args_info
unsigned int inactive_given ; /**< @brief Whether inactive was given. */
unsigned int reserved2_given ; /**< @brief Whether reserved2 was given. */
unsigned int kernel_file_has_header_given ; /**< @brief Whether kernel-file-has-header was given. */
+ unsigned int pad_given ; /**< @brief Whether pad was given. */
} ;