Browse Source

🔨 Require PIO >= 6.0.1 (#24205)

FB4S_WIFI
ellensp 3 years ago
committed by Scott Lahteine
parent
commit
02c267f542
  1. 6
      buildroot/share/PlatformIO/scripts/common-dependencies.py
  2. 2
      ini/avr.ini
  3. 2
      ini/due.ini
  4. 2
      ini/esp32.ini
  5. 2
      ini/lpc176x.ini
  6. 10
      ini/native.ini
  7. 2
      ini/samd51.ini
  8. 2
      ini/stm32-common.ini
  9. 2
      ini/stm32f0.ini
  10. 2
      ini/stm32f1-maple.ini
  11. 2
      ini/stm32f1.ini
  12. 10
      ini/teensy.ini
  13. 2
      platformio.ini

6
buildroot/share/PlatformIO/scripts/common-dependencies.py

@ -15,7 +15,7 @@ if pioutil.is_pio_build():
FEATURE_CONFIG = {} FEATURE_CONFIG = {}
def validate_pio(): def validate_pio():
PIO_VERSION_MIN = (5, 0, 3) PIO_VERSION_MIN = (6, 0, 1)
try: try:
from platformio import VERSION as PIO_VERSION from platformio import VERSION as PIO_VERSION
weights = (1000, 100, 1) weights = (1000, 100, 1)
@ -174,7 +174,7 @@ if pioutil.is_pio_build():
env.SConscript(feat['extra_scripts'], exports="env") env.SConscript(feat['extra_scripts'], exports="env")
if 'src_filter' in feat: if 'src_filter' in feat:
blab("========== Adding src_filter for %s... " % feature, 2) blab("========== Adding build_src_filter for %s... " % feature, 2)
src_filter = ' '.join(env.GetProjectOption('src_filter')) src_filter = ' '.join(env.GetProjectOption('src_filter'))
# first we need to remove the references to the same folder # first we need to remove the references to the same folder
my_srcs = re.findall(r'[+-](<.*?>)', feat['src_filter']) my_srcs = re.findall(r'[+-](<.*?>)', feat['src_filter'])
@ -184,7 +184,7 @@ if pioutil.is_pio_build():
src_filter = re.sub(r'[+-]' + d, '', src_filter) src_filter = re.sub(r'[+-]' + d, '', src_filter)
src_filter = feat['src_filter'] + ' ' + src_filter src_filter = feat['src_filter'] + ' ' + src_filter
set_env_field('src_filter', [src_filter]) set_env_field('build_src_filter', [src_filter])
env.Replace(SRC_FILTER=src_filter) env.Replace(SRC_FILTER=src_filter)
if 'lib_ignore' in feat: if 'lib_ignore' in feat:

2
ini/avr.ini

@ -16,7 +16,7 @@
platform = atmelavr@~3.4 platform = atmelavr@~3.4
build_flags = ${common.build_flags} -Wl,--relax build_flags = ${common.build_flags} -Wl,--relax
board_build.f_cpu = 16000000L board_build.f_cpu = 16000000L
src_filter = ${common.default_src_filter} +<src/HAL/AVR> build_src_filter = ${common.default_src_filter} +<src/HAL/AVR>
# #
# ATmega2560 # ATmega2560

2
ini/due.ini

@ -18,7 +18,7 @@
[env:DUE] [env:DUE]
platform = atmelsam platform = atmelsam
board = due board = due
src_filter = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace> build_src_filter = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace>
[env:DUE_USB] [env:DUE_USB]
extends = env:DUE extends = env:DUE

2
ini/esp32.ini

@ -16,7 +16,7 @@
platform = espressif32@2.1.0 platform = espressif32@2.1.0
board = esp32dev board = esp32dev
build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0 build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
src_filter = ${common.default_src_filter} +<src/HAL/ESP32> build_src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
lib_ignore = NativeEthernet lib_ignore = NativeEthernet
upload_speed = 500000 upload_speed = 500000
monitor_speed = 250000 monitor_speed = 250000

2
ini/lpc176x.ini

@ -20,7 +20,7 @@ lib_ldf_mode = off
lib_compat_mode = strict lib_compat_mode = strict
extra_scripts = ${common.extra_scripts} extra_scripts = ${common.extra_scripts}
Marlin/src/HAL/LPC1768/upload_extra_script.py Marlin/src/HAL/LPC1768/upload_extra_script.py
src_filter = ${common.default_src_filter} +<src/HAL/LPC1768> +<src/HAL/shared/backtrace> build_src_filter = ${common.default_src_filter} +<src/HAL/LPC1768> +<src/HAL/shared/backtrace>
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
Servo Servo
custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7 custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7

10
ini/native.ini

@ -16,11 +16,11 @@
platform = native platform = native
framework = framework =
build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include build_src_flags = -Wall -IMarlin/src/HAL/LINUX/include
build_unflags = -Wall build_unflags = -Wall
lib_ldf_mode = off lib_ldf_mode = off
lib_deps = lib_deps =
src_filter = ${common.default_src_filter} +<src/HAL/LINUX> build_src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
# #
# Native Simulation # Native Simulation
@ -35,11 +35,11 @@ src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
platform = native platform = native
framework = framework =
build_flags = ${common.build_flags} -std=gnu++17 -D__PLAT_NATIVE_SIM__ -DU8G_HAL_LINKS -I/usr/include/SDL2 -IMarlin -IMarlin/src/HAL/NATIVE_SIM/u8g build_flags = ${common.build_flags} -std=gnu++17 -D__PLAT_NATIVE_SIM__ -DU8G_HAL_LINKS -I/usr/include/SDL2 -IMarlin -IMarlin/src/HAL/NATIVE_SIM/u8g
src_build_flags = -Wall -Wno-expansion-to-defined -Wcast-align build_src_flags = -Wall -Wno-expansion-to-defined -Wcast-align
release_flags = -g0 -O3 -flto release_flags = -g0 -O3 -flto
debug_build_flags = -fstack-protector-strong -g -g3 -ggdb debug_build_flags = -fstack-protector-strong -g -g3 -ggdb
lib_compat_mode = off lib_compat_mode = off
src_filter = ${common.default_src_filter} +<src/HAL/NATIVE_SIM> build_src_filter = ${common.default_src_filter} +<src/HAL/NATIVE_SIM>
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
MarlinSimUI=https://github.com/p3p/MarlinSimUI/archive/0.0.2.zip MarlinSimUI=https://github.com/p3p/MarlinSimUI/archive/0.0.2.zip
Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/marlin_sim_native.zip Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/marlin_sim_native.zip
@ -110,6 +110,6 @@ custom_gcc = g++
# #
[env:simulator_windows] [env:simulator_windows]
extends = simulator_common extends = simulator_common
src_build_flags = ${simulator_common.src_build_flags} -fpermissive build_src_flags = ${simulator_common.build_src_flags} -fpermissive
build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags} -IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows -ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags} -IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows -ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp
build_type = debug build_type = debug

2
ini/samd51.ini

@ -17,7 +17,7 @@ platform = atmelsam
board = adafruit_grandcentral_m4 board = adafruit_grandcentral_m4
build_flags = ${common.build_flags} -std=gnu++17 build_flags = ${common.build_flags} -std=gnu++17
build_unflags = -std=gnu++11 build_unflags = -std=gnu++11
src_filter = ${common.default_src_filter} +<src/HAL/SAMD51> build_src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
SoftwareSerialM SoftwareSerialM
extra_scripts = ${common.extra_scripts} extra_scripts = ${common.extra_scripts}

2
ini/stm32-common.ini

@ -18,7 +18,7 @@ build_flags = ${common.build_flags}
-DTIM_IRQ_PRIO=13 -DTIM_IRQ_PRIO=13
-DADC_RESOLUTION=12 -DADC_RESOLUTION=12
build_unflags = -std=gnu++11 build_unflags = -std=gnu++11
src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace> build_src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
extra_scripts = ${common.extra_scripts} extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py

2
ini/stm32f0.ini

@ -48,4 +48,4 @@ board = malyanm300_f070cb
build_flags = ${common_stm32.build_flags} build_flags = ${common_stm32.build_flags}
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
-DHAL_UART_MODULE_ENABLED -DHAL_UART_MODULE_ENABLED
src_filter = ${common.default_src_filter} +<src/HAL/STM32> build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>

2
ini/stm32f1-maple.ini

@ -28,7 +28,7 @@ board_build.core = maple
build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
${common.build_flags} -DARDUINO_ARCH_STM32 -DMAPLE_STM32F1 ${common.build_flags} -DARDUINO_ARCH_STM32 -DMAPLE_STM32F1
build_unflags = -std=gnu11 -std=gnu++11 build_unflags = -std=gnu11 -std=gnu++11
src_filter = ${common.default_src_filter} +<src/HAL/STM32F1> build_src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
lib_ignore = SPI, FreeRTOS701, FreeRTOS821 lib_ignore = SPI, FreeRTOS701, FreeRTOS821
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
SoftwareSerialM SoftwareSerialM

2
ini/stm32f1.ini

@ -254,7 +254,7 @@ board = malyanm200_f103cb
build_flags = ${common_stm32.build_flags} build_flags = ${common_stm32.build_flags}
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
-DHAL_UART_MODULE_ENABLED -DHAL_UART_MODULE_ENABLED
src_filter = ${common.default_src_filter} +<src/HAL/STM32> build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>
# #
# FLYmaker FLY Mini (STM32F103RCT6) # FLYmaker FLY Mini (STM32F103RCT6)

10
ini/teensy.ini

@ -46,7 +46,7 @@ board = teensy2pp
# #
[teensy_arm] [teensy_arm]
platform = teensy@~4.12.0 platform = teensy@~4.12.0
src_filter = ${common.default_src_filter} build_src_filter = ${common.default_src_filter}
lib_ignore = NativeEthernet lib_ignore = NativeEthernet
# #
@ -55,7 +55,7 @@ lib_ignore = NativeEthernet
[env:teensy31] [env:teensy31]
extends = teensy_arm extends = teensy_arm
board = teensy31 board = teensy31
src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY31_32> build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY31_32>
# #
# Teensy 3.5 / 3.6 (ARM Cortex-M4) # Teensy 3.5 / 3.6 (ARM Cortex-M4)
@ -63,12 +63,12 @@ src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY31_32>
[env:teensy35] [env:teensy35]
extends = teensy_arm extends = teensy_arm
board = teensy35 board = teensy35
src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY35_36> build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY35_36>
[env:teensy36] [env:teensy36]
extends = teensy_arm extends = teensy_arm
board = teensy36 board = teensy36
src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY35_36> build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY35_36>
# #
# Teensy 4.0 / 4.1 (ARM Cortex-M7) # Teensy 4.0 / 4.1 (ARM Cortex-M7)
@ -76,5 +76,5 @@ src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY35_36>
[env:teensy41] [env:teensy41]
extends = teensy_arm extends = teensy_arm
board = teensy41 board = teensy41
src_filter = ${teensy_arm.src_filter} +<src/HAL/TEENSY40_41> build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY40_41>
lib_ignore = lib_ignore =

2
platformio.ini

@ -283,4 +283,4 @@ monitor_flags =
platform = atmelavr platform = atmelavr
board = megaatmega2560 board = megaatmega2560
build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__ build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
src_filter = +<src/MarlinCore.cpp> build_src_filter = +<src/MarlinCore.cpp>

Loading…
Cancel
Save