From 62e918131c5f76f328b10062da81679d543e2085 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 28 May 2021 13:05:51 +0200 Subject: [PATCH 1/4] qemu: Add version 6.0.0 from April 29th, 2021 1. https://www.qemu.org/download/#source 2. https://wiki.qemu.org/ChangeLog/6.0 --- qemu-6.0.0-0.build.sh | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 qemu-6.0.0-0.build.sh diff --git a/qemu-6.0.0-0.build.sh b/qemu-6.0.0-0.build.sh new file mode 100755 index 0000000..8145f37 --- /dev/null +++ b/qemu-6.0.0-0.build.sh @@ -0,0 +1,53 @@ +#! /bin/bash + +# COOKIE=$(mcookie|cut -c-8); grep -v V_GREP_ME $0 > /dev/shm/runme-$COOKIE.sh ; sleep 1; exec bash /dev/shm/runme-$COOKIE.sh +# TESTING=1 + +PKG=qemu +VERSION=6.0.0 +BUILD=0 +URL=https://download.qemu.org/qemu-$VERSION.tar.xz + +PREFIX=/pkg/$PKG-$VERSION-$BUILD +if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi + +set -xe +umask 022 + +BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp +test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR ) +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +exec $PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH + if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi +EOF +. $PREFIX/profile + +BUILDDIR=$PREFIX/build + +mkdir -p $BUILDDIR +cd $BUILDDIR + +AUDIODRIVERS=${AUDIODRIVERS:-alsa,oss,pa} +targets="--target-list=aarch64-linux-user,aarch64-softmmu,arm-linux-user,arm-softmmu,armeb-linux-user,i386-linux-user,i386-softmmu,ppc-linux-user,ppc-softmmu,ppc64-linux-user,ppc64-softmmu,x86_64-linux-user,x86_64-softmmu" + +test -e qemu-${VERSION}.tar.xz || wget --no-verbose $URL +test -d qemu-$VERSION || tar -xf qemu-${VERSION}.tar.xz +cd qemu-$VERSION + +./configure --prefix=${PREFIX} \ + $targets \ + --enable-system \ + --enable-jemalloc \ + --audio-drv-list=${AUDIODRIVERS} + +make -j $(($(nproc)*4/5+1)) +make install + +exit From 175d79fa40f5817a869a60ae96cfb4d8637b49e8 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 28 May 2021 13:27:08 +0200 Subject: [PATCH 2/4] qemu-6.0.0-0: Build with all threads --- qemu-6.0.0-0.build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qemu-6.0.0-0.build.sh b/qemu-6.0.0-0.build.sh index 8145f37..b9d4713 100755 --- a/qemu-6.0.0-0.build.sh +++ b/qemu-6.0.0-0.build.sh @@ -47,7 +47,9 @@ cd qemu-$VERSION --enable-jemalloc \ --audio-drv-list=${AUDIODRIVERS} -make -j $(($(nproc)*4/5+1)) +make -j $(nproc) make install + + exit From 3ee69df94b4cc5d6a8a90e825c3352d10e95de20 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 28 May 2021 13:27:35 +0200 Subject: [PATCH 3/4] qemu-6.0.0-0: Build virtio-fs daemon (virtiofsd) From the [Web site][1]: > Virtio-fs is a shared file system that lets virtual machines access a > directory tree on the host. Unlike existing approaches, it is designed > to offer local file system semantics and performance. [1]: https://virtio-fs.gitlab.io/ --- qemu-6.0.0-0.build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-6.0.0-0.build.sh b/qemu-6.0.0-0.build.sh index b9d4713..fbf8f10 100755 --- a/qemu-6.0.0-0.build.sh +++ b/qemu-6.0.0-0.build.sh @@ -48,6 +48,7 @@ cd qemu-$VERSION --audio-drv-list=${AUDIODRIVERS} make -j $(nproc) +make -j $(nproc) virtiofsd make install From 87087940bf5ad450bd814f1256431daac200fca5 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 28 May 2021 15:10:16 +0200 Subject: [PATCH 4/4] qemu-6.0.0-0: Enable virtiofsd --- qemu-6.0.0-0.build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-6.0.0-0.build.sh b/qemu-6.0.0-0.build.sh index fbf8f10..4bcb7b2 100755 --- a/qemu-6.0.0-0.build.sh +++ b/qemu-6.0.0-0.build.sh @@ -45,10 +45,10 @@ cd qemu-$VERSION $targets \ --enable-system \ --enable-jemalloc \ - --audio-drv-list=${AUDIODRIVERS} + --audio-drv-list=${AUDIODRIVERS} \ + --enable-virtiofsd make -j $(nproc) -make -j $(nproc) virtiofsd make install