]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: Default to adding a crc32 hash with '-f auto'
authorSimon Glass <sjg@chromium.org>
Wed, 27 May 2020 13:24:55 +0000 (07:24 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 2 Jun 2020 21:27:04 +0000 (17:27 -0400)
commit317291167701480da6c235a17b0a7e89dafcff78
treeaa8565288f6350ba5cf07e7d4054751cfb63b788
parent50bb682c5cc52769e7cbd835a00dbcbc75a4f0e7
mkimage: Default to adding a crc32 hash with '-f auto'

This option currently does not add any sort of hash to the images in the
FIT.

Add a hash node requesting a crc32 checksum, which at least provides some
protection.

The crc32 value is easily ignored (e.g. in SPL) if not needed. and takes
up only about 48 bytes per image, including overhead.

Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Denk <wd@denx.de>
tools/fit_image.c