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>
This commit is contained in:
Zach Van Camp 2025-04-25 12:09:13 -05:00 committed by GitHub
parent bda1e8619d
commit 5896b3b90e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 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.

View File

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