libvirt/build.sh

67 lines
1.4 KiB
Bash
Raw Normal View History

2023-12-27 00:31:19 +00:00
#!/bin/bash
QEMU_VERSION=8.2.0
set -e
if ! [[ -f qemu-${QEMU_VERSION}.tar.xz ]]
then
curl -LJO https://download.qemu.org/qemu-${QEMU_VERSION}.tar.xz
fi
if ! [[ -d qemu-${QEMU_VERSION} ]]
then
tar xvJf qemu-${QEMU_VERSION}.tar.xz
fi
cd qemu-${QEMU_VERSION}
rm -rf build
mkdir -p build
cd build
../configure \
--prefix=qemu \
--localstatedir=var \
--enable-kvm \
--enable-gnutls \
--enable-guest-agent \
--enable-iconv \
--enable-kvm \
--enable-libiscsi \
--enable-libpmem \
--enable-libssh \
--enable-libusb \
--enable-libudev \
--enable-linux-aio \
--enable-lzo \
--enable-malloc-trim \
--enable-modules \
--enable-mpath \
--enable-smartcard \
--enable-spice \
--enable-spice-protocol \
--enable-system \
--enable-tcg \
--enable-tools \
--enable-tpm \
--enable-trace-backend=dtrace \
--enable-virtiofsd \
--enable-vhost-kernel \
--enable-vhost-net \
--enable-vhost-user \
--enable-vhost-user-blk-server \
--enable-vhost-vdpa \
--enable-vhost-vsock \
--enable-vnc \
--enable-vnc-png \
--enable-vnc-sasl \
--enable-werror \
--enable-xkbcommon \
--enable-attr \
--enable-avx2 \
--enable-cap-ng \
--enable-capstone=internal \
--enable-coroutine-pool \
--enable-curl \
--enable-debug-info \
--enable-docs \
make -j 8
make install DESTDIR=/opt
cd /opt
tar -cJf /src/qemu/${QEMU_VERSION}.tar.xz ./