Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile/flasher: is preflash still relevant? #10547

Closed
jcarrano opened this issue Dec 5, 2018 · 5 comments
Closed

Makefile/flasher: is preflash still relevant? #10547

jcarrano opened this issue Dec 5, 2018 · 5 comments
Labels
Area: build system Area: Build system State: stale State: The issue / PR has no activity for >185 days Type: question The issue poses a question regarding usage of RIOT

Comments

@jcarrano
Copy link
Contributor

jcarrano commented Dec 5, 2018

Description

preflash is a command that is (sometimes) run before flashing. Now, if it is always run before flashing, then it makes more sense to make it part of the flashing procedure itself.

For the sake of simplicity, I would like to remove this target. The only places where it is used in the ESP32 port (which I'm working to fix with @cladmi ) and in the bossa tool.

In the latter, it is used for setting the TTY mode, but that is better done in the flash script itself.

In the ESP32 port, the presence of PREFLASH seems to have introduced more confusion and led to a sub-optimal makefile.

@kaspar030
Copy link
Contributor

+1 for removing once not used anymore

@cladmi
Copy link
Contributor

cladmi commented Dec 5, 2018

For the way it is used, having preflash a separate target is really misleading. Because the stty thing requires it to be done a few seconds before flashing which is nothing that should be guaranteed by make.

However, for some cases, if the flasher is an existing binary, I would not want to wrap it as a shell script to duplicate both its argument parsing and the preflash arguments too, to be able to do a preflash procedure.
For that case, I would see it more as a command executed within the flash target.

@jcarrano
Copy link
Contributor Author

jcarrano commented Dec 5, 2018

After doing #10548 I think this may be handled by having a canned recipe that does the flashing and allowing this recipe to be changed.

@jcarrano jcarrano added Area: build system Area: Build system Type: question The issue poses a question regarding usage of RIOT labels Dec 5, 2018
@jcarrano
Copy link
Contributor Author

jcarrano commented Dec 6, 2018

allowing this recipe to be changed.

But for that we need newer Make than 3.8, see #10554 .

@stale
Copy link

stale bot commented Aug 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Aug 10, 2019
@stale stale bot closed this as completed Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system State: stale State: The issue / PR has no activity for >185 days Type: question The issue poses a question regarding usage of RIOT
Projects
None yet
Development

No branches or pull requests

3 participants