Skip to content

Commit 183420a

Browse files
valeriosetticvinayak
authored andcommitted
boards: qemu_cortex_m3: enable test random generator for BT
BT uses PSA Crypto API to perform crypto operations and, on this platform, these APIs are implemented through Mbed TLS. In order to properly initialize this library, a random number generator is required. Since this platform does not have a true random number generator, we enable the test one. This holds only when BT is enabled, of course. Signed-off-by: Valerio Setti <[email protected]>
1 parent 69395c1 commit 183420a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

boards/qemu/cortex_m3/Kconfig.defconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,13 @@ choice NULL_POINTER_EXCEPTION_DETECTION
1212
default NULL_POINTER_EXCEPTION_DETECTION_NONE
1313
endchoice
1414

15+
# BT relies on PSA Crypto API to perform crypto operations and, on this platform,
16+
# these APIs are provided thougth Mbed TLS. Unfortunately this platform is not
17+
# provided with a true random number generator which is required to properly
18+
# initialize the PSA Crypto core, so we need to enable the fake TEST_RANDOM_GENERATOR.
19+
config TEST_RANDOM_GENERATOR
20+
bool
21+
depends on BT
22+
default y
23+
1524
endif # BOARD_QEMU_CORTEX_M3

0 commit comments

Comments
 (0)