From 60cddbc9b0ff8230a4c7bd3fd4e5a05de5a90075 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Tue, 17 Oct 2023 16:03:38 -0400 Subject: [PATCH] build an rot-all TUF repo with staging/dev and prod/rel images --- .github/buildomat/jobs/tuf-repo.sh | 62 ++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/.github/buildomat/jobs/tuf-repo.sh b/.github/buildomat/jobs/tuf-repo.sh index e169bebff64..f937c746e20 100644 --- a/.github/buildomat/jobs/tuf-repo.sh +++ b/.github/buildomat/jobs/tuf-repo.sh @@ -25,6 +25,21 @@ #: job = "helios / build trampoline OS image" #: #: [[publish]] +#: series = "rot-all" +#: name = "repo.zip.parta" +#: from_output = "/work/repo-rot-all.zip.parta" +#: +#: [[publish]] +#: series = "rot-all" +#: name = "repo.zip.partb" +#: from_output = "/work/repo-rot-all.zip.partb" +#: +#: [[publish]] +#: series = "rot-all" +#: name = "repo.zip.sha256.txt" +#: from_output = "/work/repo-rot-all.zip.sha256.txt" +#: +#: [[publish]] #: series = "rot-prod-rel" #: name = "repo.zip.parta" #: from_output = "/work/repo-rot-prod-rel.zip.parta" @@ -168,6 +183,38 @@ caboose_util_rot() { } SERIES_LIST=() + +# Create an initial `manifest-rot-all.toml` containing the SP images for all +# boards. While we still need to build multiple TUF repos, +# `add_hubris_artifacts` below will append RoT images to this manifest (in +# addition to the single-RoT manifest it creates). +prep_rot_all_series() { + series="rot-all" + + SERIES_LIST+=("$series") + + manifest=/work/manifest-$series.toml + cp /work/manifest.toml "$manifest" + + for board_rev in "${ALL_BOARDS[@]}"; do + board=${board_rev%-?} + tufaceous_board=${board//sidecar/switch} + sp_image="/work/hubris/${board_rev}.zip" + sp_caboose_version=$(/work/caboose-util read-version "$sp_image") + sp_caboose_board=$(/work/caboose-util read-board "$sp_image") + + cat >>"$manifest" <>"$manifest_rot_all" <