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

Board identification improvements #1674

Merged
merged 10 commits into from
Oct 18, 2022

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Feb 24, 2022

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?
This PR adds the possibility to the board list command to detect the board FQBN with full configuration (the configuration it's the last portion of the FQBN i.e.: arduino:avr:mega:CONF=VALUE)

What is the current behavior?
The board list command can not detect the board configuration.

What is the new behavior?
The board list command may return the full FQBN including the board configuration if the platforms correctly support it.

Does this PR introduce a breaking change, and is
titled accordingly?

The fqbn returned from the board list command now may contain also the config part arduino:avr:mega:CONF=VALUE,.... Strictly speaking, it's not a breaking change, since the FQBN is supposed to contain this (optional) configuration part. BTW this is very uncommon so the clients parsing the FQBN may not be ready to handle this optional piece.

Other information:
Some other improvements on subroutines handling boards metadata have been made, with many pieces refactored to improve source code readability.

@cmaglie cmaglie linked an issue Feb 24, 2022 that may be closed by this pull request
@cmaglie cmaglie self-assigned this Feb 24, 2022
@cmaglie cmaglie added topic: CLI Related to the command line interface type: enhancement Proposed improvement labels Feb 24, 2022
@cmaglie cmaglie force-pushed the board_identification_improvements branch from 226dffc to 01611d7 Compare June 15, 2022 11:51
@per1234 per1234 added the topic: code Related to content of the project itself label Jun 15, 2022
@cmaglie cmaglie force-pushed the board_identification_improvements branch from 01611d7 to c1cee78 Compare October 14, 2022 13:09
@cmaglie cmaglie force-pushed the board_identification_improvements branch from c1cee78 to 1bcdd33 Compare October 14, 2022 13:12
@cmaglie cmaglie marked this pull request as ready for review October 14, 2022 13:59
@cmaglie cmaglie added this to the Arduino CLI 1.0 milestone Oct 14, 2022
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
docs/pluggable-discovery-specification.md Show resolved Hide resolved
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
docs/pluggable-discovery-specification.md Outdated Show resolved Hide resolved
@cmaglie
Copy link
Member Author

cmaglie commented Oct 17, 2022

Thanks for fixing my poor documentation @per1234 :-)

Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this important advancement in the pluggable discovery system Cristian!

@cmaglie cmaglie merged commit 0d8ce36 into arduino:master Oct 18, 2022
@cmaglie cmaglie deleted the board_identification_improvements branch October 18, 2022 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: CLI Related to the command line interface topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way to identify board options via pluggable discovery
3 participants