Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
correct tarball build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwu committed Nov 14, 2023
1 parent b1c8cdd commit 07230a9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .ci/install_kata_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ main() {
experimental)
build_and_install_kernel "kernel-experimental"
;;
arm-experimental)
build_and_install_kernel "kernel-arm-experimental"
rm -f /opt/kata/share/kata-containers/vmlinux.container
ln -s /opt/kata/share/kata-containers/vmlinux-arch-experimental.container /opt/kata/share/kata-containers/vmlinux.container
;;
vanilla)
build_and_install_kernel "kernel"
;;
Expand Down
9 changes: 7 additions & 2 deletions .ci/install_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,16 @@ main() {
vanilla)
qemu_type="qemu"
;;
arm-experimental)
qemu_type="qemu-arm-experimental"
;;
*)
die_unsupported_qemu_type "$qemu_type"
;;
esac

case ${QEMU_ARCH} in
"aarch64"|"ppc64le")
"ppc64le")
# We're still no there for using the kata-deploy
# scripts with ppc64le and aarch64.
CURRENT_QEMU_VERSION=$(get_version "assets.hypervisor.qemu.version")
Expand All @@ -110,8 +113,10 @@ main() {

build_and_install_qemu
;;
"x86_64"|"s390x")
"aarch64"|"x86_64"|"s390x")
build_static_artifact_and_install "${qemu_type}"
rm -f /opt/kata/bin/qemu-system-aarch64
ln -s /opt/kata/bin/qemu-system-aarch64-arm-experimental /opt/kata/bin/qemu-system-aarch64
;;
*)
die "Architecture ${QEMU_ARCH} not supported"
Expand Down
3 changes: 2 additions & 1 deletion .ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ function build_static_artifact_and_install() {

clone_katacontainers_repo

pushd "$katacontainers_repo_dir" >/dev/null
pushd "$katacontainers_repo_dir/tools/packaging/kata-deploy/local-build" >/dev/null
sudo -E PATH=$PATH make "$make_target"
pwd
sudo tar -xvJpf "build/${tarball}" -C "${destdir}"
sudo rm -rf "build/"
popd >/dev/null
Expand Down

0 comments on commit 07230a9

Please sign in to comment.