module: add zephyr integration

Support as a zephyr module.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-04-06 18:41:28 -04:00
parent b2ff235bd0
commit 6835bfc741
2 changed files with 20 additions and 0 deletions

18
zephyr/CMakeLists.txt Normal file
View File

@ -0,0 +1,18 @@
# At the moment there is only one supported ESP32 SoC, and it is not
# supported to omit the esp-dif HAL library, so we don't check for a
# KConfig option to enable the HAL
#
# In the future it might look like this:
# if(CONFIG_ESP_DIF_LIBRARY)
# to allow users to disable the HAL
if(CONFIG_SOC_ESP32)
zephyr_include_directories(
../components/esp32/include
../components/soc/esp32/include
)
zephyr_link_libraries(
hal
-L${CMAKE_CURRENT_SOURCE_DIR}/../components/esp32
)
endif()

2
zephyr/module.yml Normal file
View File

@ -0,0 +1,2 @@
build:
cmake: zephyr