Fix West support and add ETL configuration options to Kconfig (#1114)

* Fix West support

* Add ETL Kconfig options
This commit is contained in:
Eden Frosst 2025-06-02 18:21:48 -04:00 committed by GitHub
parent bf8e924308
commit 6a1211c854
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 4 deletions

View File

@ -1,2 +1,8 @@
add_subdirectory_ifdef(CONFIG_ETL ${CMAKE_CURRENT_LIST_DIR}/.. etl)
zephyr_link_interface_ifdef(CONFIG_ETL etl)
if(CONFIG_ETL)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/.. etl)
zephyr_link_interface(etl)
zephyr_compile_definitions_ifdef(CONFIG_ETL_DEBUG ETL_DEBUG)
zephyr_compile_definitions_ifdef(CONFIG_ETL_CHECK_PUSH_POP ETL_CHECK_PUSH_POP)
zephyr_compile_definitions_ifdef(CONFIG_ETL_LOG_ERRORS ETL_LOG_ERRORS)
endif()

View File

@ -3,3 +3,17 @@ config ETL
depends on CPP
help
This option enables the 'ETL' library.
if ETL
config ETL_DEBUG
bool "Build ETL with debugging checks"
default y if DEBUG
config ETL_CHECK_PUSH_POP
bool "Enable push/pop checks in ETL"
config ETL_LOG_ERRORS
bool "Call ETL error handler instead of assert"
endif # ETL

View File

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