]> git.baikalelectronics.ru Git - uboot.git/commit
hash: Use Kconfig to enable hashing in host tools and SPL
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:18 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commit9b9f4a20f9008603fd73f3260754b8b01d6dcafe
tree3abd36e0fbbe9d61b897287395f3e8edc583150a
parent0fc27b68584330e410967ea5aa915fa21cdda3b1
hash: Use Kconfig to enable hashing in host tools and SPL

At present when building host tools, we force CONFIG_SHAxxx to be enabled
regardless of the board Kconfig setting. This is done in the image.h
header file.

For SPL we currently just assume the algorithm is desired if U-Boot proper
enables it.

Clean this up by adding new Kconfig options to enable hashing on the host,
relying on CONFIG_IS_ENABLED() to deal with the different builds.

Add new SPL Kconfigs for hardware-accelerated hashing, to maintain the
current settings.

This allows us to drop the image.h code and the I_WANT_MD5 hack.

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