mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-25 21:07:32 +00:00
b90de62197
* Add 10K to marlin_blackSTM32F407VET6 (typo?) * Document custom build scripts. * Add a Robin common build script. * Extraneous .ldscript specifiers
17 lines
449 B
Python
17 lines
449 B
Python
#
|
|
# buildroot/share/PlatformIO/scripts/custom_board.py
|
|
#
|
|
# - For build.address replace VECT_TAB_ADDR to relocate the firmware
|
|
# - For build.ldscript use one of the linker scripts in buildroot/share/PlatformIO/ldscripts
|
|
#
|
|
import marlin
|
|
board = marlin.env.BoardConfig()
|
|
|
|
address = board.get("build.address", "")
|
|
if address:
|
|
marlin.relocate_firmware(address)
|
|
|
|
ldscript = board.get("build.ldscript", "")
|
|
if ldscript:
|
|
marlin.custom_ld_script(ldscript)
|