Skip to content

Commit c79991f

Browse files
valeriosettifabiobaltieri
authored andcommitted
Revert "boards: remove ENTROPY_GENERATOR selection if BT"
This reverts commit 9789d4d. Signed-off-by: Valerio Setti <[email protected]>
1 parent a4b9ef6 commit c79991f

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

boards/native/native_sim/Kconfig.defconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,14 @@ config UART_CONSOLE
3232

3333
endif # CONSOLE
3434

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

3645
endif # BOARD_NATIVE_SIM

boards/native/nrf_bsim/Kconfig.defconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP
5656

5757
if BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM
5858

59+
# BT relies on PSA Crypto API to perform crypto operations. On this platform
60+
# this is implemented by Mbed TLS which requires a (possibly true) random
61+
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
62+
# instead of manually adding it to all samples/tests configuration files because
63+
# it looks more compact and easier to maintain.
64+
config ENTROPY_GENERATOR
65+
bool
66+
default y if BT
67+
5968
endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM
6069

6170
# The 15.4 driver Tx encryption is currently not functional with this

boards/nordic/nrf5340_audio_dk/Kconfig.defconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ endif # BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP_NS
5555

5656
if BOARD_NRF5340_AUDIO_DK_NRF5340_CPUAPP
5757

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

6069
config BT_HCI_IPC

boards/nordic/nrf5340dk/Kconfig.defconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ endif # BOARD_NRF5340DK_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE
4545

4646
if BOARD_NRF5340DK_NRF5340_CPUAPP
4747

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

5059
if BOARD_NRF5340DK_NRF5340_CPUAPP_NS

0 commit comments

Comments
 (0)