CSSE4011: Tute 2.2 - Application Building Tips
1.0 Motivation
This tutorial will focus on modifications to the CMakeLists file to streamline the application development process.
2.0 Setting Build Options
Note that these should be added to the top of the CMakeLists file. Additionally, there are other ways to include config files and devicetree overlays. Refer to a application development and device tree guides for more.
2.1 Boards
A board to develop can be specified within the top level CMakeLists file as below, the particular name for the board can be found under Zephyr Supported Boards -> boardname or here.
With this set, west build can now omit the '-b board_name' option. By just using
an application can be created for the particle_argon.
2.2 Runners
The flash runner for the board can be set using the below, within the CMakeLists file.
This allows for west flash to be ran with about specifying the '-r runner' when invoked.
2.3 Config Files
Config option files (ending with .conf), can be added to the CMakeLists file using,
2.4 Devicetree overlays
Devicetree overlay files can be added to the build system using,