Skip to content

Commit 10f614d

Browse files
soburikartben
authored andcommitted
drivers: entropy: Add sort directives
Add sort directives to CMakeLists.txt and Kconfig Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent f726cb5 commit 10f614d

File tree

2 files changed

+47
-42
lines changed

2 files changed

+47
-42
lines changed

drivers/entropy/CMakeLists.txt

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/entropy.h)
44

55
zephyr_library()
66

7-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_TELINK_B91_TRNG entropy_b91_trng.c)
8-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_CC13XX_CC26XX_RNG entropy_cc13xx_cc26xx.c)
9-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_ESP32_RNG entropy_esp32.c)
10-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNG entropy_mcux_rng.c)
11-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNGA entropy_mcux_rnga.c)
12-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_TRNG entropy_mcux_trng.c)
13-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_CAAM entropy_mcux_caam.c)
14-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NXP_ELE_TRNG entropy_nxp_ele.c)
15-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF5_RNG entropy_nrf5.c)
16-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF_CRACEN_CTR_DRBG entropy_nrf_cracen.c)
17-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SAM_RNG entropy_sam.c)
18-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SMARTBOND_TRNG entropy_smartbond.c)
19-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_STM32_RNG entropy_stm32.c)
20-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_LITEX_RNG entropy_litex.c)
217
if(CONFIG_FAKE_ENTROPY_NATIVE_SIM)
228
zephyr_library_sources(fake_entropy_native_sim.c)
239
if(CONFIG_NATIVE_LIBRARY)
@@ -27,18 +13,35 @@ if(CONFIG_FAKE_ENTROPY_NATIVE_SIM)
2713
endif()
2814
endif()
2915

30-
zephyr_library_sources_ifdef(CONFIG_USERSPACE entropy_handlers.c)
31-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RV32M1_TRNG entropy_rv32m1_trng.c)
32-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_TRNG entropy_gecko_trng.c)
33-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NEORV32_TRNG entropy_neorv32_trng.c)
34-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_BT_HCI entropy_bt_hci.c)
35-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_SE entropy_gecko_se.c)
36-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SILABS_SIWX91X entropy_silabs_siwx91x.c)
37-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_PSA_CRYPTO_RNG entropy_psa_crypto.c)
38-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NPCX_DRBG entropy_npcx_drbg.c)
39-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAX32_TRNG entropy_max32.c)
40-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAXQ10XX_RNG entropy_maxq10xx.c)
41-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RENESAS_RA entropy_renesas_ra.c)
42-
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SY1XX_TRNG entropy_sy1xx_trng.c)
16+
zephyr_library_sources_ifdef(CONFIG_USERSPACE entropy_handlers.c)
17+
18+
# zephyr-keep-sorted-start
19+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_BT_HCI entropy_bt_hci.c)
20+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_CC13XX_CC26XX_RNG entropy_cc13xx_cc26xx.c)
21+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_ESP32_RNG entropy_esp32.c)
22+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_SE entropy_gecko_se.c)
23+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_TRNG entropy_gecko_trng.c)
24+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_LITEX_RNG entropy_litex.c)
25+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAX32_TRNG entropy_max32.c)
26+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAXQ10XX_RNG entropy_maxq10xx.c)
27+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_CAAM entropy_mcux_caam.c)
28+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNG entropy_mcux_rng.c)
29+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNGA entropy_mcux_rnga.c)
30+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_TRNG entropy_mcux_trng.c)
31+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NEORV32_TRNG entropy_neorv32_trng.c)
32+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NPCX_DRBG entropy_npcx_drbg.c)
33+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF5_RNG entropy_nrf5.c)
34+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF_CRACEN_CTR_DRBG entropy_nrf_cracen.c)
35+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NXP_ELE_TRNG entropy_nxp_ele.c)
36+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_PSA_CRYPTO_RNG entropy_psa_crypto.c)
37+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RENESAS_RA entropy_renesas_ra.c)
38+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RV32M1_TRNG entropy_rv32m1_trng.c)
39+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SAM_RNG entropy_sam.c)
40+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SILABS_SIWX91X entropy_silabs_siwx91x.c)
41+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SMARTBOND_TRNG entropy_smartbond.c)
42+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_STM32_RNG entropy_stm32.c)
43+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SY1XX_TRNG entropy_sy1xx_trng.c)
44+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_TELINK_B91_TRNG entropy_b91_trng.c)
45+
# zephyr-keep-sorted-stop
4346

4447
zephyr_library_link_libraries_ifdef(CONFIG_BUILD_WITH_TFM tfm_api)

drivers/entropy/Kconfig

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,31 @@ config ENTROPY_INIT_PRIORITY
2020
help
2121
Entropy driver device initialization priority.
2222

23+
# zephyr-keep-sorted-start
2324
source "drivers/entropy/Kconfig.b91"
25+
source "drivers/entropy/Kconfig.bt_hci"
2426
source "drivers/entropy/Kconfig.cc13xx_cc26xx"
25-
source "drivers/entropy/Kconfig.mcux"
26-
source "drivers/entropy/Kconfig.nxp"
27-
source "drivers/entropy/Kconfig.stm32"
2827
source "drivers/entropy/Kconfig.esp32"
29-
source "drivers/entropy/Kconfig.nrf5"
30-
source "drivers/entropy/Kconfig.nrf_cracen"
31-
source "drivers/entropy/Kconfig.sam"
32-
source "drivers/entropy/Kconfig.smartbond"
33-
source "drivers/entropy/Kconfig.native_sim"
34-
source "drivers/entropy/Kconfig.rv32m1"
35-
source "drivers/entropy/Kconfig.litex"
3628
source "drivers/entropy/Kconfig.gecko"
37-
source "drivers/entropy/Kconfig.siwx91x"
38-
source "drivers/entropy/Kconfig.neorv32"
39-
source "drivers/entropy/Kconfig.bt_hci"
40-
source "drivers/entropy/Kconfig.psa_crypto"
41-
source "drivers/entropy/Kconfig.npcx"
29+
source "drivers/entropy/Kconfig.litex"
4230
source "drivers/entropy/Kconfig.max32"
4331
source "drivers/entropy/Kconfig.maxq10xx"
32+
source "drivers/entropy/Kconfig.mcux"
33+
source "drivers/entropy/Kconfig.native_sim"
34+
source "drivers/entropy/Kconfig.neorv32"
35+
source "drivers/entropy/Kconfig.npcx"
36+
source "drivers/entropy/Kconfig.nrf5"
37+
source "drivers/entropy/Kconfig.nrf_cracen"
38+
source "drivers/entropy/Kconfig.nxp"
39+
source "drivers/entropy/Kconfig.psa_crypto"
4440
source "drivers/entropy/Kconfig.renesas_ra"
41+
source "drivers/entropy/Kconfig.rv32m1"
42+
source "drivers/entropy/Kconfig.sam"
43+
source "drivers/entropy/Kconfig.siwx91x"
44+
source "drivers/entropy/Kconfig.smartbond"
45+
source "drivers/entropy/Kconfig.stm32"
4546
source "drivers/entropy/Kconfig.sy1xx"
47+
# zephyr-keep-sorted-stop
4648

4749
config ENTROPY_HAS_DRIVER
4850
bool

0 commit comments

Comments
 (0)