drivers: entropy: nrf5: add "depends on MULTITHREADING"

entropy_nrf5 modules uses k_sem_xxx() functions in several
places, but these functions are only functional when
CONFIG_MULTITHREADING is set, otherwise they just fallback to
the empty weak implementation provided in
zephyr/lib/libc/armstdc/src/threading_weak.c.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2024-12-04 11:08:19 +01:00 committed by Benjamin Cabé
parent 62581570a7
commit daab04857f

View File

@ -16,6 +16,7 @@ menuconfig ENTROPY_NRF5_RNG
default y
depends on !ENTROPY_NRF_FORCE_ALT
depends on DT_HAS_NORDIC_NRF_RNG_ENABLED
depends on MULTITHREADING # k_sem_xxx() functions used in the driver
select ENTROPY_HAS_DRIVER
help
This option enables the RNG peripheral, which is a random number