12345678910111213141516171819202122 |
- import os
- Import("env")
- env.AddPostAction(
- "$BUILD_DIR/${PROGNAME}.elf",
- env.VerboseAction(
- " ".join([
- "$OBJCOPY", "-O", "ihex", "-R", ".eeprom",
- "$BUILD_DIR/${PROGNAME}.elf", "$BUILD_DIR/${PROGNAME}.hex"
- ]),
- "Building $BUILD_DIR/${PROGNAME}.hex"
- )
- )
- env.Append(
- LINKFLAGS=[
- "--specs=nano.specs",
- "--specs=nosys.specs",
- "-Wl,-Map,$BUILD_DIR/${PROGNAME}.map"
- ],
- )
|