tests/samples: remove ENTROPY_GENERATOR from BT related tests/samples

Since now Mbed TLS automatically selects ENTROPY_GENERATOR (or the
test generator, depending on the platform) we can remove this dependency
from all BT related tests and samples.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2024-12-17 06:17:39 +01:00 committed by Benjamin Cabé
commit 3fa522c720
17 changed files with 0 additions and 47 deletions

View file

@ -122,7 +122,6 @@ config BT_SILABS_EFR32
depends on ZEPHYR_HAL_SILABS_MODULE_BLOBS depends on ZEPHYR_HAL_SILABS_MODULE_BLOBS
depends on !PM || SOC_GECKO_PM_BACKEND_PMGR depends on !PM || SOC_GECKO_PM_BACKEND_PMGR
select SOC_GECKO_USE_RAIL select SOC_GECKO_USE_RAIL
select ENTROPY_GENERATOR
select MBEDTLS select MBEDTLS
select MBEDTLS_PSA_CRYPTO_C select MBEDTLS_PSA_CRYPTO_C
select MBEDTLS_ENTROPY_C select MBEDTLS_ENTROPY_C
@ -155,7 +154,6 @@ config BT_ESP32
default y default y
depends on DT_HAS_ESPRESSIF_ESP32_BT_HCI_ENABLED depends on DT_HAS_ESPRESSIF_ESP32_BT_HCI_ENABLED
depends on ZEPHYR_HAL_ESPRESSIF_MODULE_BLOBS depends on ZEPHYR_HAL_ESPRESSIF_MODULE_BLOBS
select ENTROPY_GENERATOR
help help
Espressif HCI bluetooth interface Espressif HCI bluetooth interface

View file

@ -1,13 +0,0 @@
# We need a random number generator to properly initialize the PSA Crypto core
# implemented by Mbed TLS. The proper thing to do in this platform would be
# to enable ENTROPY_GENERATOR, but this is not supported right now for the
# following reasons:
# - at device-tree level (nrf54l15_cpuapp.dtsi) the only RNG source available
# is "zephyr,psa-crypto-rng" which means that TF-M is required in order for
# this to work. Unfortunately TF-M is still not supported for this platform, yet.
# - cpuapp does not have a direct access to the RNG without TF-M, so there's
# no other way it can make use of it as of now.
#
# Since both options are not viable, we fall back to the test random generator
# until further support is added to the platform.
CONFIG_TEST_RANDOM_GENERATOR=y

View file

@ -1,2 +1 @@
CONFIG_PM=y CONFIG_PM=y
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1,2 +1 @@
CONFIG_PM=y CONFIG_PM=y
CONFIG_ENTROPY_GENERATOR=y

View file

@ -15,5 +15,3 @@ CONFIG_MAIN_STACK_SIZE=2048
CONFIG_LOG=y CONFIG_LOG=y
CONFIG_CBPRINTF_FP_SUPPORT=y CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_LOG_BUFFER_SIZE=2048 CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1 +0,0 @@
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1,4 +1,3 @@
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_BT=y CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y CONFIG_BT_PERIPHERAL=y

View file

@ -1,13 +0,0 @@
# We need a random number generator to properly initialize the PSA Crypto core
# implemented by Mbed TLS. The proper thing to do in this platform would be
# to enable ENTROPY_GENERATOR, but this is not supported right now for the
# following reasons:
# - at device-tree level (nrf54l15_cpuapp.dtsi) the only RNG source available
# is "zephyr,psa-crypto-rng" which means that TF-M is required in order for
# this to work. Unfortunately TF-M is still not supported for this platform, yet.
# - cpuapp does not have a direct access to the RNG without TF-M, so there's
# no other way it can make use of it as of now.
#
# Since both options are not viable, we fall back to the test random generator
# until further support is added to the platform.
CONFIG_TEST_RANDOM_GENERATOR=y

View file

@ -1,2 +1 @@
CONFIG_PM=y CONFIG_PM=y
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1 +0,0 @@
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1,2 +1 @@
CONFIG_PM=y CONFIG_PM=y
CONFIG_ENTROPY_GENERATOR=y

View file

@ -4,5 +4,4 @@ CONFIG_BT_DEVICE_NAME="P2PSRV1"
CONFIG_BT_GATT_CLIENT=y CONFIG_BT_GATT_CLIENT=y
CONFIG_LOG=y CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=2048 CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_ENTROPY_GENERATOR=y
CONFIG_GPIO=y CONFIG_GPIO=y

View file

@ -248,6 +248,3 @@ CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=4
# Match the number of unicast streams supported in BAP # Match the number of unicast streams supported in BAP
CONFIG_BT_CTLR_ISOAL_SOURCES=2 CONFIG_BT_CTLR_ISOAL_SOURCES=2
CONFIG_BT_CTLR_ISOAL_SINKS=2 CONFIG_BT_CTLR_ISOAL_SINKS=2
# Enable entropy source for Mbed TLS's PSA Crypto core
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1,5 +1,4 @@
CONFIG_BT_MAX_CONN=16 CONFIG_BT_MAX_CONN=16
CONFIG_ENTROPY_GENERATOR=y
# debug options # debug options
# CONFIG_UART_CONSOLE=y # CONFIG_UART_CONSOLE=y

View file

@ -1,5 +1,4 @@
CONFIG_BT_MAX_CONN=16 CONFIG_BT_MAX_CONN=16
CONFIG_ENTROPY_GENERATOR=y
# debug options # debug options
# CONFIG_UART_CONSOLE=y # CONFIG_UART_CONSOLE=y

View file

@ -1,5 +1,3 @@
CONFIG_MBEDTLS=y CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_PSA_CRYPTO_C=y CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_PSA_CRYPTO_ENABLE_ALL=y CONFIG_PSA_CRYPTO_ENABLE_ALL=y
CONFIG_ENTROPY_GENERATOR=y

View file

@ -1,5 +1,3 @@
CONFIG_MBEDTLS=y CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_PSA_CRYPTO_C=y CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_PSA_CRYPTO_ENABLE_ALL=y CONFIG_PSA_CRYPTO_ENABLE_ALL=y
CONFIG_ENTROPY_GENERATOR=y