diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 13:55:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-23 11:50:19 -0400 |
commit | bd6e14209445853f9024574b756bba3184bc215c (patch) | |
tree | 5ae7e99f0388a3ff2a8b8819886540cb7dbc520b /tools/mkimage.c | |
parent | 8df81e17f81ba0542f6dbb7636db64fa56c12d8a (diff) | |
download | u-boot-bd6e14209445853f9024574b756bba3184bc215c.tar.gz |
mkimage: Add a quiet mode
Some build systems want to be quiet unless there is a problem. At present
mkimage displays quite a bit of information when generating a FIT file. Add
a '-q' flag to silence this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r-- | tools/mkimage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index 93d1c16c7c..aefe22f19b 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -136,7 +136,7 @@ static void process_args(int argc, char **argv) int opt; while ((opt = getopt(argc, argv, - "a:A:b:cC:d:D:e:Ef:Fk:K:ln:O:rR:sT:vVx")) != -1) { + "a:A:b:cC:d:D:e:Ef:Fk:K:ln:O:rR:qsT:vVx")) != -1) { switch (opt) { case 'a': params.addr = strtoull(optarg, &ptr, 16); @@ -216,6 +216,9 @@ static void process_args(int argc, char **argv) if (params.os < 0) usage("Invalid operating system"); break; + case 'q': + params.quiet = 1; + break; case 'r': params.require_keys = 1; break; |