mbedtls: refactor mbedtls build for XPL
authorRaymond Mao <raymond.mao@linaro.org>
Mon, 3 Feb 2025 22:08:14 +0000 (14:08 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 27 Feb 2025 18:11:02 +0000 (12:11 -0600)
commitac0b1e82ff8540bd106824ddcc8919f85469c5f8
tree011ff647a80fae32df757a1e6c8f167eb9eb1f77
parentf13cd90762247661f9bd508303d830055e135ec0
mbedtls: refactor mbedtls build for XPL

Refactor the entire kconfig page for mbedtls, adapt mbedtls makefile
and default config file using 'XPL_', in order to have independent
mbedtls kconfig options in U-Boot Proper, SPL, TPL and VPL.
User can choose legacy or mbedtls libraries for them independently.

Set mbedtls native hashing libraries as default when MBEDTLS_LIB,
SPL_MBEDTLS_LIB, TPL_MBEDTLS_LIB or VPL_MBEDTLS_LIB is selected.

If users prefer using U-Boot legacy hashing libraries, please select
MBEDTLS_LIB_HASHING_ALT, SPL_MBEDTLS_LIB_HASHING_ALT,
TPL_MBEDTLS_LIB_HASHING_ALT or VPL_MBEDTLS_LIB_HASHING_ALT for U-Boot
Proper, SPL, TPL and VPL respectively.

Moreover, rename a few kconfig options and update their descriptions to
improve the consistency of terminology.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Makefile
lib/mbedtls/Kconfig
lib/mbedtls/Makefile
lib/mbedtls/mbedtls_def_config.h