sconsfile add proper require to gitversion

master
Willem Melching 2021-03-25 18:06:29 +01:00
parent e53148d4c7
commit 4906dc7b22
1 changed files with 2 additions and 0 deletions

View File

@ -144,11 +144,13 @@ startup = panda_env.Object(STARTUP_FILE)
# Bootstub
crypto = ["../crypto/rsa.c", "../crypto/sha.c"]
bootstub_elf = panda_env.Program(f"obj/bootstub.{PROJECT}.elf", [startup] + crypto + ["bootstub.c"])
Requires(bootstub_elf, gitversion)
bootstub_bin = panda_env.Objcopy(f"obj/bootstub.{PROJECT}.bin", bootstub_elf)
# Build main
main_elf = panda_env.Program(f"obj/{PROJECT}.elf", [startup, MAIN],
LINKFLAGS=["-Wl,--section-start,.isr_vector=0x8004000"] + flags)
Requires(main_elf, gitversion)
main_bin = panda_env.Objcopy(f"obj/{PROJECT}.bin", main_elf)
# Sign main