From 856a1f72c6a01e90fb22460293c9075185653105 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Tue, 18 Jun 2024 13:23:00 +0200 Subject: [PATCH] packaging: Set ATTESTER to se-attester for guest components on s390x This commit allows the guest-components builder to only build se-attester on s390x. Signed-off-by: Hyounggyu Choi --- .../packaging/static-build/coco-guest-components/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/packaging/static-build/coco-guest-components/build.sh b/tools/packaging/static-build/coco-guest-components/build.sh index c68ccbdfa8..ff7143c54d 100755 --- a/tools/packaging/static-build/coco-guest-components/build.sh +++ b/tools/packaging/static-build/coco-guest-components/build.sh @@ -41,9 +41,13 @@ docker pull ${container_image} || \ # Temp settings until we have a matching TEE_PLATFORM TEE_PLATFORM="" RESOURCE_PROVIDER="kbs,sev" -ATTESTER="none" # snp-attester and tdx-attester crates require packages only available on x86 -[ "$(uname -m)" == "x86_64" ] && ATTESTER="snp-attester,tdx-attester" +# se-attester crate requires packages only available on s390x +case "$(uname -m)" in + x86_64) ATTESTER="snp-attester,tdx-attester" ;; + s390x) ATTESTER="se-attester" ;; + *) ATTESTER="none" ;; +esac docker run --rm -i -v "${repo_root_dir}:${repo_root_dir}" \ -w "${PWD}" \