diff options
author | Amol Vengurlekar <amolsven@gmail.com> | 2019-05-12 17:59:19 -0700 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-13 08:27:22 +0200 |
commit | 51d8c731a20a6fbb1f746a166a85a07a7063d0e8 (patch) | |
tree | 99b7230b635a24d57c85dbafe15eff4be75c4355 | |
parent | 49e6cb7b62c5d7cd5c0a5084c91a84cd9fa8e0fe (diff) |
ubiformat: Dont ignore sequence number CLI option
Image sequence number for the UBI header can be specified for the
ubiformat tool according to the documentation and the help message for
ubiformat. The CLI option --image-seq for image sequence number is not
supported. -Q option for image sequence number is silently ignored.
This patch adds the CLI support for image sequence number.
Signed-off-by: Amol Vengurlekar <amol.sven@gmail.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | ubi-utils/ubiformat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/ubiformat.c b/ubi-utils/ubiformat.c index aedb27b..a90627c 100644 --- a/ubi-utils/ubiformat.c +++ b/ubi-utils/ubiformat.c @@ -120,6 +120,7 @@ static const struct option long_options[] = { { .name = "ubi-ver", .has_arg = 1, .flag = NULL, .val = 'x' }, { .name = "help", .has_arg = 0, .flag = NULL, .val = 'h' }, { .name = "version", .has_arg = 0, .flag = NULL, .val = 'V' }, + { .name = "image-seq", .has_arg = 1, .flag = NULL, .val = 'Q' }, { NULL, 0, NULL, 0}, }; @@ -132,7 +133,7 @@ static int parse_opt(int argc, char * const argv[]) int key, error = 0; unsigned long int image_seq; - key = getopt_long(argc, argv, "nh?Vyqve:x:s:O:f:S:", long_options, NULL); + key = getopt_long(argc, argv, "nh?Vyqve:x:s:O:f:S:Q:", long_options, NULL); if (key == -1) break; |