diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt new file mode 100644 index 00000000..0dbac030 --- /dev/null +++ b/zephyr/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory_ifdef(CONFIG_ETL ${CMAKE_CURRENT_LIST_DIR}/.. etl) +zephyr_link_interface_ifdef(CONFIG_ETL etl) diff --git a/zephyr/Kconfig b/zephyr/Kconfig new file mode 100644 index 00000000..b54488ac --- /dev/null +++ b/zephyr/Kconfig @@ -0,0 +1,5 @@ +config ETL + bool "ETL (Embedded Template Library)" + depends on CPP + help + This option enables the 'ETL' library. diff --git a/zephyr/module.yml b/zephyr/module.yml index b8bf28d4..b292d6a1 100644 --- a/zephyr/module.yml +++ b/zephyr/module.yml @@ -1,4 +1,4 @@ name: etl build: - cmake-ext: true - kconfig-ext: true + cmake: zephyr + kconfig: zephyr/Kconfig