tools: kwbimage: Extract main data image without -p arg for dumpimage
authorPali Rohár <pali@kernel.org>
Wed, 12 Jan 2022 17:20:53 +0000 (18:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 10:39:16 +0000 (11:39 +0100)
commit1972c7e30859b48326e41e56a7fddfac1a6f5739
treea4b463e4c0519d0a60ad3f6501355d05feab715e
parent44691034e18d3b242f911abeb20566d418995710
tools: kwbimage: Extract main data image without -p arg for dumpimage

When there is no -p argument for dumpimage tool specified, extract the main
data image from kwbimage file. This makes dumpimage consistent with other
image formats.

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