|
|
4a2fec |
#!/bin/sh
|
|
|
4a2fec |
|
|
|
4a2fec |
_prefix=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
_libdir=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
_sysconfdir=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
_localstatedir=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
_libexecdir=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
qemudocdir=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
pkgname=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
arch=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
nvr=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
optflags=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_fdt=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_gluster=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_guest_agent=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_numa=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_rbd=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_rdma=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_seccomp=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_spice=$1
|
|
|
4a2fec |
shift
|
|
|
1bdc94 |
have_opengl=$1
|
|
|
1bdc94 |
shift
|
|
|
4a2fec |
have_usbredir=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_tcmalloc=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_vxhs=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_vtd=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_live_block_ops=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
have_vhost_user=$1
|
|
|
4a2fec |
shift
|
|
|
4a2fec |
is_rhv=$1
|
|
|
4a2fec |
shift
|
|
|
1bdc94 |
have_malloc_trim=$1
|
|
|
1bdc94 |
shift
|
|
|
4a2fec |
|
|
|
4a2fec |
if [ "$have_rbd" == "enable" ]; then
|
|
|
4a2fec |
rbd_driver=rbd,
|
|
|
4a2fec |
fi
|
|
|
4a2fec |
|
|
|
4a2fec |
if [ "$have_gluster" == "enable" ]; then
|
|
|
4a2fec |
gluster_driver=gluster,
|
|
|
4a2fec |
fi
|
|
|
4a2fec |
|
|
|
4a2fec |
if [ "$have_vxhs" == "enable" ]; then
|
|
|
4a2fec |
vxhs_driver=vxhs,
|
|
|
4a2fec |
fi
|
|
|
4a2fec |
|
|
|
4a2fec |
if [ "$is_rhv" == "enable" ]; then
|
|
|
4a2fec |
rhel_target=rhv
|
|
|
4a2fec |
else
|
|
|
4a2fec |
rhel_target=rhel
|
|
|
4a2fec |
fi
|
|
|
4a2fec |
|
|
|
4a2fec |
./configure \
|
|
|
4a2fec |
--prefix=${_prefix} \
|
|
|
4a2fec |
--libdir=${_libdir} \
|
|
|
4a2fec |
--sysconfdir=${_sysconfdir} \
|
|
|
4a2fec |
--interp-prefix=${_prefix}/qemu-%M \
|
|
|
4a2fec |
--localstatedir=${_localstatedir} \
|
|
|
4a2fec |
--docdir=${qemudocdir} \
|
|
|
4a2fec |
--libexecdir=${_libexecdir} \
|
|
|
1bdc94 |
--firmwarepath=${_prefix}/share/qemu-firmware \
|
|
|
4a2fec |
--extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
|
|
|
4a2fec |
--extra-cflags="${optflags} -fPIE -DPIE" \
|
|
|
4a2fec |
--with-pkgversion=${nvr} \
|
|
|
4a2fec |
--with-confsuffix=/${pkgname} \
|
|
|
1bdc94 |
--with-git=git \
|
|
|
4a2fec |
--with-coroutine=ucontext \
|
|
|
4a2fec |
--tls-priority=NORMAL \
|
|
|
4a2fec |
--disable-bluez \
|
|
|
4a2fec |
--disable-brlapi \
|
|
|
4a2fec |
--disable-cap-ng \
|
|
|
4a2fec |
--enable-coroutine-pool \
|
|
|
4a2fec |
--enable-curl \
|
|
|
4a2fec |
--disable-curses \
|
|
|
4a2fec |
--disable-debug-tcg \
|
|
|
4a2fec |
--enable-docs \
|
|
|
4a2fec |
--disable-gtk \
|
|
|
4a2fec |
--enable-kvm \
|
|
|
4a2fec |
--enable-libiscsi \
|
|
|
4a2fec |
--disable-libnfs \
|
|
|
4a2fec |
--enable-libssh2 \
|
|
|
4a2fec |
--enable-libusb \
|
|
|
4a2fec |
--disable-bzip2 \
|
|
|
4a2fec |
--enable-linux-aio \
|
|
|
4a2fec |
--disable-live-block-migration \
|
|
|
4a2fec |
--enable-lzo \
|
|
|
4a2fec |
--enable-pie \
|
|
|
4a2fec |
--disable-qom-cast-debug \
|
|
|
4a2fec |
--disable-sdl \
|
|
|
4a2fec |
--enable-snappy \
|
|
|
4a2fec |
--disable-sparse \
|
|
|
4a2fec |
--disable-strip \
|
|
|
4a2fec |
--disable-tpm \
|
|
|
4a2fec |
--enable-trace-backend=dtrace \
|
|
|
4a2fec |
--disable-vde \
|
|
|
4a2fec |
--disable-vhost-scsi \
|
|
|
4a2fec |
--disable-virtfs \
|
|
|
4a2fec |
--disable-vnc-jpeg \
|
|
|
4a2fec |
--disable-vte \
|
|
|
4a2fec |
--enable-vnc-png \
|
|
|
4a2fec |
--enable-vnc-sasl \
|
|
|
4a2fec |
--enable-werror \
|
|
|
4a2fec |
--disable-xen \
|
|
|
4a2fec |
--disable-xfsctl \
|
|
|
4a2fec |
--enable-gnutls \
|
|
|
1bdc94 |
--enable-gcrypt \
|
|
|
1bdc94 |
--disable-nettle \
|
|
|
4a2fec |
--enable-attr \
|
|
|
4a2fec |
--disable-bsd-user \
|
|
|
4a2fec |
--disable-cocoa \
|
|
|
4a2fec |
--enable-debug-info \
|
|
|
4a2fec |
--disable-guest-agent-msi \
|
|
|
4a2fec |
--disable-hax \
|
|
|
4a2fec |
--disable-jemalloc \
|
|
|
4a2fec |
--disable-linux-user \
|
|
|
4a2fec |
--disable-modules \
|
|
|
4a2fec |
--disable-netmap \
|
|
|
4a2fec |
--disable-replication \
|
|
|
4a2fec |
--enable-system \
|
|
|
4a2fec |
--enable-tools \
|
|
|
4a2fec |
--disable-user \
|
|
|
4a2fec |
--enable-vhost-net \
|
|
|
4a2fec |
--enable-vhost-vsock \
|
|
|
4a2fec |
--enable-vnc \
|
|
|
4a2fec |
--enable-mpath \
|
|
|
4a2fec |
--disable-virglrenderer \
|
|
|
4a2fec |
--disable-xen-pci-passthrough \
|
|
|
4a2fec |
--enable-tcg \
|
|
|
4a2fec |
--disable-crypto-afalg \
|
|
|
4a2fec |
--${have_fdt}-fdt \
|
|
|
4a2fec |
--${have_gluster}-glusterfs \
|
|
|
4a2fec |
--${have_guest_agent}-guest-agent \
|
|
|
4a2fec |
--${have_numa}-numa \
|
|
|
4a2fec |
--${have_rbd}-rbd \
|
|
|
4a2fec |
--${have_rdma}-rdma \
|
|
|
4a2fec |
--${have_seccomp}-seccomp \
|
|
|
4a2fec |
--${have_spice}-spice \
|
|
|
4a2fec |
--${have_spice}-smartcard \
|
|
|
1bdc94 |
--${have_opengl}-opengl \
|
|
|
4a2fec |
--${have_usbredir}-usb-redir \
|
|
|
4a2fec |
--${have_tcmalloc}-tcmalloc \
|
|
|
4a2fec |
--${have_vxhs}-vxhs \
|
|
|
4a2fec |
--${have_vtd}-vtd \
|
|
|
4a2fec |
--${have_live_block_ops}-live-block-ops \
|
|
|
4a2fec |
--${have_vhost_user}-vhost-user \
|
|
|
1bdc94 |
--disable-sanitizers \
|
|
|
1bdc94 |
--disable-hvf \
|
|
|
1bdc94 |
--disable-whpx \
|
|
|
1bdc94 |
--${have_malloc_trim}-malloc-trim \
|
|
|
1bdc94 |
--disable-membarrier \
|
|
|
1bdc94 |
--enable-vhost-crypto \
|
|
|
1bdc94 |
--disable-libxml2 \
|
|
|
1bdc94 |
--enable-capstone \
|
|
|
4a2fec |
--audio-drv-list= \
|
|
|
1bdc94 |
--enable-git-update \
|
|
|
1bdc94 |
--block-drv-rw-whitelist=qcow2,raw,file,host_device,nbd,iscsi,${gluster_driver}${rbd_driver}${vxhs_driver}blkdebug,luks,null-co,nvme,copy-on-read,throttle \
|
|
|
4a2fec |
--block-drv-ro-whitelist=vmdk,vhdx,vpc,https,ssh \
|
|
|
4a2fec |
--rhel-target=${rhel_target} \
|
|
|
4a2fec |
"$@"
|