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

Allow overriding a default project "platformio.ini" configuration file #1913

Closed
ivankravets opened this issue Nov 6, 2018 · 5 comments

Comments

3 participants
@ivankravets
Copy link
Member

commented Nov 6, 2018

Allow overriding a default project "platformio.ini" configuration file usingpio run -c custom_platformio.ini option.

If you need to merge different platformio.ini, see #1590

@ivankravets ivankravets added the feature label Nov 6, 2018

@ivankravets ivankravets added this to the 4.0 milestone Nov 6, 2018

@tommag

This comment has been minimized.

Copy link

commented Nov 8, 2018

It would be very nice as well to be able to include another ini file into the main platformio.ini !

This way one could have a dedicated file to set dynamic variables. It would be much easier to manage using a VCS, keeping the config file in local storage (for example, WiFi credentials, etc)

I'm slowly learning how to properly use PlatformIO and I'm amazed at the simplicity and power of your software, it makes it so much easier to manage different projects and architectures, while being able to share code. Thanks for all of this !

@TD-er

This comment has been minimized.

Copy link

commented Dec 3, 2018

Could such ini files also be used to setup a personal config extension?
For example have a list of env's used in the platformio.ini and add the used com port or OTA settings for each of those.
These files are very specific for a build environment/PC, so no need to have it in your version control list.

@ivankravets

This comment has been minimized.

Copy link
Member Author

commented Dec 14, 2018

@TD-er it seems you mean this feature request #1590?

@TD-er

This comment has been minimized.

Copy link

commented Dec 14, 2018

@ivankravets Looks like it indeed :)

@ivankravets ivankravets added this to To do in PlatformIO 4.0 Mar 23, 2019

@ivankravets ivankravets changed the title Build a project with multiple configuration files "platformio.ini" Allow overriding a default project "platformio.ini" configuration file Mar 23, 2019

@ivankravets ivankravets moved this from To do to In progress in PlatformIO 4.0 May 8, 2019

@ivankravets ivankravets moved this from In progress to Done in PlatformIO 4.0 May 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.