From 99d899c11ccfe92cd4b501e97ce20fad8706e76c Mon Sep 17 00:00:00 2001 From: Zach Van Camp Date: Fri, 25 Apr 2025 12:09:13 -0500 Subject: [PATCH] Add full West support for ETL (#1075) This will allow ETL to be included via west in a zephyr build without any additional wrappers or external kconfigs. Signed-off-by: Zach Van Camp Co-authored-by: Zach Van Camp # Conflicts: # zephyr/module.yml --- zephyr/CMakeLists.txt | 2 ++ zephyr/Kconfig | 5 +++++ zephyr/module.yml | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 zephyr/CMakeLists.txt create mode 100644 zephyr/Kconfig create mode 100644 zephyr/module.yml diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt new file mode 100644 index 00000000..0dbac030 --- /dev/null +++ b/zephyr/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory_ifdef(CONFIG_ETL ${CMAKE_CURRENT_LIST_DIR}/.. etl) +zephyr_link_interface_ifdef(CONFIG_ETL etl) diff --git a/zephyr/Kconfig b/zephyr/Kconfig new file mode 100644 index 00000000..b54488ac --- /dev/null +++ b/zephyr/Kconfig @@ -0,0 +1,5 @@ +config ETL + bool "ETL (Embedded Template Library)" + depends on CPP + help + This option enables the 'ETL' library. diff --git a/zephyr/module.yml b/zephyr/module.yml new file mode 100644 index 00000000..b292d6a1 --- /dev/null +++ b/zephyr/module.yml @@ -0,0 +1,4 @@ +name: etl +build: + cmake: zephyr + kconfig: zephyr/Kconfig