Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()
14 changes: 14 additions & 0 deletions zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions zephyr/module.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: etl
build:
cmake-ext: true
kconfig-ext: true
cmake: zephyr
kconfig: zephyr/Kconfig
Loading