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 <zach.vancamp@etcconnect.com>
Co-authored-by: Zach Van Camp <zach.vancamp@etcconnect.com>
# Conflicts:
#	zephyr/module.yml
This commit is contained in:
Zach Van Camp 2025-04-25 12:09:13 -05:00 committed by John Wellbelove
parent 5a02c061e9
commit 99d899c11c
3 changed files with 11 additions and 0 deletions

2
zephyr/CMakeLists.txt Normal file
View File

@ -0,0 +1,2 @@
add_subdirectory_ifdef(CONFIG_ETL ${CMAKE_CURRENT_LIST_DIR}/.. etl)
zephyr_link_interface_ifdef(CONFIG_ETL etl)

5
zephyr/Kconfig Normal file
View File

@ -0,0 +1,5 @@
config ETL
bool "ETL (Embedded Template Library)"
depends on CPP
help
This option enables the 'ETL' library.

4
zephyr/module.yml Normal file
View File

@ -0,0 +1,4 @@
name: etl
build:
cmake: zephyr
kconfig: zephyr/Kconfig