lolfrog/Marlin-2.0.x/buildroot/share/PlatformIO/scripts/robin.py

15 lines
345 B
Python
Raw Normal View History

2024-03-30 15:12:31 +01:00
#
# robin.py
#
# Apply customizations for a MKS Robin
def prepare(address, ldname, fwname):
import pioutil
if pioutil.is_pio_build():
import marlin
def encrypt(source, target, env):
marlin.encrypt_mks(source, target, env, fwname)
marlin.relocate_firmware(address)
marlin.custom_ld_script(ldname)
marlin.add_post_action(encrypt);