From 5896b3b90e401ec991ceda0097f8da3c8e9d8e9d 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 --- zephyr/CMakeLists.txt | 2 ++ zephyr/Kconfig | 5 +++++ zephyr/module.yml | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 zephyr/CMakeLists.txt create mode 100644 zephyr/Kconfig 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 index b8bf28d4..b292d6a1 100644 --- a/zephyr/module.yml +++ b/zephyr/module.yml @@ -1,4 +1,4 @@ name: etl build: - cmake-ext: true - kconfig-ext: true + cmake: zephyr + kconfig: zephyr/Kconfig