From daab04857f9dc5fd89a4e3e46ac55e951eefcbee Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 4 Dec 2024 11:08:19 +0100 Subject: [PATCH] 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 --- drivers/entropy/Kconfig.nrf5 | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/entropy/Kconfig.nrf5 b/drivers/entropy/Kconfig.nrf5 index 37f6b0e8d49..91f0243c98e 100644 --- a/drivers/entropy/Kconfig.nrf5 +++ b/drivers/entropy/Kconfig.nrf5 @@ -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