Open chmorgan opened 1 year ago
This is a sample application, we will modify it to be a pure module. But by now, you can replicate this structure in you zephyr project.
@chmorgan I had asked this question some time ago
Treated this repo as a submodule
We placed it in a folder called libraries, where all our external submodules are.
Add to Cmakelists.txt
list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/<library path from above>/micro_ros_zephyr_module/modules/libmicroros/)
We also had the below in the project .conf
CONFIG_MICROROS=y
CONFIG_APP_LINK_WITH_MICROROS=y
Then: west build -t menuconfig
, and enable libmicroros under modules and make config changes.
How should someone add this module to their existing zephyr project?