cpu/esp_common: fix the dependency of the flash image on the ELF file#14041
Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom May 8, 2020
Merged
Conversation
Flashing an ESP board first requires the creation of a flash image from the ELF file. This is realized in the `preflash` target. However, the `preflash` target only depends on the variable `BUILD_BEFORE_FLASH` but on the ELF file. Therefore, the variable `BUILD_BEFORE_FLASH` must be set to the ELF file to ensure that when using multiple make processes, the compilation of the ELF file is completed before the flash image is created.
benpicco
approved these changes
May 8, 2020
Contributor
benpicco
left a comment
There was a problem hiding this comment.
Thank you for investigating this!
Now make -j flash works reliable as it should.
1 task
Contributor
|
This broke "make flash-only". |
Contributor
|
This is on master:
|
Contributor
|
Maybe FLASH_FILE should be the .bin? The compile worker could then create that. Lines 583 to 585 in 2444f06 |
Contributor
Author
|
I'm under pressure due to the online summer term so that I'm not able to spend time at the moment. Maybe, we should revert this commit for the moment and reopen issue #13492. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR fixes the dependency of the flash image on the ELF file for the ESP* make system.
Flashing an ESP board first requires the creation of a flash image from the ELF file. This is realized in the
preflashtarget. However, thepreflashtarget only depends on the variableBUILD_BEFORE_FLASHbut on the ELF file. Therefore, the variableBUILD_BEFORE_FLASHmust be set to the ELF file to ensure that when using multiple make processes, the compilation of the ELF file is completed before the flash image is created.Testing procedure
examples/hello-worldrunmake BOARD=esp32-wroom-32 -j flash term.main.c, better yet print it in awhile(1)loop.make BOARD=esp32-wroom-32 -j flash termagainIssues/PRs references
Fixes #13492