]> git.dujemihanovic.xyz Git - u-boot.git/commit
image-fit: Fix FIT_CIPHER linking
authorJoel Stanley <joel@jms.id.au>
Tue, 8 Dec 2020 04:12:14 +0000 (14:42 +1030)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jan 2021 21:17:52 +0000 (16:17 -0500)
commit93af80f3e8fb6fcbfb851a6dc384999a61ddaedb
treef1e481358764352b0d2a81b3489f0ccbf2f3c829
parent5d40d5f12edac9ffccce955509f4cb4a7aa763a2
image-fit: Fix FIT_CIPHER linking

When CONFIG_FIT_CIPHER=y and CONFIG_FIT_SIGNATURE=n is there is no
implementation of image_get_host_blob for mkimage/dumpimage:

 /usr/bin/ld: tools/common/image-cipher.o: in function `fit_image_decrypt_data':
 image-cipher.c:(.text+0x9a): undefined reference to `image_get_host_blob'

Move the implementation to a common file so it can be shaed between
image-cipher.c and image-fit-sig.c.

Signed-off-by: Joel Stanley <joel@jms.id.au>
common/image-fit-sig.c
common/image-fit.c