I checked the docs on custom build targets, and I was wondering if there’s a way to attach a custom target on a board level (not on a project level) without having the board’s user add this target via extra_scripts
etc?
For example, our lilka_v2
board has an option to run firmwares from an SD card.
Currently, the user has to do the following sequence:
- run
pio run
- copy
.pio/build/default/firmware.bin
into a different folder and rename it tomy_app.bin
(not even sure where would Windows users have to search for this file) - copy
my_app.bin
to an SD card.
I’m wondering if there’s a way for the user to have a new target (out of the box) when they set board
to lilka_v2
. Then, they could run something like:
pio run -t buildimage -a my_app.bin
… and then have the firmware image appear in their project folder.
Additionally, if the target would show up in the PlatformIO IDE extension, that would be totally great for VS Code users, since they wouldn’t need to browse through build files to fetch the newly-built firmware image.