🔨 Consolidate STM32 extra_scripts (#22365)

This commit is contained in:
Scott Lahteine 2021-07-14 19:44:51 -05:00 committed by Scott Lahteine
parent 972b1e2f00
commit 5ca9ebfa6b
6 changed files with 50 additions and 104 deletions

View file

@ -10,7 +10,7 @@ Import("env")
env.AddPostAction(
join("$BUILD_DIR", "${PROGNAME}.elf"),
env.VerboseAction(" ".join([
"$OBJCOPY", "-O ihex", "$TARGET", # TARGET=.pio/build/fysetc_STM32F1/firmware.elf
"$OBJCOPY", "-O ihex", "$TARGET",
"\"" + join("$BUILD_DIR", "${PROGNAME}.hex") + "\"", # Note: $BUILD_DIR is a full path
]), "Building $TARGET"))