diff --git a/drivers/entropy/CMakeLists.txt b/drivers/entropy/CMakeLists.txt index c59eba033b0..7d0d62026ce 100644 --- a/drivers/entropy/CMakeLists.txt +++ b/drivers/entropy/CMakeLists.txt @@ -4,20 +4,6 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/entropy.h) zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ENTROPY_TELINK_B91_TRNG entropy_b91_trng.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_CC13XX_CC26XX_RNG entropy_cc13xx_cc26xx.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_ESP32_RNG entropy_esp32.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNG entropy_mcux_rng.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNGA entropy_mcux_rnga.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_TRNG entropy_mcux_trng.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_CAAM entropy_mcux_caam.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_NXP_ELE_TRNG entropy_nxp_ele.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF5_RNG entropy_nrf5.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF_CRACEN_CTR_DRBG entropy_nrf_cracen.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_SAM_RNG entropy_sam.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_SMARTBOND_TRNG entropy_smartbond.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_STM32_RNG entropy_stm32.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_LITEX_RNG entropy_litex.c) if(CONFIG_FAKE_ENTROPY_NATIVE_SIM) zephyr_library_sources(fake_entropy_native_sim.c) if(CONFIG_NATIVE_LIBRARY) @@ -27,18 +13,35 @@ if(CONFIG_FAKE_ENTROPY_NATIVE_SIM) endif() endif() -zephyr_library_sources_ifdef(CONFIG_USERSPACE entropy_handlers.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_RV32M1_TRNG entropy_rv32m1_trng.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_TRNG entropy_gecko_trng.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_NEORV32_TRNG entropy_neorv32_trng.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_BT_HCI entropy_bt_hci.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_SE entropy_gecko_se.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_SILABS_SIWX91X entropy_silabs_siwx91x.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_PSA_CRYPTO_RNG entropy_psa_crypto.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_NPCX_DRBG entropy_npcx_drbg.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAX32_TRNG entropy_max32.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAXQ10XX_RNG entropy_maxq10xx.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_RENESAS_RA entropy_renesas_ra.c) -zephyr_library_sources_ifdef(CONFIG_ENTROPY_SY1XX_TRNG entropy_sy1xx_trng.c) +zephyr_library_sources_ifdef(CONFIG_USERSPACE entropy_handlers.c) + +# zephyr-keep-sorted-start +zephyr_library_sources_ifdef(CONFIG_ENTROPY_BT_HCI entropy_bt_hci.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_CC13XX_CC26XX_RNG entropy_cc13xx_cc26xx.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_ESP32_RNG entropy_esp32.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_SE entropy_gecko_se.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_TRNG entropy_gecko_trng.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_LITEX_RNG entropy_litex.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAX32_TRNG entropy_max32.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAXQ10XX_RNG entropy_maxq10xx.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_CAAM entropy_mcux_caam.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNG entropy_mcux_rng.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNGA entropy_mcux_rnga.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_TRNG entropy_mcux_trng.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_NEORV32_TRNG entropy_neorv32_trng.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_NPCX_DRBG entropy_npcx_drbg.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF5_RNG entropy_nrf5.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF_CRACEN_CTR_DRBG entropy_nrf_cracen.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_NXP_ELE_TRNG entropy_nxp_ele.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_PSA_CRYPTO_RNG entropy_psa_crypto.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_RENESAS_RA entropy_renesas_ra.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_RV32M1_TRNG entropy_rv32m1_trng.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_SAM_RNG entropy_sam.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_SILABS_SIWX91X entropy_silabs_siwx91x.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_SMARTBOND_TRNG entropy_smartbond.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_STM32_RNG entropy_stm32.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_SY1XX_TRNG entropy_sy1xx_trng.c) +zephyr_library_sources_ifdef(CONFIG_ENTROPY_TELINK_B91_TRNG entropy_b91_trng.c) +# zephyr-keep-sorted-stop zephyr_library_link_libraries_ifdef(CONFIG_BUILD_WITH_TFM tfm_api) diff --git a/drivers/entropy/Kconfig b/drivers/entropy/Kconfig index 3664ce0f184..123b3b07647 100644 --- a/drivers/entropy/Kconfig +++ b/drivers/entropy/Kconfig @@ -20,29 +20,31 @@ config ENTROPY_INIT_PRIORITY help Entropy driver device initialization priority. +# zephyr-keep-sorted-start source "drivers/entropy/Kconfig.b91" -source "drivers/entropy/Kconfig.cc13xx_cc26xx" -source "drivers/entropy/Kconfig.mcux" -source "drivers/entropy/Kconfig.nxp" -source "drivers/entropy/Kconfig.stm32" -source "drivers/entropy/Kconfig.esp32" -source "drivers/entropy/Kconfig.nrf5" -source "drivers/entropy/Kconfig.nrf_cracen" -source "drivers/entropy/Kconfig.sam" -source "drivers/entropy/Kconfig.smartbond" -source "drivers/entropy/Kconfig.native_sim" -source "drivers/entropy/Kconfig.rv32m1" -source "drivers/entropy/Kconfig.litex" -source "drivers/entropy/Kconfig.gecko" -source "drivers/entropy/Kconfig.siwx91x" -source "drivers/entropy/Kconfig.neorv32" source "drivers/entropy/Kconfig.bt_hci" -source "drivers/entropy/Kconfig.psa_crypto" -source "drivers/entropy/Kconfig.npcx" +source "drivers/entropy/Kconfig.cc13xx_cc26xx" +source "drivers/entropy/Kconfig.esp32" +source "drivers/entropy/Kconfig.gecko" +source "drivers/entropy/Kconfig.litex" source "drivers/entropy/Kconfig.max32" source "drivers/entropy/Kconfig.maxq10xx" +source "drivers/entropy/Kconfig.mcux" +source "drivers/entropy/Kconfig.native_sim" +source "drivers/entropy/Kconfig.neorv32" +source "drivers/entropy/Kconfig.npcx" +source "drivers/entropy/Kconfig.nrf5" +source "drivers/entropy/Kconfig.nrf_cracen" +source "drivers/entropy/Kconfig.nxp" +source "drivers/entropy/Kconfig.psa_crypto" source "drivers/entropy/Kconfig.renesas_ra" +source "drivers/entropy/Kconfig.rv32m1" +source "drivers/entropy/Kconfig.sam" +source "drivers/entropy/Kconfig.siwx91x" +source "drivers/entropy/Kconfig.smartbond" +source "drivers/entropy/Kconfig.stm32" source "drivers/entropy/Kconfig.sy1xx" +# zephyr-keep-sorted-stop config ENTROPY_HAS_DRIVER bool