1 | # |
---|
2 | # Qemu from git |
---|
3 | # |
---|
4 | |
---|
5 | %if %{release} == %{nil} |
---|
6 | %define release 1 |
---|
7 | %endif |
---|
8 | |
---|
9 | %include %{_configdir}/base.cfg |
---|
10 | |
---|
11 | # |
---|
12 | # Stable version. Qemu is fast moving. |
---|
13 | # |
---|
14 | %define qemu_version d5b4dc3b50175f0c34f3cf4b053e123fb37f5aed |
---|
15 | |
---|
16 | # |
---|
17 | # Qemu is from GIT. |
---|
18 | # |
---|
19 | %source set qemu git://git.qemu-project.org/qemu.git?pull?checkout=%{qemu_version}?submodule=dtc |
---|
20 | |
---|
21 | # |
---|
22 | # Patches from Qemu's patchworks site. |
---|
23 | # |
---|
24 | %patch add qemu pw://patchwork.ozlabs.org/patch/406903/raw/Provide-the-missing-LIBUSB_LOG_LEVEL_-for-older-libusb-or-FreeBSD.-Providing-just-the-needed-value-as-a-defined..patch |
---|
25 | %hash md5 Provide-the-missing-LIBUSB_LOG_LEVEL_-for-older-libusb-or-FreeBSD.-Providing-just-the-needed-value-as-a-defined..patch 0b1f163808efd1e86ab858053d5df71d |
---|
26 | |
---|
27 | # |
---|
28 | # These patches are broken. |
---|
29 | # |
---|
30 | #%patch add qemu pw://patchwork.ozlabs.org/patch/347503/raw/CAN-bus-simple-SJA1000-PCI-card-emulation-for-QEMU.patch |
---|
31 | #%hash md5 CAN-bus-simple-SJA1000-PCI-card-emulation-for-QEMU.patch fbbe8f02867b8b8ee7c23c83cf1e1efa |
---|
32 | #%patch add qemu pw://patchwork.ozlabs.org/patch/347502/raw/CAN-bus-Kvaser-PCI-CAN-S-single-SJA1000-channel-emulation-added.patch |
---|
33 | #%hash md5 CAN-bus-Kvaser-PCI-CAN-S-single-SJA1000-channel-emulation-added.patch 7bd24fa8b55116c9a1301afd7dfa69d3 |
---|
34 | |
---|
35 | # |
---|
36 | # Patches to build qemu-sparc with Leon3 support |
---|
37 | # |
---|
38 | %patch add qemu https://gaisler.org/qemu/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch |
---|
39 | %hash md5 0001-LEON3-Add-emulation-of-AMBA-plug-play.patch 5f0cfc249fb83fd93603ab4f55f03233 |
---|
40 | %patch add qemu https://gaisler.org/qemu/0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch |
---|
41 | %hash md5 0002-LEON3-Build-AMBA-plug-and-play-records-from-high-lev.patch 1f963963a269fd3ff89cb633c122156a |
---|
42 | %patch add qemu https://gaisler.org/qemu/0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch |
---|
43 | %hash md5 0003-LEON3-Init-UART-timers-and-CPU-if-we-run-a-RAM-image.patch 59b684eaaee77f94bdef6a12b6e544e2 |
---|
44 | |
---|
45 | %if %{_host} == mingw32 |
---|
46 | %patch add qemu pw://patchwork.ozlabs.org/patch/99999999/raw/qemu-channel-win32-cdecls.patch |
---|
47 | %endif |
---|
48 | |
---|
49 | # |
---|
50 | # The Qemu build instructions. We use 1.x.x Release 1. |
---|
51 | # |
---|
52 | %include %{_configdir}/qemu-1-1.cfg |
---|