Commit bd6e14209445853f9024574b756bba3184bc215c
Committed by
Tom Rini
1 parent
8df81e17f8
Exists in
v2017.01-smarct4x
and in
25 other branches
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>
Showing 3 changed files with 7 additions and 2 deletions Side-by-side Diff
tools/imagetool.c
tools/imagetool.h
tools/mkimage.c
... | ... | @@ -136,7 +136,7 @@ |
136 | 136 | int opt; |
137 | 137 | |
138 | 138 | while ((opt = getopt(argc, argv, |
139 | - "a:A:b:cC:d:D:e:Ef:Fk:K:ln:O:rR:sT:vVx")) != -1) { | |
139 | + "a:A:b:cC:d:D:e:Ef:Fk:K:ln:O:rR:qsT:vVx")) != -1) { | |
140 | 140 | switch (opt) { |
141 | 141 | case 'a': |
142 | 142 | params.addr = strtoull(optarg, &ptr, 16); |
... | ... | @@ -215,6 +215,9 @@ |
215 | 215 | params.os = genimg_get_os_id(optarg); |
216 | 216 | if (params.os < 0) |
217 | 217 | usage("Invalid operating system"); |
218 | + break; | |
219 | + case 'q': | |
220 | + params.quiet = 1; | |
218 | 221 | break; |
219 | 222 | case 'r': |
220 | 223 | params.require_keys = 1; |