Hi all, I want to share with the whole community a setup we are using at Elektroline to develop firmwares with NuttX. The setup is pretty complex but provides us with ability to maintain project's applications under Meson build system, compile them for testing on other Unix-like platforms, and perform automated testing in CI (not included in the template). The repository with demonstration is in here:
https://gitlab.com/Cynerd/nuttx-meson-template/ Conceptually the root matches the Meson project structure and everything that is NuttX related is in `nuttx` directory. The directory `nuttx/board` matches the board support directory just like in NuttX repository. One speciality is Kconfig configuration that is generated by `nuttx/tools/nuttx-config.sh` and thus `nuttx/board/configs/defconfig` rather contains only hand written rules. This is a different approach compared to the NuttX suggested one where we hand write configuration we want instead of creating one and minifying it. Meson project in the root is included by `nuttx/project-apps/meson-apps`. That is NuttX application that configures Meson build to use the same compiler and flags as NuttX and includes Meson compiled object files in the NuttX build. Feel free to inspire yourself, comment our setup, or share your own. With regards, Karel Kočí
signature.asc
Description: PGP signature