tests/riotboot: use FLASHFILE for the generated file#11089
tests/riotboot: use FLASHFILE for the generated file#11089kYc0o merged 5 commits intoRIOT-OS:masterfrom
Conversation
323735f to
1e33cb9
Compare
|
riotboot test is still working https://ci.riot-os.org/RIOT-OS/RIOT/11089/1e33cb9dd6f18630b22786351d4c5e7ad8960933/output/run_test/tests/riotboot/samr21-xpro:gnu.txt |
|
I can put the |
|
I agree with the changes, though I'd like to test it. I'll have time only this afternoon. |
|
I split the murdock change as it is a prerequisite. |
Use the new variable instead of the composed name.
Include the 'riotboot.mk' file before using FLASHFILE/ELFFILE/HEXFILE variables. This will allow setting variables to values from riotboot.mk like `FLASHFILE = $(RIOTBOOT_COMBINED_BIN)` before it is evaluated in Makefile.include. It should be included after defining 'BINFILE' for 'riotboot.bin' handling.
Using 'link' was working too but will introduce a circular dependency when FLASHFILE is one of the slot files. This trims down to the minimal required dependency to work. It is now the same as `ELFFILE` dependencies.
FLASHFILE is now a generated file when doing `make all`. This prepares also for when flashers will use `FLASHFILE` as a file to be flashed. It currently still needs the hack below for openocd and edbg. This also fixes the issue when building 'riotboot' in docker that was being built with the host toolchain.
1e33cb9 to
13e852c
Compare
|
Rebased now that #11097 got merged. |
This currently does nothing but setting FLASHFILE when flashing. This will allow passing the variable when flasher will use the FLASHFILE variable.
|
I added a commit in this one that will handle flashers using It can be tested by replacing the flasher with |
|
tested on OS X, works with the below command: |
|
Thank you for the testing and the review. |
Contribution description
FLASHFILE is now a generated file when doing
make all.This prepares also for when flashers will use
FLASHFILEas a file tobe flashed.
It currently still needs the hack below for openocd and edbg.
This also fixes the issue when building 'riotboot' in docker that was
being built with the host toolchain.
Description
This pull request is big and needs to modify many files to work. I could split if requested.
Testing procedure
Murdock change:
Murdock keeps running tests on
samr21-xpro, and also runs thetests/riotboottest onsamr21-xpro.Riotboot global change
Review the code difference, the main thing is that now we can do
FLASHFILE = $(RIOTBOOT_COMBINED_BIN)before parsing$(RIOTBASE)/Makefile.includeWhen compiling it should compile without ever saying
Circular dependency.My testing procedure is the following to ensure the firmware is indeed flashed and not relying on the previous version:
The test should succeed both with
samr21-xproandiotlab-m3.Building
riotbootin dockerThis change also now has the consequence that when doing
BUILD_IN_DOCKER=1 make allriotboot is correctly build in docker. If you havearm-gccoutside of your normal path you can try compiling with:Issues/PRs references
This is part of #8838
This replaces part of #11083
Depends on
#11097