From 85a7b27f97713cb917258ac0a276c851a614c5a6 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Mon, 25 Mar 2024 12:40:44 -0700 Subject: [PATCH] random: Rename source files s/rand32/random. Signed-off-by: Flavio Ceolin --- subsys/random/CMakeLists.txt | 10 +++++----- subsys/random/{rand32_ctr_drbg.c => random_ctr_drbg.c} | 0 ...rand32_entropy_device.c => random_entropy_device.c} | 0 subsys/random/{rand32_handlers.c => random_handlers.c} | 0 subsys/random/{rand32_timer.c => random_timer.c} | 0 .../{rand32_xoshiro128.c => random_xoshiro128.c} | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename subsys/random/{rand32_ctr_drbg.c => random_ctr_drbg.c} (100%) rename subsys/random/{rand32_entropy_device.c => random_entropy_device.c} (100%) rename subsys/random/{rand32_handlers.c => random_handlers.c} (100%) rename subsys/random/{rand32_timer.c => random_timer.c} (100%) rename subsys/random/{rand32_xoshiro128.c => random_xoshiro128.c} (100%) diff --git a/subsys/random/CMakeLists.txt b/subsys/random/CMakeLists.txt index cde2431ae2..bdda2f4257 100644 --- a/subsys/random/CMakeLists.txt +++ b/subsys/random/CMakeLists.txt @@ -5,7 +5,7 @@ if (CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR OR CONFIG_XOSHIRO_RANDOM_GENERATOR) zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/random/random.h) zephyr_library() -zephyr_library_sources_ifdef(CONFIG_USERSPACE rand32_handlers.c) +zephyr_library_sources_ifdef(CONFIG_USERSPACE random_handlers.c) endif() if (CONFIG_TIMER_RANDOM_GENERATOR) @@ -15,12 +15,12 @@ if (CONFIG_TIMER_RANDOM_GENERATOR) Use it carefully.") endif() -zephyr_library_sources_ifdef(CONFIG_TIMER_RANDOM_GENERATOR rand32_timer.c) -zephyr_library_sources_ifdef(CONFIG_XOSHIRO_RANDOM_GENERATOR rand32_xoshiro128.c) -zephyr_library_sources_ifdef(CONFIG_CTR_DRBG_CSPRNG_GENERATOR rand32_ctr_drbg.c) +zephyr_library_sources_ifdef(CONFIG_TIMER_RANDOM_GENERATOR random_timer.c) +zephyr_library_sources_ifdef(CONFIG_XOSHIRO_RANDOM_GENERATOR random_xoshiro128.c) +zephyr_library_sources_ifdef(CONFIG_CTR_DRBG_CSPRNG_GENERATOR random_ctr_drbg.c) if (CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR OR CONFIG_HARDWARE_DEVICE_CS_GENERATOR) -zephyr_library_sources(rand32_entropy_device.c) +zephyr_library_sources(random_entropy_device.c) endif() if (CONFIG_CTR_DRBG_CSPRNG_GENERATOR) diff --git a/subsys/random/rand32_ctr_drbg.c b/subsys/random/random_ctr_drbg.c similarity index 100% rename from subsys/random/rand32_ctr_drbg.c rename to subsys/random/random_ctr_drbg.c diff --git a/subsys/random/rand32_entropy_device.c b/subsys/random/random_entropy_device.c similarity index 100% rename from subsys/random/rand32_entropy_device.c rename to subsys/random/random_entropy_device.c diff --git a/subsys/random/rand32_handlers.c b/subsys/random/random_handlers.c similarity index 100% rename from subsys/random/rand32_handlers.c rename to subsys/random/random_handlers.c diff --git a/subsys/random/rand32_timer.c b/subsys/random/random_timer.c similarity index 100% rename from subsys/random/rand32_timer.c rename to subsys/random/random_timer.c diff --git a/subsys/random/rand32_xoshiro128.c b/subsys/random/random_xoshiro128.c similarity index 100% rename from subsys/random/rand32_xoshiro128.c rename to subsys/random/random_xoshiro128.c