mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-01 15:57:20 +00:00
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:
parent
7f71eac6de
commit
856a1f72c6
@ -41,9 +41,13 @@ docker pull ${container_image} || \
|
|||||||
# Temp settings until we have a matching TEE_PLATFORM
|
# Temp settings until we have a matching TEE_PLATFORM
|
||||||
TEE_PLATFORM=""
|
TEE_PLATFORM=""
|
||||||
RESOURCE_PROVIDER="kbs,sev"
|
RESOURCE_PROVIDER="kbs,sev"
|
||||||
ATTESTER="none"
|
|
||||||
# snp-attester and tdx-attester crates require packages only available on x86
|
# 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}" \
|
docker run --rm -i -v "${repo_root_dir}:${repo_root_dir}" \
|
||||||
-w "${PWD}" \
|
-w "${PWD}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user