remove old marlin
This commit is contained in:
parent
ae07549e1b
commit
815ee1fb17
3304 changed files with 0 additions and 0 deletions
18
firmware/buildroot/share/PlatformIO/scripts/custom_board.py
Normal file
18
firmware/buildroot/share/PlatformIO/scripts/custom_board.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
#
|
||||
# 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 = pioutil.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)
|
Loading…
Add table
Add a link
Reference in a new issue