diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 196624f4405..aaee1a116b8 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -34,5 +34,5 @@ add_subdirectory_ifdef(CONFIG_AIO_COMPARATOR aio) add_subdirectory_ifdef(CONFIG_BT bluetooth) add_subdirectory_ifdef(CONFIG_NETWORKING net) add_subdirectory_ifdef(CONFIG_NET_L2_ETHERNET ethernet) -add_subdirectory_ifdef(CONFIG_ENTROPY_GENERATOR entropy) +add_subdirectory_ifdef(CONFIG_ENTROPY_HAS_DRIVER entropy) add_subdirectory_ifdef(CONFIG_SYS_CLOCK_EXISTS timer) diff --git a/drivers/entropy/CMakeLists.txt b/drivers/entropy/CMakeLists.txt index 9224c346da4..cba00551b14 100644 --- a/drivers/entropy/CMakeLists.txt +++ b/drivers/entropy/CMakeLists.txt @@ -1,4 +1,4 @@ -zephyr_library_ifdef(CONFIG_ENTROPY_HAS_DRIVER) +zephyr_library() zephyr_library_sources_ifdef(CONFIG_ENTROPY_ESP32_RNG entropy_esp32.c) zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNGA entropy_mcux_rnga.c)