My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openblt.py 464B

123456789101112131415161718
  1. #
  2. # Convert the ELF to an SREC file suitable for some bootloaders
  3. #
  4. import os,sys
  5. from os.path import join
  6. Import("env")
  7. board = env.BoardConfig()
  8. board_keys = board.get("build").keys()
  9. if 'encrypt' in board_keys:
  10. env.AddPostAction(
  11. join("$BUILD_DIR", "${PROGNAME}.bin"),
  12. env.VerboseAction(" ".join([
  13. "$OBJCOPY", "-O", "srec",
  14. "\"$BUILD_DIR/${PROGNAME}.elf\"", "\"" + join("$BUILD_DIR", board.get("build.encrypt")) + "\""
  15. ]), "Building $TARGET")
  16. )