From 8c812900e1f259fa144b81e80deeabdd51aaa0ba Mon Sep 17 00:00:00 2001 From: Adithya Baglody Date: Thu, 24 May 2018 10:53:35 +0530 Subject: [PATCH] drivers: entropy: Remove usage of zephyr_library_ifdef Phasing out the usage of this cmake macro from the drivers/entropy folder. Signed-off-by: Adithya Baglody --- drivers/CMakeLists.txt | 2 +- drivers/entropy/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)