Skip to content

Commit 8cd09ae

Browse files
valeriosetticvinayak
authored andcommitted
boards: native_sim: enable ENTROPY_GENERATOR if BT
On the native_sim platform, BT relies on Mbed TLS to implement PSA Crypto API. This library requires a valid entropy source to initialize properly. Therefore we enable ENTROPY_GENERATOR at board level instead of editing _all_ the samples/tests configuration files to make a more compact change. Signed-off-by: Valerio Setti <[email protected]>
1 parent 29e9d7f commit 8cd09ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-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

0 commit comments

Comments
 (0)