mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-25 12:57:53 +00:00
14 lines
285 B
Python
14 lines
285 B
Python
|
#
|
||
|
# 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)
|