diff options
author | Pali Rohár <pali@kernel.org> | 2022-02-17 10:43:37 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-02-17 14:17:07 +0100 |
commit | e65ea147e2e0c90eeca325710d6b6704bac71c04 (patch) | |
tree | 6b32cc2ec3e85c7a168e4fe45842d3ba9251e395 /tools | |
parent | f76ae2571fe050bf8b3f29e57e9f4705f427ec53 (diff) | |
download | u-boot-e65ea147e2e0c90eeca325710d6b6704bac71c04.tar.gz u-boot-e65ea147e2e0c90eeca325710d6b6704bac71c04.tar.bz2 u-boot-e65ea147e2e0c90eeca325710d6b6704bac71c04.zip |
tools: kwbimage: Do not show mkimage error message in dumpimage
When pflag is set then kwbimage was invoked by dumpimage and not mkimage.
So do not show mkimage error message in this case.
Signed-off-by: Pali Rohár <pali@kernel.org>
Tested-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kwbimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 5a717e5354..73788d8d89 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -2449,7 +2449,7 @@ static int kwbimage_extract_subimage(void *ptr, struct image_tool_params *params */ static int kwbimage_check_params(struct image_tool_params *params) { - if (!params->lflag && !params->iflag && + if (!params->lflag && !params->iflag && !params->pflag && (!params->imagename || !strlen(params->imagename))) { char *msg = "Configuration file for kwbimage creation omitted"; |