Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
7ef0572cad
commit
a36b0fbe3a
15
gdb.spec
15
gdb.spec
|
@ -57,7 +57,7 @@ Version: 14.1
|
||||||
|
|
||||||
# The release always contains a leading reserved number, start it at 1.
|
# 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.
|
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
||||||
Release: 1%{?dist}
|
Release: 1.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
|
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.
|
# 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
|
Obsoletes: gdb64 < 5.3.91
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %{arm}
|
%ifarch %{arm} riscv64
|
||||||
%global have_inproctrace 0
|
%global have_inproctrace 0
|
||||||
%else
|
%else
|
||||||
%global have_inproctrace 1
|
%global have_inproctrace 1
|
||||||
|
@ -398,7 +398,7 @@ BuildRequires: gcc-gnat
|
||||||
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%else
|
%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}
|
%if 0%{!?rhel:1}
|
||||||
BuildRequires: gcc-gnat
|
BuildRequires: gcc-gnat
|
||||||
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
BuildRequires: libgnat%{bits_local} libgnat%{bits_other}
|
||||||
|
@ -619,7 +619,7 @@ COMMON_GDB_CONFIGURE_FLAGS="\
|
||||||
,-Wno-format-overflow\
|
,-Wno-format-overflow\
|
||||||
%endif
|
%endif
|
||||||
--enable-build-with-cxx \
|
--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 \
|
--disable-werror \
|
||||||
%else
|
%else
|
||||||
--enable-werror \
|
--enable-werror \
|
||||||
|
@ -704,7 +704,7 @@ export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
|
||||||
%ifarch sparc sparcv9
|
%ifarch sparc sparcv9
|
||||||
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
||||||
%else
|
%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}
|
%{_target_platform}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -807,7 +807,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \
|
||||||
%ifarch sparc sparcv9
|
%ifarch sparc sparcv9
|
||||||
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
sparc-%{_vendor}-%{_target_os}%{?_gnu}
|
||||||
%else
|
%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}
|
%{_target_platform}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -1250,6 +1250,9 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 14 2023 David Abdurachmanov <davidlt@rivosinc.com> - 14.1-1.0.riscv64
|
||||||
|
- Add riscv64 support
|
||||||
|
|
||||||
* Fri Dec 8 2023 Kevin Buettner <kevinb@redhat.com> - 14.1-1
|
* Fri Dec 8 2023 Kevin Buettner <kevinb@redhat.com> - 14.1-1
|
||||||
- Rebase to FSF GDB 14.1.
|
- Rebase to FSF GDB 14.1.
|
||||||
- Update local patches:
|
- Update local patches:
|
||||||
|
|
Loading…
Reference in New Issue