Don't trigger fw rebuild on git hash change
parent
729b4db369
commit
27b4b57566
|
@ -136,6 +136,9 @@ panda_env = Environment(
|
||||||
# Common autogenerated includes
|
# Common autogenerated includes
|
||||||
version = f'const uint8_t gitversion[] = "{get_version(BUILDER, BUILD_TYPE)}";'
|
version = f'const uint8_t gitversion[] = "{get_version(BUILDER, BUILD_TYPE)}";'
|
||||||
gitversion = panda_env.Textfile("obj/gitversion.h", [version, ""])
|
gitversion = panda_env.Textfile("obj/gitversion.h", [version, ""])
|
||||||
|
Ignore('bootstub.o', gitversion)
|
||||||
|
Ignore('main.o', gitversion)
|
||||||
|
|
||||||
certs = [get_key_header(n) for n in ["debug", "release"]]
|
certs = [get_key_header(n) for n in ["debug", "release"]]
|
||||||
certheader = panda_env.Textfile("obj/cert.h", certs + [""])
|
certheader = panda_env.Textfile("obj/cert.h", certs + [""])
|
||||||
|
|
||||||
|
@ -144,13 +147,11 @@ startup = panda_env.Object(STARTUP_FILE)
|
||||||
# Bootstub
|
# Bootstub
|
||||||
crypto = ["../crypto/rsa.c", "../crypto/sha.c"]
|
crypto = ["../crypto/rsa.c", "../crypto/sha.c"]
|
||||||
bootstub_elf = panda_env.Program(f"obj/bootstub.{PROJECT}.elf", [startup] + crypto + ["bootstub.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)
|
bootstub_bin = panda_env.Objcopy(f"obj/bootstub.{PROJECT}.bin", bootstub_elf)
|
||||||
|
|
||||||
# Build main
|
# Build main
|
||||||
main_elf = panda_env.Program(f"obj/{PROJECT}.elf", [startup, MAIN],
|
main_elf = panda_env.Program(f"obj/{PROJECT}.elf", [startup, MAIN],
|
||||||
LINKFLAGS=["-Wl,--section-start,.isr_vector=0x8004000"] + flags)
|
LINKFLAGS=["-Wl,--section-start,.isr_vector=0x8004000"] + flags)
|
||||||
Requires(main_elf, gitversion)
|
|
||||||
main_bin = panda_env.Objcopy(f"obj/{PROJECT}.bin", main_elf)
|
main_bin = panda_env.Objcopy(f"obj/{PROJECT}.bin", main_elf)
|
||||||
|
|
||||||
# Sign main
|
# Sign main
|
||||||
|
|
Loading…
Reference in New Issue