diff --git a/board/SConscript b/board/SConscript index b596f69c..902498ac 100644 --- a/board/SConscript +++ b/board/SConscript @@ -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