Rename, clean up boards/variants (#21655)

* Consolidate variant scripts
* Rename Marlin-local boards
* Simplify variants where possible
* Rename variants
* CHITU_F103 and MEEB_3DP: Maple platform `platformio-build-stm32f1.py` uses the 'board' name, not 'board_build.variant' so folder names match 'board' and not `board_build.variant`.
This commit is contained in:
Scott Lahteine
2021-04-27 04:49:21 -05:00
committed by GitHub
parent 69d85cce2d
commit ee016e605c
167 changed files with 340 additions and 840 deletions

View File

@ -36,13 +36,12 @@ build_flags = ${common_stm32.build_flags}
[env:STM32F401VE_STEVAL]
platform = ${common_stm32.platform}
extends = common_stm32
board = STEVAL_STM32F401VE
board = marlin_STEVAL_STM32F401VE
build_flags = ${common_stm32.build_flags}
-DARDUINO_STEVAL -DSTM32F401xE
-DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
buildroot/share/PlatformIO/scripts/STM32F401VE_STEVAL.py
#
# STM32F401RC
@ -50,38 +49,41 @@ extra_scripts = ${common.extra_scripts}
[env:FYSETC_CHEETAH_V20]
platform = ${common_stm32.platform}
extends = common_stm32
board = FYSETC_CHEETAH_V20
board = marlin_FYSETC_CHEETAH_V20
build_flags = ${common_stm32.build_flags} -DSTM32F401xC -DVECT_TAB_OFFSET=0xC000
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
buildroot/share/PlatformIO/scripts/FYSETC_CHEETAH_V20.py
#
# FLYF407ZG
#
[env:FLYF407ZG]
platform = ${common_stm32.platform}
extends = common_stm32
board = FLYF407ZG
build_flags = ${common_stm32.build_flags}
platform = ${common_stm32.platform}
extends = common_stm32
board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_FLY_F407ZG
upload_protocol = dfu
build_flags = ${common_stm32.build_flags}
-DVECT_TAB_OFFSET=0x8000
extra_scripts = ${common.extra_scripts}
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
#
# FLY MINI(stm32f103rct6)
# FLY MINI (STM32F103RCT6)
#
[env:FLY_MINI]
platform = ${common_stm32f1.platform}
extends = common_stm32f1
board = genericSTM32F103RC
board_build.address = 0x08005000
board_build.ldscript = fly_mini.ld
extra_scripts = ${common_stm32f1.extra_scripts}
buildroot/share/PlatformIO/scripts/fly_mini.py
buildroot/share/PlatformIO/scripts/custom_board.py
build_flags = ${common_stm32f1.build_flags}
-DDEBUG_LEVEL=0 -DSS_TIMER=4
-DDEBUG_LEVEL=0 -DSS_TIMER=4
#
# FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
# FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
#
[env:FYSETC_S6]
platform = ${common_stm32.platform}
@ -105,7 +107,7 @@ upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
[env:STM32F407VE_black]
platform = ${common_stm32.platform}
extends = common_stm32
board = blackSTM32F407VET6
board = marlin_blackSTM32F407VET6
build_flags = ${common_stm32.build_flags}
-DARDUINO_BLACK_F407VE
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
@ -121,7 +123,7 @@ extra_scripts = ${common.extra_scripts}
platform = ${common_stm32.platform}
extends = common_stm32
build_flags = ${common_stm32.build_flags} -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
board = genericSTM32F407VGT6
board = marlin_STM32F407VGT6_CCM
board_build.core = stm32
board_build.variant = MARLIN_F4x7Vx
board_build.ldscript = ldscript.ld
@ -144,7 +146,7 @@ extra_scripts = ${common.extra_scripts}
[env:BIGTREE_SKR_PRO]
platform = ${common_stm32.platform}
extends = common_stm32
board = BigTree_SKR_Pro
board = marlin_BigTree_SKR_Pro
build_flags = ${common_stm32.build_flags}
-DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
extra_scripts = ${common.extra_scripts}
@ -180,7 +182,7 @@ build_flags = ${stm_flash_drive.build_flags}
platform = ${common_stm32.platform}
extends = common_stm32
board = genericSTM32F407VGT6
board_build.variant = BIGTREE_E3_RRF
board_build.variant = MARLIN_BIGTREE_E3_RRF
build_flags = ${common_stm32.build_flags}
-DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
-DSERIAL_RX_BUFFER_SIZE=255 -DSERIAL_TX_BUFFER_SIZE=255
@ -193,7 +195,7 @@ extra_scripts = ${common.extra_scripts}
[env:BIGTREE_GTR_V1_0]
platform = ${common_stm32.platform}
extends = common_stm32
board = BigTree_GTR_v1
board = marlin_BigTree_GTR_v1
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
build_flags = ${common_stm32.build_flags}
@ -215,7 +217,7 @@ build_flags = ${stm_flash_drive.build_flags}
[env:BIGTREE_BTT002]
platform = ${common_stm32.platform}
extends = common_stm32
board = BigTree_Btt002
board = marlin_BigTree_BTT002
build_flags = ${common_stm32.build_flags}
-DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
-DHAVE_HWSERIAL2
@ -251,11 +253,12 @@ build_flags = ${stm_flash_drive.build_flags}
[lerdge_common]
platform = ${common_stm32.platform}
extends = common_stm32
board = LERDGE
board = marlin_STM32F407ZGT6
board_build.variant = MARLIN_LERDGE
board_build.offset = 0x10000
board_build.encrypt = Yes
extra_scripts = ${common.extra_scripts}
pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
buildroot/share/PlatformIO/scripts/lerdge.py
build_flags = ${common_stm32.build_flags}
@ -377,7 +380,7 @@ build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
platform = ${common_stm32.platform}
extends = common_stm32
build_flags = ${common_stm32.build_flags} ${stm32f4_I2C1.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC
board = genericSTM32F407VGT6
board = marlin_STM32F407VGT6_CCM
board_build.core = stm32
board_build.variant = MARLIN_F4x7Vx
board_build.ldscript = ldscript.ld