Skip to content

Commit

Permalink
boards|soc: remove selection of ENTROPY_GENERATOR
Browse files Browse the repository at this point in the history
Now that MbedTLS is capable of automatically enabling
CONFIG_ENTROPY_GENERATOR (when available), we can remove forced
enablements in boards|soc deconfig files.

Signed-off-by: Valerio Setti <[email protected]>
  • Loading branch information
valeriosetti authored and kartben committed Dec 19, 2024
1 parent 39068cc commit bc3baf0
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 60 deletions.
10 changes: 0 additions & 10 deletions boards/native/native_sim/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,4 @@ config UART_CONSOLE

endif # CONSOLE

# BT relies on PSA Crypto API to perform crypto operations. On this platform
# this is implemented by Mbed TLS which requires a (possibly true) random
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
# instead of manually adding it to all samples/tests configuration files because
# it looks more compact and easier to maintain.
config ENTROPY_GENERATOR
bool
default y if BT


endif # BOARD_NATIVE_SIM
13 changes: 0 additions & 13 deletions boards/native/nrf_bsim/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,6 @@ config BT_HCI_IPC

endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP

if BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM

# BT relies on PSA Crypto API to perform crypto operations. On this platform
# this is implemented by Mbed TLS which requires a (possibly true) random
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
# instead of manually adding it to all samples/tests configuration files because
# it looks more compact and easier to maintain.
config ENTROPY_GENERATOR
bool
default y if BT

endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM

# The 15.4 driver Tx encryption is currently not functional with this
# simulated board => we disable it by default. With this Openthread will normally
# default to encrypt packets on its own.
Expand Down
13 changes: 0 additions & 13 deletions boards/nordic/nrf5340_audio_dk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,6 @@ config FLASH_LOAD_SIZE

endif # BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP_NS

if BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP

# BT relies on PSA Crypto API to perform crypto operations. On this platform
# this is implemented by Mbed TLS which requires a (possibly true) random
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
# instead of manually adding it to all samples/tests configuration files because
# it looks more compact and easier to maintain.
config ENTROPY_GENERATOR
bool
default y if BT

endif # BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP

config BT_HCI_IPC
default y if BT

Expand Down
13 changes: 0 additions & 13 deletions boards/nordic/nrf5340dk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@ config SRAM_SIZE

endif # BOARD_NRF5340DK_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE

if BOARD_NRF5340DK_NRF5340_CPUAPP

# BT relies on PSA Crypto API to perform crypto operations. On this platform
# this is implemented by Mbed TLS which requires a (possibly true) random
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
# instead of manually adding it to all samples/tests configuration files because
# it looks more compact and easier to maintain.
config ENTROPY_GENERATOR
bool
default y if BT

endif # BOARD_NRF5340DK_NRF5340_CPUAPP

if BOARD_NRF5340DK_NRF5340_CPUAPP_NS

config FLASH_LOAD_OFFSET
Expand Down
2 changes: 0 additions & 2 deletions boards/olimex/stm32_p405/olimex_stm32_p405_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ CONFIG_UART_CONSOLE=y

# enable GPIO
CONFIG_GPIO=y

CONFIG_ENTROPY_GENERATOR=y
3 changes: 0 additions & 3 deletions soc/nxp/imxrt/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ choice SEGGER_SYSVIEW_SECTION
depends on SEGGER_SYSTEMVIEW
endchoice

config MBEDTLS
default y if CSPRNG_AVAILABLE

if MBEDTLS
#
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
Expand Down
3 changes: 0 additions & 3 deletions soc/nxp/imxrt/imxrt5xx/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ config NUM_IRQS
config ZTEST_NO_YIELD
default y if (PM && ZTEST)

config MBEDTLS
default y if CSPRNG_AVAILABLE

if MBEDTLS
#
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
Expand Down
3 changes: 0 additions & 3 deletions soc/nxp/imxrt/imxrt6xx/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ config NUM_IRQS
config ZTEST_NO_YIELD
default y if (ZTEST && PM)

config MBEDTLS
default y if CSPRNG_AVAILABLE

if MBEDTLS
#
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
Expand Down

0 comments on commit bc3baf0

Please sign in to comment.