Merge pull request #3812 from fidencio/wip/disable-clh-build-on-ppc64le

snap: Don't build cloud-hypevisor on ppc64le
This commit is contained in:
Julio Montes
2022-03-02 15:40:01 -06:00
committed by GitHub

View File

@@ -320,6 +320,8 @@ parts:
plugin: nil
after: [godeps]
override-build: |
arch=$(uname -m)
if [ "{$arch}" == "aarch64" ] || [ "${arch}" == "x64_64" ]; then
sudo apt-get -y update
sudo apt-get -y install ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --batch --yes --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
@@ -334,6 +336,7 @@ parts:
sudo -E NO_TTY=true make cloud-hypervisor-tarball
tar xvJpf build/kata-static-cloud-hypervisor.tar.xz -C /tmp/
install -D /tmp/opt/kata/bin/cloud-hypervisor ${SNAPCRAFT_PART_INSTALL}/usr/bin/cloud-hypervisor
fi
apps:
runtime: