mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-24 07:03:55 -06:00
🏗️ Refactor build encrypt / rename (#22124)
This commit is contained in:
parent
a9faf9effa
commit
90dc41139f
8 changed files with 59 additions and 63 deletions
|
@ -7,10 +7,12 @@ import os,shutil
|
|||
from SCons.Script import DefaultEnvironment
|
||||
env = DefaultEnvironment()
|
||||
|
||||
from os.path import join
|
||||
|
||||
def copytree(src, dst, symlinks=False, ignore=None):
|
||||
for item in os.listdir(src):
|
||||
s = os.path.join(src, item)
|
||||
d = os.path.join(dst, item)
|
||||
s = join(src, item)
|
||||
d = join(dst, item)
|
||||
if os.path.isdir(s):
|
||||
shutil.copytree(s, d, symlinks, ignore)
|
||||
else:
|
||||
|
@ -64,7 +66,7 @@ def encrypt_mks(source, target, env, new_name):
|
|||
renamed.close()
|
||||
|
||||
def add_post_action(action):
|
||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", action);
|
||||
env.AddPostAction(join("$BUILD_DIR", "${PROGNAME}.bin"), action);
|
||||
|
||||
# Apply customizations for a MKS Robin
|
||||
def prepare_robin(address, ldname, fwname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue