summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2022-02-17 10:43:37 +0100
committerStefan Roese <[email protected]>2022-02-17 14:17:07 +0100
commite65ea147e2e0c90eeca325710d6b6704bac71c04 (patch)
tree6b32cc2ec3e85c7a168e4fe45842d3ba9251e395 /tools
parentf76ae2571fe050bf8b3f29e57e9f4705f427ec53 (diff)
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 <[email protected]> Tested-by: Tony Dinh <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/kwbimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 5a717e5354b..73788d8d892 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";