Przeglądaj źródła

Exclude td/build artifacts from final firmware package.

Prevents old experimental bitstreams and build intermediates from being
shipped in the prod2u-door-temp-final package.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Codex Resource Selftest 4 miesięcy temu
rodzic
commit
a1611ae91a
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      tools/build_firmware_package.py

+ 4 - 1
tools/build_firmware_package.py

@@ -159,7 +159,10 @@ def build_firmware_package(
                 add_and_hash(adc, f"constraints/{adc.name}")
         for td_item in (ROOT / "td").rglob("*"):
             if td_item.is_file():
-                arcname = "td/" + "/".join(td_item.relative_to(ROOT / "td").parts)
+                rel = td_item.relative_to(ROOT / "td")
+                if rel.parts and rel.parts[0] == "build":
+                    continue
+                arcname = "td/" + "/".join(rel.parts)
                 add_and_hash(td_item, arcname)
 
         # Source closure manifest