From 24666e694697bdd2680cd7238b8d0b6e95bf4afb Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 2 Nov 2018 07:42:40 -0400 Subject: [PATCH] stats: move from misc to subsys/stats Create a new subsystem for statistics and move it from misc/ Signed-off-by: Anas Nashif --- misc/CMakeLists.txt | 1 - subsys/CMakeLists.txt | 1 + subsys/stats/CMakeLists.txt | 1 + {misc => subsys/stats}/stats.c | 0 4 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 subsys/stats/CMakeLists.txt rename {misc => subsys/stats}/stats.c (100%) diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index 4cb9ad6fc673..e5b1a45fd379 100644 --- a/misc/CMakeLists.txt +++ b/misc/CMakeLists.txt @@ -1,3 +1,2 @@ zephyr_sources_if_kconfig(printk.c) zephyr_sources_if_kconfig(reboot.c) -zephyr_sources_if_kconfig(stats.c) diff --git a/subsys/CMakeLists.txt b/subsys/CMakeLists.txt index 8e116dbb62c6..13e2b295ff77 100644 --- a/subsys/CMakeLists.txt +++ b/subsys/CMakeLists.txt @@ -17,3 +17,4 @@ add_subdirectory(storage) add_subdirectory_ifdef(CONFIG_SETTINGS settings) add_subdirectory_ifdef(CONFIG_PM_CONTROL_OS power) add_subdirectory(fb) +add_subdirectory(stats) diff --git a/subsys/stats/CMakeLists.txt b/subsys/stats/CMakeLists.txt new file mode 100644 index 000000000000..c4e0ea4656a4 --- /dev/null +++ b/subsys/stats/CMakeLists.txt @@ -0,0 +1 @@ +zephyr_sources_if_kconfig(stats.c) diff --git a/misc/stats.c b/subsys/stats/stats.c similarity index 100% rename from misc/stats.c rename to subsys/stats/stats.c