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

Improved {build.*.platform.path} vars enumeration. #2652

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jun 25, 2024

Please check if the PR fulfills these requirements

See how to contribute

  • 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)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

This is a tentative fix for #2616. The original issue provided an experimental platform that extends esp32 to experiment with.
This PR adds the following template variables that will be available to compose recipes:

  • {build.core.platform.path} contains the path to the reference (build) platform
  • {build.board.platform.path} contains the path to the board platform

Also, adds the input variable build.use_core_platform_for_runtime_platform_path to be set on boards.txt or platform.txt:

  • if set to true then the value of {runtime.platform.path} will be the path to the reference platform.
  • in all other cases (unset or !=true) the value of {runtime.platform.path} will be the path to the board platform (as it always has been)

What is the current behavior?

The compile fails with an "extended" platforms

What is the new behavior?

Unfortunately, the compile still fails. Hopefully, this PR could help to resolve the remaining issues.

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

Other information

/cc @egnor

@cmaglie cmaglie self-assigned this Jun 25, 2024
@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself topic: build-process Related to the sketch build process labels Jun 25, 2024
Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.22%. Comparing base (850f22a) to head (7af9663).

Files Patch % Lines
...al/arduino/cores/packagemanager/package_manager.go 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2652      +/-   ##
==========================================
- Coverage   70.23%   70.22%   -0.01%     
==========================================
  Files         222      222              
  Lines       21347    21352       +5     
==========================================
+ Hits        14993    14995       +2     
- Misses       5175     5177       +2     
- Partials     1179     1180       +1     
Flag Coverage Δ
unit 70.22% <40.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@egnor
Copy link

egnor commented Jun 26, 2024

(kibitz: build.use_core_platform_for_runtime_platform_path might not be quite right, since it doesn't just affect the build but in fact just about any variable, including upload and so on?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: build-process Related to the sketch build process 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.

None yet

2 participants