[PATCH u-boot-marvell v2 4/7] tools: kwbimage: Do not show mkimage error message in dumpimage
Pali Rohár
pali at kernel.org
Thu Feb 17 10:43:37 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>
Tested-by: Tony Dinh <mibodhi at gmail.com>
Reviewed-by: Stefan Roese <sr at denx.de>
---
tools/kwbimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 5a717e5354bf..73788d8d892f 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";
--
2.20.1
More information about the U-Boot
mailing list