🔨 Consolidate STM32 extra_scripts (#22365)
This commit is contained in:
committed by
Scott Lahteine
parent
a5459a68a6
commit
fef76a76a3
@ -34,6 +34,11 @@ src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/b
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
||||
|
||||
[stm32f1_variant]
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
||||
|
||||
[common_STM32F103RC]
|
||||
platform = ${common_stm32.platform}
|
||||
extends = common_stm32
|
||||
@ -41,9 +46,7 @@ board = genericSTM32F103RC
|
||||
monitor_speed = 115200
|
||||
board_build.core = stm32
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# STM32F103RE
|
||||
@ -113,10 +116,7 @@ build_flags = ${common_stm32.build_flags}
|
||||
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
||||
build_unflags = ${common_stm32.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
lib_deps =
|
||||
|
||||
#
|
||||
@ -134,7 +134,6 @@ board_build.encrypt = Robin_e3.bin
|
||||
board_upload.offset_address = 0x08005000
|
||||
debug_tool = stlink
|
||||
extra_scripts = ${common_STM32F103RC.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
||||
|
||||
#
|
||||
# Creality (STM32F103RET6)
|
||||
@ -150,10 +149,8 @@ board_build.variant = MARLIN_F103Rx
|
||||
board_build.offset = 0x7000
|
||||
board_upload.offset_address = 0x08007000
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
@ -174,9 +171,7 @@ board_build.variant = MARLIN_F103Rx
|
||||
board_build.offset = 0x7000
|
||||
board_upload.offset_address = 0x08007000
|
||||
build_unflags = ${common_stm32.build_unflags}
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
@ -207,10 +202,7 @@ board_build.offset = 0x7000
|
||||
board_build.encrypt = Robin_mini.bin
|
||||
board_upload.offset_address = 0x08007000
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# MKS Robin Nano V1.2 and V2
|
||||
@ -228,10 +220,7 @@ board_upload.offset_address = 0x08007000
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
buildroot/share/PlatformIO/scripts/mks_encrypt.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# Mingda MPX_ARM_MINI
|
||||
@ -245,9 +234,7 @@ board_build.variant = MARLIN_F103Zx
|
||||
board_build.offset = 0x10000
|
||||
build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# Malyan M200 (STM32F103CB)
|
||||
@ -272,6 +259,4 @@ board_build.core = stm32
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
board_build.offset = 0x5000
|
||||
board_upload.offset_address = 0x08005000
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/stm32_bootloader.py
|
||||
extra_scripts = ${stm32f1_variant.extra_scripts}
|
||||
|
Reference in New Issue
Block a user