anet_et4_openblt.py => openblt.py

This commit is contained in:
Scott Lahteine
2021-02-13 21:51:26 -06:00
parent cbf325a6b8
commit 52e8d8db54
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,14 @@
# Generate the firmware as OpenBLT needs
import os,sys
from os.path import join
Import("env")
env.AddPostAction(
"$BUILD_DIR/${PROGNAME}.elf",
env.VerboseAction(" ".join([
"$OBJCOPY", "-O", "srec",
"\"$BUILD_DIR/${PROGNAME}.elf\"", "\"$BUILD_DIR/${PROGNAME}.srec\""
]), "Building " + join("$BUILD_DIR","${PROGNAME}.srec"))
)