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 <Hyounggyu.Choi@ibm.com>
This commit is contained in:
Hyounggyu Choi 2024-06-18 13:23:00 +02:00
parent 7f71eac6de
commit 856a1f72c6

View File

@ -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}" \