[PATCH RFC u-boot-mvebu 37/59] tools: kwbimage: Reject mkimage -F option

Pali Rohár pali at kernel.org
Tue Feb 21 21:19:03 CET 2023


mkimage -F option (re-sign existing FIT image) signaled by fflag is not
supported by kwbimage. So mark its usage as invalid parameter.

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 97be3bed79cb..0c3b40d075e9 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -2440,7 +2440,7 @@ static int kwbimage_check_params(struct image_tool_params *params)
 	}
 
 	return (params->dflag && (params->fflag || params->lflag)) ||
-		(params->fflag && (params->dflag || params->lflag)) ||
+		(params->fflag) ||
 		(params->lflag && (params->dflag || params->fflag)) ||
 		(params->xflag);
 }
-- 
2.20.1



More information about the U-Boot mailing list