From 035ba0808b5e8e96350b071335228a662e181fe5 Mon Sep 17 00:00:00 2001 From: Tuan Hoang Date: Wed, 20 Feb 2019 13:08:24 +0100 Subject: [PATCH] snap: add support for s390x This allows running packaging CI scripts on s390x to create snap image. Fixes #341 Signed-off-by: Tuan Hoang --- .ci/lib.sh | 4 ++++ snap/snapcraft.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.ci/lib.sh b/.ci/lib.sh index 200fd71957..d8a1b2d880 100644 --- a/.ci/lib.sh +++ b/.ci/lib.sh @@ -43,6 +43,10 @@ install_yq() { goarch=ppc64le ;; + "s390x") + goarch=s390x + ;; + "*") echo "Arch $(arch) not supported" exit diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 20d0998af3..0dec4b096b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -203,6 +203,10 @@ parts: config="arm64_kata_kvm_${x_version}" ;; + "s390x") + config="s390_kata_kvm_${x_version}" + ;; + *) echo "ERROR: Unsupported architecture $(arch)" exit 1