Work with register
This commit is contained in:
commit
ba1ed0fd2b
35 changed files with 27811 additions and 0 deletions
20
gen_compile_commands.py
Normal file
20
gen_compile_commands.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import os
|
||||
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")
|
||||
)
|
||||
|
||||
|
||||
# include toolchain paths
|
||||
env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True)
|
||||
|
||||
# override compilation DB path
|
||||
env.Replace(COMPILATIONDB_PATH="compile_commands.json")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue