]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwbimage: Add support for creating an image with no data
authorPali Rohár <pali@kernel.org>
Sat, 21 Jan 2023 19:11:28 +0000 (20:11 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commit2d7d0f58606cbcea366ae28e4e8cbc7da2b38ce4
tree72586b25d1c743a0bf37838b27411b1e9dc072d6
parent780e7265796bf7badd03d77d081b2a0766c575b7
tools: kwbimage: Add support for creating an image with no data

This change add support for mkimage's -s option to kwbimage format. It will
create an kwbimage with empty data part of image (data part would contain
only required 32-bit checksum). mkimage's -s option is indicated by skipcpy
flag and it is basically in conflict with mkimage's -d (datafile) option.

"Empty" kwbimage with no data can still contain headers. For example it can
contain binary executable header which is copied by BootROM into L2SRAM.
This is useful for example for small images which can do not require DDR
RAM and can be run in L2SRAM (which do not require any initialization).

Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c