From 419d813427734c42b6a4a057af9c8c54c024f36c Mon Sep 17 00:00:00 2001 From: Jianyong Wu Date: Mon, 22 Nov 2021 16:49:09 +0800 Subject: [PATCH] snap: update qemu version to 6.1.0 for arm Update qemu version of snap for arm to 6.1.0 thus the arch specific qemu version for arm needs clean up. Fixes: #3627 Signed-off-by: Jianyong Wu --- snap/snapcraft.yaml | 23 +++++------------------ versions.yaml | 6 ------ 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index bd75f92056..d8819736f4 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -262,24 +262,11 @@ parts: kata_dir=${GOPATH}/src/github.com/${SNAPCRAFT_PROJECT_NAME}/${SNAPCRAFT_PROJECT_NAME} 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)" - url="$(${yq} r ${versions_file} assets.hypervisor.qemu.url)" - 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}" - ;; - esac + branch="$(${yq} r ${versions_file} assets.hypervisor.qemu.version)" + url="$(${yq} r ${versions_file} assets.hypervisor.qemu.url)" + 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}" # download source qemu_dir=${SNAPCRAFT_STAGE}/qemu diff --git a/versions.yaml b/versions.yaml index ec0c070a5c..8e8ee9b36f 100644 --- a/versions.yaml +++ b/versions.yaml @@ -98,12 +98,6 @@ assets: uscan-url: >- https://github.com/qemu/qemu/tags .*/v?(\d\S+)\.tar\.gz - architecture: - aarch64: - version: "v5.1.0" - branch: "master" - tag: "v5.1.0" - commit: "d0ed6a69d399ae193959225cdeaa9382746c91cc" qemu-experimental: description: "QEMU with virtiofs support"