scripts.py 458 B

12345678910111213141516171819202122
  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. "-Wl,-Map,$BUILD_DIR/${PROGNAME}.map"
  18. ],
  19. )