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

Add PLATFORM_PATH #619

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

alissa-huskey
Copy link

Add PLATFORM_PATH variable to the root hardware directory for a given
architecture to avoid duplication between boards.txt, cores, platform
libraries, etc.

I needed to access this value and was hoping to inherit it, when I learned that it did not exist as a distinct variable in Arduino.mk. It seemed like it would be generally useful and a bit more DRY to define it independently. So I thought I would offer it in case you find it useful. No worries if you'd rather not.

I opted to avoid setting PLATFORM_PATH in the case where any of the ALTERNATE_CORE variables are set. I realize that there is some duplication between the concepts and it may be confusing. I figured sticking with the minimally invasive simple refactoring was safest.

Add PLATFORM_PATH variable to the root hardware directory for a given
architecture to avoid duplication between boards.txt, cores, platform
libraries, etc.
Build is failing because pyserial 3.0.1 is already installed and can't
be uninstalled. Instead, add --ignore-installed flag to pip command so
that pyserial 2.7 will be installed without the need to uninstall 3.0.1.
@sudar
Copy link
Owner

sudar commented Sep 3, 2020

@alissa-huskey

Thanks for your contribution and sorry for the delay in getting back to you.

@sej7278

What are your thoughts on this?

@sej7278
Copy link
Collaborator

sej7278 commented Sep 3, 2020

not really sure what the use case for this would be if its not used with ALTERNATE_CORE, but it shouldn't hurt as it defaults to the original value if not set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants