Bluetooth: make MBEDTLS_AES_ROM_TABLES implied not selected

MBEDTLS_AES_ROM_TABLES let Mbed TLS use precomputed AES tables instead
of generating them at runtime and placing in RAM. It clearly helps
reducing the RAM footprint, but at the same time it increases the ROM
one. In order to let the final user decide which kind of optimization
they prefer, we change the "select" statement with "imply".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2025-01-13 17:51:27 +01:00 committed by Benjamin Cabé
parent 6463d15a66
commit aaf463ca7b
3 changed files with 3 additions and 3 deletions

View file

@ -7,6 +7,6 @@ config BT_CRYPTO
select MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM
select PSA_WANT_KEY_TYPE_AES
select PSA_WANT_ALG_CMAC
select MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
imply MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
help
This option enables the Bluetooth Cryptographic Toolbox.

View file

@ -118,7 +118,7 @@ config BT_GATT_CACHING
depends on PSA_CRYPTO_CLIENT
select PSA_WANT_KEY_TYPE_AES
select PSA_WANT_ALG_CMAC
select MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
imply MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
help
This option enables support for GATT Caching. When enabled the stack
will register Client Supported Features and Database Hash

View file

@ -1488,7 +1488,7 @@ config BT_MESH_USES_MBEDTLS_PSA
select PSA_WANT_ALG_CMAC
select PSA_WANT_ALG_ECB_NO_PADDING
select PSA_WANT_KEY_TYPE_AES
select MBEDTLS_AES_ROM_TABLES
imply MBEDTLS_AES_ROM_TABLES
select PSA_WANT_ALG_CCM
select PSA_WANT_KEY_TYPE_HMAC
select PSA_WANT_ALG_HMAC