Compare commits
10 Commits
master
...
master-ris
Author | SHA1 | Date | |
---|---|---|---|
41fd1dd0bc | |||
d2145978fd | |||
b19dfb07bb | |||
3d3a6ab3ff | |||
3326047100 | |||
f27f625845 | |||
7dafb6b5a6 | |||
34bf911448 | |||
1a736eea9b | |||
2e42dab32b |
21
qemu.spec
21
qemu.spec
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
# Matches numactl ExcludeArch
|
# Matches numactl ExcludeArch
|
||||||
%global have_numactl 1
|
%global have_numactl 1
|
||||||
%ifarch s390 %{arm}
|
%ifarch s390 %{arm} riscv64
|
||||||
%global have_numactl 0
|
%global have_numactl 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -161,7 +161,7 @@
|
|||||||
Summary: QEMU is a FAST! processor emulator
|
Summary: QEMU is a FAST! processor emulator
|
||||||
Name: qemu
|
Name: qemu
|
||||||
Version: 5.0.0
|
Version: 5.0.0
|
||||||
Release: 0.3%{?rcrel}%{?dist}
|
Release: 0.3%{?rcrel}.0.riscv64%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: GPLv2 and BSD and MIT and CC-BY
|
License: GPLv2 and BSD and MIT and CC-BY
|
||||||
URL: http://www.qemu.org/
|
URL: http://www.qemu.org/
|
||||||
@ -301,7 +301,9 @@ BuildRequires: virglrenderer-devel
|
|||||||
# qemu 2.6: Needed for gtk GL support, vhost-user-gpu
|
# qemu 2.6: Needed for gtk GL support, vhost-user-gpu
|
||||||
BuildRequires: mesa-libgbm-devel
|
BuildRequires: mesa-libgbm-devel
|
||||||
# qemu 2.11: preferred disassembler for TCG
|
# qemu 2.11: preferred disassembler for TCG
|
||||||
|
%ifnarch riscv64
|
||||||
BuildRequires: capstone-devel
|
BuildRequires: capstone-devel
|
||||||
|
%endif
|
||||||
# qemu 2.12: parallels disk images require libxml2 now
|
# qemu 2.12: parallels disk images require libxml2 now
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
@ -337,6 +339,10 @@ BuildRequires: libzstd-devel
|
|||||||
BuildRequires: hostname
|
BuildRequires: hostname
|
||||||
|
|
||||||
BuildRequires: glibc-static pcre-static glib2-static zlib-static
|
BuildRequires: glibc-static pcre-static glib2-static zlib-static
|
||||||
|
# if -pthread is used GCC SPEC will add --as-needed -latomic --no-as-needed for linker
|
||||||
|
%ifarch riscv64
|
||||||
|
BuildRequires: libatomic-static
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?hostqemu:1}
|
%if 0%{?hostqemu:1}
|
||||||
# For complicated reasons, this is required so that
|
# For complicated reasons, this is required so that
|
||||||
@ -949,7 +955,7 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/qemu-trace-stap
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
# drop -g flag to prevent memory exhaustion by linker
|
# drop -g flag to prevent memory exhaustion by linker
|
||||||
%ifarch s390
|
%ifarch s390 riscv64
|
||||||
%global optflags %(echo %{optflags} | sed 's/-g//')
|
%global optflags %(echo %{optflags} | sed 's/-g//')
|
||||||
sed -i.debug 's/"-g $CFLAGS"/"$CFLAGS"/g' configure
|
sed -i.debug 's/"-g $CFLAGS"/"$CFLAGS"/g' configure
|
||||||
%endif
|
%endif
|
||||||
@ -989,6 +995,10 @@ run_configure() {
|
|||||||
--python=%{__python3} \
|
--python=%{__python3} \
|
||||||
--disable-strip \
|
--disable-strip \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
|
%ifarch riscv64
|
||||||
|
--disable-capstone \
|
||||||
|
--disable-kvm \
|
||||||
|
%endif
|
||||||
--tls-priority=@QEMU,SYSTEM \
|
--tls-priority=@QEMU,SYSTEM \
|
||||||
--enable-trace-backend=$tracebackends \
|
--enable-trace-backend=$tracebackends \
|
||||||
"$@" || cat config.log
|
"$@" || cat config.log
|
||||||
@ -1340,7 +1350,7 @@ chmod +x %{buildroot}%{_libdir}/qemu/*.so
|
|||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1206057
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1206057
|
||||||
# Tests seem to be a recurring problem on s390, so I'd suggest just leaving
|
# Tests seem to be a recurring problem on s390, so I'd suggest just leaving
|
||||||
# it disabled.
|
# it disabled.
|
||||||
%global archs_skip_tests s390
|
%global archs_skip_tests s390 riscv64
|
||||||
%global archs_ignore_test_failures 0
|
%global archs_ignore_test_failures 0
|
||||||
|
|
||||||
# Enable this temporarily if tests are broken
|
# Enable this temporarily if tests are broken
|
||||||
@ -1834,6 +1844,9 @@ getent passwd qemu >/dev/null || \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 12 2019 David Abdurachmanov <david.abdurachmanov@sifive.com> - 5.0.0-0.3.rc2.0.riscv64
|
||||||
|
- Enable support for RISC-V (riscv64)
|
||||||
|
|
||||||
* Thu Apr 09 2020 Cole Robinson <aintdiscole@gmail.com> - 5.0.0-0.3.rc2
|
* Thu Apr 09 2020 Cole Robinson <aintdiscole@gmail.com> - 5.0.0-0.3.rc2
|
||||||
- Update to qemu 5.0.0 rc2
|
- Update to qemu 5.0.0 rc2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user