qemu/common.inc
Dario Faggioli 3014c841a2 - roms: Build ipxe with NO_WERROR=1 (bsc#1227960)
- Update to version 9.0.2:
  Full list of backports here:
   https://lore.kernel.org/qemu-devel/1718081053.366429.1238758.nullmailer@tls.msk.ru/
    
  A selection of them is reported here too:
   hw/nvme: fix number of PIDs for FDP RUH update
   sphinx/qapidoc: Fix to generate doc for explicit, unboxed arguments
   char-stdio: Restore blocking mode of stdout on exit
   virtio: remove virtio_tswap16s() call in vring_packed_event_read()
   virtio-pci: Fix the failure process in kvm_virtio_pci_vector_use_one()
   tcg/optimize: Fix TCG_COND_TST* simplification of setcond2
   block: Parse filenames only when explicitly requested
   iotests/270: Don't store data-file with json: prefix in image
   iotests/244: Don't store data-file with protocol in image
   qcow2: Don't open data_file with BDRV_O_NO_IO
   tests: add testing of parameter=3D1 for SMP topology (bsc#1228169)
   hw/core: allow parameter=3D1 for SMP topology on any machine
   ...

OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=851
2024-07-24 10:26:49 +00:00

103 lines
2.2 KiB
PHP

%define _buildshell /bin/bash
%define sbver 1.16.3_3_gc13ff2cd
%define srcdir %{_builddir}/%buildsubdir
%define blddir %srcdir/build
%define build_x86_firmware 0
%define build_ppc_firmware 0
%define build_opensbi_firmware 0
%define kvm_available 0
%define legacy_qemu_kvm 0
%define force_fit_virtio_pxe_rom 1
%define with_xen 0%{!?_without_xen:1}
%if "%{?distribution}" == ""
%define distro private-build
%else
%define distro %{distribution}
%endif
# Items to exclude in ALP-based products
%if 0%{?suse_version} == 1600
%define with_xen 0
%endif
%bcond_with system_membarrier
%bcond_with malloc_trim
%bcond_with chkqtests
%if 0%{?suse_version} > 1600
# canokey is an openSUSE thing, not a SLE one
%ifarch x86_64
%bcond_without canokey
%else
%bcond_with canokey
%endif
%endif
%if 0%{?suse_version} > 1600
# XDP seems not to be there in SLE...
%bcond_without xdp
%else
%bcond_with xdp
%endif
# Make it possible to build without spice (for SLE/Leap Micro)
%bcond_without spice
# We do not have the stuff needed to compile rutabaga support.
# If/when we want to do it, we can check how it's done here:
# https://src.fedoraproject.org/rpms/qemu/c/deeb9357cb751df21c566fd8408936cfb034d43b?branch=rawhide
%define has_rutabaga_gfx 0
%define has_virtiofsd 1
# Upstream virtiofsd does not even build on 32 bit systems
%ifarch %ix86 %arm
%define has_virtiofsd 0
%endif
# non-x86 archs still seem to have some issues with Link Time Optimization
%ifnarch %ix86 x86_64
%define _lto_cflags %{nil}
%endif
%ifarch aarch64
%define qemu_arch aarch64
%endif
%ifarch %arm
%define qemu_arch arm
%endif
%ifarch %ix86
%define qemu_arch i386
%endif
%ifarch ppc64
%define qemu_arch ppc64
%endif
%ifarch ppc
%define qemu_arch ppc
%endif
%ifarch ppc64le
%define qemu_arch ppc64le
%endif
%ifarch riscv64
%define qemu_arch riscv64
%endif
%ifarch s390x
%define qemu_arch s390x
%endif
%ifarch x86_64
%define qemu_arch x86_64
%endif
%define generic_qemu_description \
QEMU provides full machine emulation and cross architecture usage. It closely\
integrates with KVM and Xen virtualization, allowing for excellent performance.\
Many options are available for defining the emulated environment, including\
traditional devices, direct host device access, and interfaces specific to\
virtualization.