[riot-notifications] [RIOT-OS/RIOT] cpu/esp_common: fix the dependency of flash image on the ELF file (#14041)

Gunar Schorcht notifications at github.com
Fri May 8 11:10:01 CEST 2020


### 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 `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.

### Testing procedure

- In `examples/hello-world` run `make BOARD=esp32-wroom-32 -j flash term`.
- Change the text in `main.c`, better yet print it in a` while(1)` loop.
- Run `make BOARD=esp32-wroom-32 -j flash term` again

### Issues/PRs references

Fixes #13492 
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/14041

-- Commit Summary --

  * cpu/esp_common: fix dependency of flash target on ELF file

-- File Changes --

    M cpu/esp_common/Makefile.include (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14041.patch
https://github.com/RIOT-OS/RIOT/pull/14041.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14041
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200508/b779b96b/attachment.htm>


More information about the notifications mailing list