From bd6e14209445853f9024574b756bba3184bc215c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 1 May 2016 13:55:38 -0600 Subject: 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 Acked-by: Joe Hershberger --- tools/imagetool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/imagetool.c') diff --git a/tools/imagetool.c b/tools/imagetool.c index 916ab964d5..08d191d9f8 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", -- cgit v1.2.1