summaryrefslogtreecommitdiff
path: root/tools/imagetool.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-01 13:55:38 -0600
committerTom Rini <trini@konsulko.com>2016-05-23 11:50:19 -0400
commitbd6e14209445853f9024574b756bba3184bc215c (patch)
tree5ae7e99f0388a3ff2a8b8819886540cb7dbc520b /tools/imagetool.c
parent8df81e17f81ba0542f6dbb7636db64fa56c12d8a (diff)
downloadu-boot-imx-bd6e14209445853f9024574b756bba3184bc215c.zip
u-boot-imx-bd6e14209445853f9024574b756bba3184bc215c.tar.gz
u-boot-imx-bd6e14209445853f9024574b756bba3184bc215c.tar.bz2
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/imagetool.c')
-rw-r--r--tools/imagetool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/imagetool.c b/tools/imagetool.c
index 916ab96..08d191d 100644
--- a/tools/imagetool.c
+++ b/tools/imagetool.c
@@ -51,7 +51,8 @@ int imagetool_verify_print_header(
* successful
*/
if ((*curr)->print_header) {
- (*curr)->print_header(ptr);
+ if (!params->quiet)
+ (*curr)->print_header(ptr);
} else {
fprintf(stderr,
"%s: print_header undefined for %s\n",