Preserve bootstub binary output modes

This commit is contained in:
Dom
2026-10-23 01:17:30 -05:00
parent 4e74d8890d
commit 22b2f2a898
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -121,7 +121,9 @@ def build_project(project_name, project, main, extra_flags):
"./board/crypto/sha.c",
"./board/bootstub.c",
])
bs_env.Objcopy(f"./board/obj/bootstub.{project_name}.bin", bs_elf)
bs_bin = bs_env.Objcopy(f"./board/obj/bootstub.{project_name}.bin", bs_elf)
# Bootstubs are data images; objcopy must not inherit the ELF executable mode.
bs_env.AddPostAction(bs_bin, Chmod("$TARGET", 0o644))
# Build + sign main (aka app)
main_elf = env.Program(f"{project_dir}/main.elf", [
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "9607cce41ddb63ad2b675c814ab30f35221db575ea8dfa5cffb1ccad06774efb", "schema_version": 1}
{"protected_inventory_sha256": "3f3d31e4154b23c5b9591d61b3cf9799c485a830cfd6ab9ddd33a7a5028a4c0d", "schema_version": 1}