2021-06-29 21:25:37 +00:00
|
|
|
#
|
2021-11-04 10:28:42 +00:00
|
|
|
# robin.py
|
2021-06-29 21:25:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# Apply customizations for a MKS Robin
|
|
|
|
def prepare(address, ldname, fwname):
|
2021-11-04 10:28:42 +00:00
|
|
|
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);
|