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

Implementation of a Board-based flow (WIP) #656

Closed
wants to merge 10 commits into from

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Apr 14, 2020

This PR tries to implement a board-centric flow like the following:

$ arduino-cli board install zero
....
$ arduino-cli upload -b zero
...

In the examples above zero is a board Alias. Each board alias corresponds to a FQBN (for example zero corresponds to arduino:samd:arduino_zero_edbg). There should be a table that maps Alias and FQBN 1:1 but how this is obtained is still TBD.

  • A board alias can be used anywhere a FQBN was previously expected. The old flag --fqbn is still accepted but has been deprecated in favor of --board/-b that can accept both alias and FQBN.
  • FQBNs may carry also configuration options for a board. To allow configuration using aliases an extra flag has been added --board-config/-c that can accept a config option. The flag may be used multiple times. For example:
    arduino-cli board details arduino:avr:nano:cpu=atmega168
    can now be rewritten as:
    arduino-cli board details nano -c cpu=atmega168
    or:
    arduino-cli upload -b arduino:avr:nano:cpu=atmega168
    can now be rewritten as:
    arduino-cli upload -b nano -c cpu=atmega168

@cmaglie cmaglie force-pushed the boards-flow branch 2 times, most recently from e22f317 to 0b1c8dd Compare April 14, 2020 16:16
@rsora rsora added the status: in progress Work is in progress on this label Apr 16, 2020
@per1234 per1234 added component/CLI type: enhancement Proposed improvement labels Feb 3, 2021
@github-actions github-actions bot closed this Mar 30, 2021
@per1234 per1234 reopened this Mar 30, 2021
@rsora rsora added topic: CLI Related to the command line interface and removed topic: CLI labels Sep 16, 2021
@cmaglie
Copy link
Member Author

cmaglie commented Jun 20, 2022

Too much time passed, and I'm closing this one until the board-based flow will regain traction.

@cmaglie cmaglie closed this Jun 20, 2022
@per1234 per1234 added conclusion: declined Will not be worked on and removed status: in progress Work is in progress on this labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on topic: CLI Related to the command line interface type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants