summaryrefslogtreecommitdiff
path: root/tools/kwbimage.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-02-17 12:43:37 +0300
committerStefan Roese <sr@denx.de>2022-02-17 16:17:07 +0300
commite65ea147e2e0c90eeca325710d6b6704bac71c04 (patch)
tree6b32cc2ec3e85c7a168e4fe45842d3ba9251e395 /tools/kwbimage.c
parentf76ae2571fe050bf8b3f29e57e9f4705f427ec53 (diff)
downloadu-boot-e65ea147e2e0c90eeca325710d6b6704bac71c04.tar.xz
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/kwbimage.c')
-rw-r--r--tools/kwbimage.c2
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";