Makefile.include: introduce FLASHFILE#11084
Conversation
Introduce FLASHFILE variable to start migrating boards to use it. This is the file that will be used for flashing. Boards do not currently use it but will migrated in upcoming PRs.
jcarrano
left a comment
There was a problem hiding this comment.
I think it is OK. Nothing to test, as this is just introducing a variable.
One thing we could do is placing some comments in a place where future board authors can see it and use the new FLASHFILE instead of using hacks like "ELFFILE=HEXFILE".
| export PORT # The port to connect the TERMPROG to. | ||
| export ELFFILE # The unstripped result of the compilation. | ||
| export HEXFILE # The stripped result of the compilation. | ||
| # FLASHFILE # The output file used for flashing (transition phase: only if defined) |
There was a problem hiding this comment.
Feel free to write as many lines here as you see necessary. Eventually this should end up in the docs.
|
I am happy with it. |
|
When finally migrated, I plan to make it mandatory to have it defined. The documentation will be better upgraded later, when we will be ready to have some |
wow your day ends early! ;) |
|
and starts late 😆 |
|
Thank you for the review, now I need to work :) |
Contribution description
Introduce FLASHFILE variable to start migrating boards to use it.
This is the file that will be used for flashing.
Boards do not currently use it but will migrated in upcoming PRs.
I do not think it needs to be exported to
scan-buildordockerbut as currently all the other firmware files are exported too, I just keep the same pattern (I think they do not need to be at all).Review procedure
Review if you find the documentation enough or not.
The goal of this PR is to be minimal and start the migration in independent pull requests.
So declare the concept and start applying it after.
Testing procedure
Currently not really any testing procedure as it only introduces the variable.
You can see that it is not defined but still reported in
info-buildFLASHFILE:
Issues/PRs references
This is a split of #8838 to simplify introducing it.