Message ID | 20220215185925.16060-5-pali@kernel.org |
---|---|
State | Superseded |
Delegated to: | Stefan Roese |
Headers | show |
Series | tools: kwbimage: Support for parsing extended v0 format | expand |
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@kernel.org> Reviewed-by: Stefan Roese <sr@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
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";
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> --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)