tools: kwbimage: Fix mkimage/dumpimage -l argument
authorPali Rohár <pali@kernel.org>
Wed, 12 Jan 2022 17:20:54 +0000 (18:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 10:39:16 +0000 (11:39 +0100)
commit32860b00bf2cb441c5b9b396d41c84aac340d7ad
tree8c08387209c219db561bae32e585871b0b85b865
parent1972c7e30859b48326e41e56a7fddfac1a6f5739
tools: kwbimage: Fix mkimage/dumpimage -l argument

Do not check for kwbimage configuration file when just showing information
about existing kwbimage file.

The check for kwbimage configuration file is required only when creating
kwbimage, not when showing information about image or when extracting data
from image.

With this change, it is possible to call mkimage -l and dumpimage -l also
for existing kwbimage file.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c