We are able to customize the board specific build parameters in the application directory, so is it possible to also customize the board specific flashing parameters in the application directory? More on what i mean below:
I just inherited a code base as a new employee at my company and am trying to make improvements on the build and flashing environment. One of the required steps for flashing an adafruit_feather_nrf52840 is that we need to add the following line into the board.cmake of the SDK install in order to enable nrfjprog to be used as the runner.
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
The board.cmake file is at: ~/ncs/v2.0.2/zephyr/boards/arm/adafruit_feather_nrf52840/board.cmake, is it possible to have a file in the application directory to "extend" the SDK's board.cmake file in order to make the application more portable?
We are programming the adafruit_feather_nrf52840 using SWD from the debug out on an nrf52840 DK.
Perhaps this is answered somewhere, but I couldn't seem to find any devzone questions or documentation on this. Any links to more information on this kind of topic would be much appreciated.
Thanks!
**EDIT**
I found this documentation on adding a custom board to an applicaion so that you don't have to edit the zephyr tree, however, it's not quite getting to the root of our issue. We aren't looking to make a custom board as it would be overkill, we're just looking to modify the includes from board.cmake file of the adafruit_feather_nrf52840 board without directly editing the zephyr tree.