mirror of
https://github.com/ETLCPP/etl.git
synced 2026-07-30 16:26:17 +08:00
Fix West support and add ETL configuration options to Kconfig (#1114)
* Fix West support * Add ETL Kconfig options
This commit is contained in:
parent
bf8e924308
commit
6a1211c854
@ -1,2 +1,8 @@
|
|||||||
add_subdirectory_ifdef(CONFIG_ETL ${CMAKE_CURRENT_LIST_DIR}/.. etl)
|
if(CONFIG_ETL)
|
||||||
zephyr_link_interface_ifdef(CONFIG_ETL 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()
|
||||||
|
|||||||
@ -3,3 +3,17 @@ config ETL
|
|||||||
depends on CPP
|
depends on CPP
|
||||||
help
|
help
|
||||||
This option enables the 'ETL' library.
|
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
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
name: etl
|
name: etl
|
||||||
build:
|
build:
|
||||||
cmake-ext: true
|
|
||||||
kconfig-ext: true
|
|
||||||
cmake: zephyr
|
cmake: zephyr
|
||||||
kconfig: zephyr/Kconfig
|
kconfig: zephyr/Kconfig
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user