]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: kwbimage: Do not show mkimage error message in dumpimage
authorPali Rohár <pali@kernel.org>
Thu, 17 Feb 2022 09:43:37 +0000 (10:43 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
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@kernel.org>
Tested-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c

index 5a717e5354bf6f65b1a894e7b61c61c6713735e5..73788d8d892fda3abbcf35834eee9067fbbebe75 100644 (file)
@@ -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";