]> git.baikalelectronics.ru Git - uboot.git/commit
image: Add support for placing crypto_algo in linker lists
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Wed, 14 Jul 2021 22:05:39 +0000 (17:05 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 16 Jul 2021 16:58:56 +0000 (12:58 -0400)
commitcf4b5545beadf2f970ee92b12fd664bacbba9bd4
tree402e82c22bfd77d66930daef21ec465c513d0734
parent35ef02598e356f0c5def82cad6cb159e0735d383
image: Add support for placing crypto_algo in linker lists

The purpose of this change is to enable crypto algorithms to be placed
in linker lists, rather than be declared as a static array. The goal
is to remove the crypto_algos array in a subsequent patch.

Create a new linker list named "cryptos", and search it when
image_get_crypto_algo() is invoked.

NOTE that adding support for manual relocation of crypto_algos within
linker lists is beyond the scope of this patch.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image-sig.c
include/image.h