3d-configs/sparky/Marlin-bugfix-2.0.x/buildroot/share/PlatformIO/scripts/custom_board.py

14 lines
285 B
Python
Raw Normal View History

2023-06-24 15:21:17 +02:00
#
# buildroot/share/PlatformIO/scripts/custom_board.py
#
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)