Browse Source

qemu update v3.1.0

- discontinued ppcemb (upstream)
- move to jemalloc
- add risc-v 64bit
- add new qemu options

Signed-off-by: virtbuilder_pel7ppc64bebuilder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
9d2c7ea1ad
  1. 56
      SPECS/qemu.spec

56
SPECS/qemu.spec

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
Name: qemu
Version: 3.0.0
Version: 3.1.0
Release: 1%{?dist}
Summary: QEMU is a FAST! processor emulator
License: GPLv2+ and LGPLv2+ and BSD
@ -249,14 +249,14 @@ emulation speed by using dynamic translation. @@ -249,14 +249,14 @@ emulation speed by using dynamic translation.
This package provides the system emulator for PPC64 systems.


%package system-ppcembeded
Summary: QEMU system emulator for PPC
%package system-riscv64
Summary: QEMU system emulator for RISC-V
Group: Development/Tools
Requires: %{name}-common = %{version}-%{release}
%description system-ppcembeded
%description system-riscv64
QEMU is a generic and open source processor emulator which achieves a good
emulation speed by using dynamic translation.
This package provides the system emulator for PPC EMBEDED systems.
This package provides the system emulator for RISC-V systems.


%package system-aarch64
@ -319,21 +319,21 @@ tracebackends="dtrace" @@ -319,21 +319,21 @@ tracebackends="dtrace"
%ifarch ppc64
cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -mquad-memory -mquad-memory-atomic -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2"
nativebuildarch="ppc64-softmmu"
emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu"
emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif
%ifarch ppc64le
cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -march=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2"
nativebuildarch="ppc64-softmmu"
emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu"
emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif
%ifarch x86_64
cflags="-m64 -O3 -g -march=core2 -mtune=core2 -mmmx -msse -msse2 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2"
nativebuildarch="x86_64-softmmu"
emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu"
emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif
%ifarch aarch64
nativebuildarch="aarch64-softmmu"
emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu"
emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu"
%endif


@ -341,14 +341,15 @@ emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mi @@ -341,14 +341,15 @@ emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mi
./configure \
--prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --interp-prefix=%{_prefix}/qemu-%%M \
--localstatedir=%{_localstatedir} --libexecdir=%{_libexecdir} --with-pkgversion=%{name}-%{version}-%{release} \
--disable-strip --enable-pie --enable-numa --disable-werror --disable-xen --enable-curl --enable-tcmalloc \
--enable-glusterfs --enable-libiscsi --enable-virtfs --enable-rdma --enable-replication --enable-libssh2 \
--enable-tpm --enable-smartcard --enable-lzo --enable-bzip2 --enable-libusb --enable-usb-redir --enable-bluez \
--disable-gtk --disable-vte --disable-brlapi --disable-opengl --enable-live-block-migration \
--enable-attr --enable-nettle --enable-vhost-scsi --enable-vhost-net --enable-vhost-vsock --enable-vhost-crypto \
--disable-strip --enable-pie --enable-numa --disable-werror --disable-xen --enable-curl --enable-jemalloc \
--enable-glusterfs --enable-libiscsi --enable-virtfs --enable-rdma --enable-pvrdma --enable-replication --enable-libssh2 \
--enable-tpm --enable-smartcard --enable-lzo --enable-bzip2 --enable-libusb --enable-usb-redir --enable-bluez --enable-libnfs \
--disable-gtk --disable-vte --disable-brlapi --enable-live-block-migration --enable-mpath --enable-membarrier --enable-opengl \
--enable-attr --enable-nettle --enable-vhost-scsi --enable-vhost-net --enable-vhost-vsock --enable-vhost-crypto --enable-crypto-afalg \
--enable-xfsctl --enable-linux-aio --enable-vvfat --enable-coroutine-pool --enable-cap-ng \
--enable-debug-info \
--enable-curses --enable-vnc --enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-curl --enable-fdt \
--audio-drv-list=pa,sdl,alsa,oss --enable-trace-backend=$tracebackends --with-sdlabi="2.0" --with-gtkabi="3.0" \
--audio-drv-list=pa,sdl,alsa,oss --enable-trace-backend=$tracebackends --with-sdlabi="2.0" \
--block-drv-rw-whitelist=qcow2,raw,file,host_device,nbd,iscsi,gluster,rdb,blkdebug,luks,null-co,https,ssh \
--block-drv-ro-whitelist=vmdk,vhdx,vpc \
--extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
@ -362,19 +363,20 @@ make DESTDIR=%{buildroot} install @@ -362,19 +363,20 @@ make DESTDIR=%{buildroot} install
./configure \
--prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --interp-prefix=%{_prefix}/qemu-%%M \
--localstatedir=%{_localstatedir} --libexecdir=%{_libexecdir} --with-pkgversion=%{name}-%{version}-%{release} \
--disable-strip --enable-pie --enable-numa --disable-werror --disable-xen --enable-curl --enable-tcmalloc \
--enable-glusterfs --enable-libiscsi --enable-virtfs --enable-rdma --enable-replication --enable-libssh2 \
--enable-tpm --enable-smartcard --enable-lzo --enable-bzip2 --enable-libusb --enable-usb-redir --enable-bluez \
--disable-gtk --disable-vte --disable-brlapi --disable-opengl --enable-live-block-migration \
--enable-attr --enable-nettle --enable-vhost-net --enable-vhost-vsock --enable-vhost-crypto \
--disable-strip --enable-pie --enable-numa --disable-werror --disable-xen --enable-curl --enable-jemalloc \
--enable-glusterfs --enable-libiscsi --enable-virtfs --enable-rdma --enable-pvrdma --enable-replication --enable-libssh2 \
--enable-tpm --enable-smartcard --enable-lzo --enable-bzip2 --enable-libusb --enable-usb-redir --enable-bluez --enable-libnfs \
--disable-gtk --disable-vte --disable-brlapi --enable-live-block-migration --enable-mpath --enable-membarrier --enable-opengl \
--enable-attr --enable-nettle --enable-vhost-scsi --enable-vhost-net --enable-vhost-vsock --enable-vhost-crypto --enable-crypto-afalg \
--enable-xfsctl --enable-linux-aio --enable-vvfat --enable-coroutine-pool --enable-cap-ng \
--enable-debug-info \
--enable-curses --enable-vnc --enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-curl --enable-fdt \
--audio-drv-list=pa,sdl,alsa,oss --enable-trace-backend=$tracebackends --with-sdlabi="2.0" --with-gtkabi="3.0" \
--audio-drv-list=pa,sdl,alsa,oss --enable-trace-backend=$tracebackends --with-sdlabi="2.0" \
--block-drv-rw-whitelist=qcow2,raw,file,host_device,nbd,iscsi,gluster,rdb,blkdebug,luks,null-co,https,ssh \
--block-drv-ro-whitelist=vmdk,vhdx,vpc \
--extra-ldflags="$extraldflags -pie -Wl,-z,relro -Wl,-z,now" \
--extra-cflags="$cflags -Wall" \
--target-list="$emulatedbuildarch" --enable-kvm --enable-tcg --disable-spice \
--target-list="$emulatedbuildarch" --enable-kvm --enable-tcg --enable-tcg-interpreter --enable-spice \
"$@"
make V=1 %{?_smp_mflags} $buildldflags
make DESTDIR=%{buildroot} install
@ -570,6 +572,7 @@ getent passwd qemu >/dev/null || \ @@ -570,6 +572,7 @@ getent passwd qemu >/dev/null || \

#%files common -f %{name}.lang
%files common
%{_bindir}/qemu-edid
%{_bindir}/qemu-keymap
%{_bindir}/qemu-pr-helper
%dir %{qemudocdir}
@ -593,6 +596,7 @@ getent passwd qemu >/dev/null || \ @@ -593,6 +596,7 @@ getent passwd qemu >/dev/null || \
%{_mandir}/man1/virtfs-proxy-helper.1*
%{_mandir}/man7/qemu-qmp-ref.7.gz
%{_mandir}/man7/qemu-block-drivers.7.gz
%{_mandir}/man7/qemu-cpu-models.7.gz
%{_bindir}/virtfs-proxy-helper
%attr(4755, root, root) %{_libexecdir}/qemu-bridge-helper
%config(noreplace) %{_sysconfdir}/sasl2/qemu.conf
@ -731,10 +735,10 @@ getent passwd qemu >/dev/null || \ @@ -731,10 +735,10 @@ getent passwd qemu >/dev/null || \
%{_mandir}/man1/qemu-system-ppc64.1*


%files system-ppcembeded
%{_bindir}/qemu-system-ppcemb
%{_datadir}/systemtap/tapset/qemu-system-ppcemb*.stp
%{_mandir}/man1/qemu-system-ppcemb.1*
%files system-riscv64
%{_bindir}/qemu-system-riscv64
%{_datadir}/systemtap/tapset/qemu-system-riscv64*.stp
%{_mandir}/man1/qemu-system-riscv64.1*


%files system-aarch64

Loading…
Cancel
Save