Clone this repository using west
:
west init -m https://github.com/thomasstenersen/example-subsys
west update
Hint: To speed this up, you can clone the repositories without history by adding -o=--depth=1
to the west update
command above.
The project can be built with west
or using CMake:
west build -b nrf52840dk_nrf52840 --cmake-only applications/library_build
# alternatively with CMake
cmake -GNinja -Sapplications/library_build -Bbuild -DBOARD=nrf52840dk_nrf52840
Then build the library:
cd build
ninja mylib