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

Stefan Roese sr at denx.de
Wed Feb 16 10:48:40 CET 2022


On 2/15/22 19:59, Pali Rohár wrote:
> 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>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   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";
>   

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list