From 32a6bf570a4e4ed142fa575e4e739b269ec9ea75 Mon Sep 17 00:00:00 2001 From: Unmesh Deodhar Date: Mon, 23 Jan 2023 11:05:36 -0600 Subject: [PATCH] cache_components: Adding caching capability for SEV ovmf These changed will be consumed by SEV firmware caching job in the CI. This will help in reducing the CI runtime. Fixes: #6119 Signed-off-by: Unmesh Deodhar --- tools/packaging/static-build/cache_components.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/packaging/static-build/cache_components.sh b/tools/packaging/static-build/cache_components.sh index 193cf07c55..589c18d2d8 100755 --- a/tools/packaging/static-build/cache_components.sh +++ b/tools/packaging/static-build/cache_components.sh @@ -59,8 +59,13 @@ cache_firmware_artifacts() { current_firmware_image="$(get_ovmf_image_name)" current_firmware_version="$(get_from_kata_deps "externals.ovmf.tdx.version")" ;; + "ovmf") + firmware_tarball_name="kata-static-cc-sev-ovmf.tar.xz" + current_firmware_image="$(get_ovmf_image_name)" + current_firmware_version="$(get_from_kata_deps "externals.ovmf.sev.version")" + ;; *) - die "Not a valid firmware (td-shim, tdvf) wass set as the FIRMWARE environment variable." + die "Not a valid firmware (td-shim, tdvf, ovmf) wass set as the FIRMWARE environment variable." ;; esac @@ -163,6 +168,7 @@ Usage: $0 "[options]" * Requires FIRMWARE environment variable set, valid values are: * tdvf * td-shim + * ovmf -s Shim v2 cache -v Virtiofsd cache -r Rootfs Cache