mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-25 18:53:44 +00:00
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:
@@ -320,6 +320,8 @@ parts:
|
|||||||
plugin: nil
|
plugin: nil
|
||||||
after: [godeps]
|
after: [godeps]
|
||||||
override-build: |
|
override-build: |
|
||||||
|
arch=$(uname -m)
|
||||||
|
if [ "{$arch}" == "aarch64" ] || [ "${arch}" == "x64_64" ]; then
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install ca-certificates curl gnupg lsb-release
|
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
|
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
|
sudo -E NO_TTY=true make cloud-hypervisor-tarball
|
||||||
tar xvJpf build/kata-static-cloud-hypervisor.tar.xz -C /tmp/
|
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
|
install -D /tmp/opt/kata/bin/cloud-hypervisor ${SNAPCRAFT_PART_INSTALL}/usr/bin/cloud-hypervisor
|
||||||
|
fi
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
runtime:
|
runtime:
|
||||||
|
Reference in New Issue
Block a user