12345678910111213141516171819202122232425262728 |
-
-
-
-
-
-
-
-
- Import("env")
-
- from SCons.Script import DefaultEnvironment
- board = DefaultEnvironment().BoardConfig()
-
- if 'firmware' in board.get("build").keys():
-
- import marlin
-
-
- def encrypt(source, target, env):
- marlin.encrypt_mks(source, target, env, "build.firmware")
-
- marlin.add_post_action(encrypt);
-
- else:
-
- import sys
- print("You need to define output file via board_build.firmware = 'filename' parameter", file=sys.stderr)
- env.Exit(1);
|