mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-22 00:35:39 +00:00

Co-authored-by: GUVWAF <78759985+GUVWAF@users.noreply.github.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Daniel Peter Chokola <dan.chokola@gmail.com> Co-authored-by: Mark Trevor Birss <markbirss@gmail.com> Co-authored-by: Austin <vidplace7@gmail.com>
23 lines
527 B
Python
Executable File
23 lines
527 B
Python
Executable File
# trunk-ignore-all(ruff/F821)
|
|
# trunk-ignore-all(flake8/F821): For SConstruct imports
|
|
|
|
Import("env")
|
|
# Custom HEX from ELF
|
|
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",
|
|
),
|
|
)
|