-
Notifications
You must be signed in to change notification settings - Fork 638
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
Build with platformio 4 #1805
Build with platformio 4 #1805
Conversation
- update filepaths: pioenvs -> pio/build - modify envs to use common settings - enable shared libs in travis and ota scripts
I like the massive platformio.ini cleanup :) Building with |
PR & documentation: Will update .gitignore Previous .piolibdeps catching looks iffy too, probably it should use global storage based on travis env (~/.platformio/lib) |
I'm not sure if it's a bug in PIO (4.0-rc4) or related to this PR, but I noticed building with a core different than 2.4.x I get this error: TypeError: expected string or buffer:
File "~/.platformio/penv/lib/python2.7/site-packages/platformio/builder/main.py", line 126:
env.SConscript("$BUILD_SCRIPT")
File "~/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "/~/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "~/.platformio/platforms/espressif8266/builder/main.py", line 255:
env.get("UPLOAD_PORT", ""))):
File "~/.platformio/penv/lib/python2.7/re.py", line 141:
return _compile(pattern, flags).match(string) |
Is this using -ota env and platform = espressif8266@2.2.2, with defined ESPURNA_IP & ESPURNA_AUTH (if yes, what is ESPURNA_IP value)? |
Yes, @2.2.2 and -ota - but I just noticed I forgot to update my env from KeyError: 'FRAMEWORK_ARDUINOESP8266_DIR':
File "~/.platformio/penv/lib/python2.7/site-packages/platformio/builder/main.py", line 134:
env.SConscript(item, exports="env")
File "~/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "~/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "~/Documents/Code/twine-firmware/code/extra_scripts.py", line 145:
patch_lwip()
File "~/Documents/Code/twine-firmware/code/extra_scripts.py", line 100:
framework_dir = env["FRAMEWORK_ARDUINOESP8266_DIR"]
File "~/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 410:
return self._dict[key] Maybe this env var is no longer set in 2.2.2? |
This fixed it for me (in extra_scripts.py): framework_dir = platform.get_package_dir("framework-arduinoespressif8266") I tested and this works in 2.3.0 up to including 2.5.2. |
cc @Niek , can you please try the ESPURNA_PIO_SHARED_LIBRARIES=1 stuff?
and references current rc1 commit platformio/platformio-core@8d459d8, since there is no pre-release on pypi
nightly builder can then verify that every env builder works, at least dumb mistakes like flash size would be caught