[PATCH u-boot-marvell 4/7] tools: kwbimage: Do not show mkimage error message in dumpimage

Pali Rohár pali at kernel.org
Tue Feb 15 19:59:22 CET 2022


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 at kernel.org>
---
 tools/kwbimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 22e6a44c561c..8fd30516c9d4 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -2436,7 +2436,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";
 
-- 
2.20.1



More information about the U-Boot mailing list