Skip to content

Commit

Permalink
[nrf noup] bluetooth: Kconfig: Enable MBEDTLS_AES_ROM_TABLES with imply
Browse files Browse the repository at this point in the history
... not select, so that it is still possible to have this option not
enabled when its dependencies are not fulfilled.
Also remove dependency on PSA_CRYPTO_CLIENT in BT_GATT_CACHING to avoid
dependency loop and add missing enabling of PSA_WANT_ALG_ECB_NO_PADDING
in BT_CRYPTO.

These changes are introduced temporarily as a noup commit to unblock
building of a lot of samples and tests in CI. This commit is expected
to be replaced with a proper solution posted upstream.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl committed Jan 14, 2025
1 parent a58dabf commit 9542b95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion subsys/bluetooth/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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
select PSA_WANT_ALG_ECB_NO_PADDING
imply MBEDTLS_AES_ROM_TABLES if MBEDTLS_PSA_CRYPTO_C
help
This option enables the Bluetooth Cryptographic Toolbox.
3 changes: 1 addition & 2 deletions subsys/bluetooth/host/Kconfig.gatt
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ config BT_GATT_CACHING
bool "GATT Caching support"
default y
depends on BT_GATT_SERVICE_CHANGED
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
Expand Down

0 comments on commit 9542b95

Please sign in to comment.