mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 08:18:24 +00:00
Merge pull request #3628 from jongwu/snap_qemu_version
snap: update qemu version to 6.1.0 for arm
This commit is contained in:
@@ -262,24 +262,11 @@ parts:
|
|||||||
kata_dir=${GOPATH}/src/github.com/${SNAPCRAFT_PROJECT_NAME}/${SNAPCRAFT_PROJECT_NAME}
|
kata_dir=${GOPATH}/src/github.com/${SNAPCRAFT_PROJECT_NAME}/${SNAPCRAFT_PROJECT_NAME}
|
||||||
|
|
||||||
versions_file="${kata_dir}/versions.yaml"
|
versions_file="${kata_dir}/versions.yaml"
|
||||||
# arch-specific definition
|
|
||||||
case "$(uname -m)" in
|
|
||||||
"aarch64")
|
|
||||||
branch="$(${yq} r ${versions_file} assets.hypervisor.qemu.architecture.aarch64.version)"
|
|
||||||
url="$(${yq} r ${versions_file} assets.hypervisor.qemu.url)"
|
|
||||||
commit="$(${yq} r ${versions_file} assets.hypervisor.qemu.architecture.aarch64.commit)"
|
|
||||||
patches_dir="${kata_dir}/tools/packaging/qemu/patches/$(echo ${branch} | sed -e 's/.[[:digit:]]*$//' -e 's/^v//').x"
|
|
||||||
patches_version_dir="${kata_dir}/tools/packaging/qemu/patches/tag_patches/${branch}"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
branch="$(${yq} r ${versions_file} assets.hypervisor.qemu.version)"
|
branch="$(${yq} r ${versions_file} assets.hypervisor.qemu.version)"
|
||||||
url="$(${yq} r ${versions_file} assets.hypervisor.qemu.url)"
|
url="$(${yq} r ${versions_file} assets.hypervisor.qemu.url)"
|
||||||
commit=""
|
commit=""
|
||||||
patches_dir="${kata_dir}/tools/packaging/qemu/patches/$(echo ${branch} | sed -e 's/.[[:digit:]]*$//' -e 's/^v//').x"
|
patches_dir="${kata_dir}/tools/packaging/qemu/patches/$(echo ${branch} | sed -e 's/.[[:digit:]]*$//' -e 's/^v//').x"
|
||||||
patches_version_dir="${kata_dir}/tools/packaging/qemu/patches/tag_patches/${branch}"
|
patches_version_dir="${kata_dir}/tools/packaging/qemu/patches/tag_patches/${branch}"
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# download source
|
# download source
|
||||||
qemu_dir=${SNAPCRAFT_STAGE}/qemu
|
qemu_dir=${SNAPCRAFT_STAGE}/qemu
|
||||||
|
@@ -98,12 +98,6 @@ assets:
|
|||||||
uscan-url: >-
|
uscan-url: >-
|
||||||
https://github.com/qemu/qemu/tags
|
https://github.com/qemu/qemu/tags
|
||||||
.*/v?(\d\S+)\.tar\.gz
|
.*/v?(\d\S+)\.tar\.gz
|
||||||
architecture:
|
|
||||||
aarch64:
|
|
||||||
version: "v5.1.0"
|
|
||||||
branch: "master"
|
|
||||||
tag: "v5.1.0"
|
|
||||||
commit: "d0ed6a69d399ae193959225cdeaa9382746c91cc"
|
|
||||||
|
|
||||||
qemu-experimental:
|
qemu-experimental:
|
||||||
description: "QEMU with virtiofs support"
|
description: "QEMU with virtiofs support"
|
||||||
|
Reference in New Issue
Block a user