Browse Source

PIO: Update for recent platforms (#1811)

* PlatformIO development platforms

* Properly detect platform directory

* Naming

* Update platformio.ini
master
Max Prokhorov 5 years ago
committed by GitHub
parent
commit
9bae101ed1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions
  1. +1
    -2
      code/extra_scripts.py
  2. +6
    -2
      code/platformio.ini

+ 1
- 2
code/extra_scripts.py View File

@ -97,9 +97,8 @@ def patch_lwip():
if "lwip_gcc" not in env["LIBS"]: if "lwip_gcc" not in env["LIBS"]:
return return
framework_dir = env["FRAMEWORK_ARDUINOESP8266_DIR"]
platform = env.PioPlatform() platform = env.PioPlatform()
framework_dir = platform.get_package_dir("framework-arduinoespressif8266")
toolchain_prefix = os.path.join(platform.get_package_dir("toolchain-xtensa"), "bin", "xtensa-lx106-elf-") toolchain_prefix = os.path.join(platform.get_package_dir("toolchain-xtensa"), "bin", "xtensa-lx106-elf-")
patch_action = env.VerboseAction(" ".join([ patch_action = env.VerboseAction(" ".join([


+ 6
- 2
code/platformio.ini View File

@ -15,7 +15,7 @@ data_dir = espurna/data
# arduino core 2.4.2 = platformIO 1.8.0 # arduino core 2.4.2 = platformIO 1.8.0
# arduino core 2.5.0 = platformIO 2.0.4 # arduino core 2.5.0 = platformIO 2.0.4
# arduino core 2.5.1 = platformIO 2.1.1 # arduino core 2.5.1 = platformIO 2.1.1
# arduino core 2.5.2 = platformIO 2.2.1
# arduino core 2.5.2 = platformIO 2.2.2
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
arduino_core_2_3_0 = espressif8266@1.5.0 arduino_core_2_3_0 = espressif8266@1.5.0
arduino_core_2_4_0 = espressif8266@1.6.0 arduino_core_2_4_0 = espressif8266@1.6.0
@ -23,7 +23,11 @@ arduino_core_2_4_1 = espressif8266@1.7.3
arduino_core_2_4_2 = espressif8266@1.8.0 arduino_core_2_4_2 = espressif8266@1.8.0
arduino_core_2_5_0 = espressif8266@2.0.4 arduino_core_2_5_0 = espressif8266@2.0.4
arduino_core_2_5_1 = espressif8266@2.1.1 arduino_core_2_5_1 = espressif8266@2.1.1
arduino_core_2_5_2 = espressif8266@2.2.1
arduino_core_2_5_2 = espressif8266@2.2.2
# Development platforms
arduino_core_develop = https://github.com/platformio/platform-espressif8266#develop
arduino_core_git = https://github.com/platformio/platform-espressif8266#feature/stage
platform = ${common.arduino_core_2_3_0} platform = ${common.arduino_core_2_3_0}
platform_latest = ${common.arduino_core_2_4_2} platform_latest = ${common.arduino_core_2_4_2}


Loading…
Cancel
Save