From: Pali Rohár Date: Sat, 21 Jan 2023 12:00:21 +0000 (+0100) Subject: tools: kwbimage: Reject mkimage -F option X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=0201244c3c8b6bdaa1e3ff47ab51ba3626d9c060;p=u-boot.git tools: kwbimage: Reject mkimage -F option 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 --- diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 97be3bed79..0c3b40d075 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); }