tools: kwbimage: Do not show mkimage error message in dumpimage
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>
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user