Add support for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-10-17 19:02:23 +03:00
parent cb6c9d2b3b
commit b57080f419
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 10 additions and 6 deletions

View File

@ -57,7 +57,7 @@ Version: 13.2
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
Release: 11%{?dist}
Release: 11.0.riscv64%{?dist}
License: GPL-3.0-or-later AND BSD-3-clause AND FSFAP AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND GFDL-1.3-or-later AND LGPL-2.0-or-later WITH GCC-exception-2.0 AND GPL-3.0-or-later WITH GCC-exception-3.1 AND GPL-2.0-or-later WITH GNU-compiler-exception
# Do not provide URL for snapshots as the file lasts there only for 2 days.
@ -112,7 +112,7 @@ Summary: A GNU source-level debugger for C, C++, Fortran, Go and other languages
Obsoletes: gdb64 < 5.3.91
%endif
%ifarch %{arm}
%ifarch %{arm} riscv64
%global have_inproctrace 0
%else
%global have_inproctrace 1
@ -398,7 +398,7 @@ BuildRequires: gcc-gnat
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
%endif
%else
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64 riscv64
%if 0%{!?rhel:1}
BuildRequires: gcc-gnat
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
@ -619,7 +619,7 @@ COMMON_GDB_CONFIGURE_FLAGS="\
,-Wno-format-overflow\
%endif
--enable-build-with-cxx \
%ifnarch %{ix86} alpha ppc s390 s390x x86_64 ppc64 ppc64le sparc sparcv9 sparc64 %{arm} aarch64
%ifnarch %{ix86} alpha ppc s390 s390x x86_64 ppc64 ppc64le sparc sparcv9 sparc64 %{arm} aarch64 riscv64
--disable-werror \
%else
--enable-werror \
@ -706,7 +706,7 @@ export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
%ifarch sparc sparcv9
sparc-%{_vendor}-%{_target_os}%{?_gnu}
%else
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu \
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu,riscv64-linux-gnu \
%{_target_platform}
%endif
@ -809,7 +809,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \
%ifarch sparc sparcv9
sparc-%{_vendor}-%{_target_os}%{?_gnu}
%else
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu \
--enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu,riscv64-linux-gnu \
%{_target_platform}
%endif
@ -1252,6 +1252,10 @@ fi
%endif
%changelog
* Tue Oct 17 2023 David Abdurachmanov <davidlt@rivosinc.com>
- Add riscv64-linux-gnu to enabled targets
- Disable inprocess agent for riscv64
* Wed Oct 11 2022 Guinevere Larsen <blarsen@redhat.com>
- Remove gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
as it was upstreamed back in 2010 with a different test name.