riotboot,mcuboot: Use canned recipe for flashing.#11110
riotboot,mcuboot: Use canned recipe for flashing.#11110cladmi merged 2 commits intoRIOT-OS:masterfrom
Conversation
A canned recipe had previously been defined to perform the flashing procedure. The canned recipe is preferred to calling $(FLASHER) $(FFLAGS) as there might be additional steps involved in flashing (this is handled by preflash currently but with the canned recipe we will be able to fix it.)
The canned recipe is preferred to using $(FLASHER) $(FFLAGS) as it allows to specify additional action actions (like what preflash is currently doing.)
|
Flashing |
|
For For a pure command reviews, the In master it was the same with the environment on the command line: By replacing the FLASHER by In master it was the same. |
|
For This test procedure successfully executes: |
cladmi
left a comment
There was a problem hiding this comment.
ACK, tested and the changes are good. The handling of the export is also the good way of doing it.
Contribution description
#10548 introduced a canned recipe for flashing. The aim was to reduce code duplication, and also to be able to perform more than one command. This is important for boards that need more complex procedure, for example to put them in a special mode or disabling the watchdog (currently done in "preflash")
By having the flashing recipe concentrated in a single place maintenance is simplified. Eventually the flash recipe will be defined with
?=to allow overriding, and then the benefits of this change will become clearer.Testing procedure
Build and flash
tests/riotboot. I could not test mcuboot because I do not have a supported board.Flashing continue to work fine.
Issues/PRs references
See: #10548.