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
Avoid need for USE_CUSTOM_H flag #810
Comments
We did think about "custom" images that would always be present in
platformio.ini and would be placeholders for your own images.
Problem is - there's quite a few variances to be covered (board type,
flags...) so we decided to put that idea on hold and think about dynamic
way of generating platformio.ini depending on what you need.
Another route is to have ability in PlatformIO to include external ini
files - I opened a feature request on PlatformIO:
platformio/platformio-core#1590
Finally, few people from here are experimenting with dynamic environment
creation using scripting, that would allow us to "inject" settings into
platformio and hide custom images from git.
so - it's work in progress, stay tuned. Until then - manually git fetch &&
git merge so you don't overwrite your environments.
…On 24 April 2018 at 09:43, Carlos Iván Conde Martín < ***@***.***> wrote:
As a suggestion I would have always a custom.h file and it would be always
included at "all.h"
The HEAD version would only have some comments on its usage, so no code at
all will be included and any build will have the same result as not
defining the inclusion of flag on the "platformio.ini". People like me,
that tend to use it would just ignore it from git operations and code
inside custom.h.
I feel very annoying to have to discard my changes (this flag inclusion on
build flags) every time I want to get in sync with the HEAD version, and
then editing platformio.ini again to keep my customizations.
If you feel interested I can prepare a pull request.
Thank you Xose for your excellent job!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#810>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcWpOhcJIWa6QdoVjgRgEx54ekEVqxj6ks5trtedgaJpZM4ThKNG>
.
|
Could someone explain to me what is wrong with @platformio or how can we improve it? Have you seen http://docs.platformio.org/en/latest/projectconf/advanced_scripting.html ? You can automate build environment using Python language. |
Nothing wrong (on the contrary ;), but might have room for improvement. Advanced scripting is one way to solve the issue (see "dynamic environment creation" above), but I was exploring other routes, including platformio.ini While we can write local scripts for espurna project only, I wondered if you would be interested in adding more functionality to PlatformIO. |
Great! 😊 I like the idea of |
I prefer Just please make sure it accepts directories and wildcards, like: :) |
Please add this to platformio/platformio-core#1590 |
I have a similar challenge as @cconde I'm extending espurna for my homegrown ESP8266 based devices and set both Then for my module a separate Works fine. Problem though is the custom HTML I wish to add to |
@proddy have you solved the discarding changes issue? I've just fetched the new version and gone through rewriting my changes... |
@cconde no I haven't looked into this yet. |
You can use
The |
As a suggestion I would have always a custom.h file and it would be always included at "all.h"
The HEAD version would only have some comments on its usage, so no code at all will be included and any build will have the same result as not defining the inclusion of flag on the "platformio.ini". People like me, that tend to use it would just ignore it from git operations and code inside custom.h.
I feel very annoying to have to discard my changes (this flag inclusion on build flags) every time I want to get in sync with the HEAD version, and then editing platformio.ini again to keep my customizations.
By the way, "custom.h" would be omitted during the Two Step Upgrade process, I guess...
https://github.com/xoseperez/espurna/wiki/TwoStepUpdates
If you feel interested I can prepare a pull request.
Thank you Xose for your excellent job!
The text was updated successfully, but these errors were encountered: