mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
fc2020c6ec
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
19 lines
464 B
Python
19 lines
464 B
Python
#
|
|
# 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 pioutil
|
|
if pioutil.is_pio_build():
|
|
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)
|