scripts.py 411 B

123456789101112131415161718192021
  1. import os
  2. Import("env")
  3. env.AddPostAction(
  4. "$BUILD_DIR/${PROGNAME}.elf",
  5. env.VerboseAction(
  6. " ".join([
  7. "$OBJCOPY", "-O", "ihex", "-R", ".eeprom",
  8. "$BUILD_DIR/${PROGNAME}.elf", "$BUILD_DIR/${PROGNAME}.hex"
  9. ]),
  10. "Building $BUILD_DIR/${PROGNAME}.hex"
  11. )
  12. )
  13. env.Append(
  14. LINKFLAGS=[
  15. "--specs=nano.specs",
  16. "--specs=nosys.specs"
  17. ],
  18. )