diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-07-24 09:40:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-07-24 09:40:26 +0000 |
commit | fd410cd8e33d03675e354e98b56bf4abfa56c04f (patch) | |
tree | b806939b9681e8477295ae22791ab52f742f6ad3 | |
parent | 5589d26f3a94be46355b2ec700799b09117de58a (diff) |
Regenerate.
-rw-r--r-- | contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec b/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec index ac4564b8b8..a922f37fbf 100644 --- a/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec +++ b/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec @@ -52,23 +52,48 @@ Name: rtems-4.8-bfin-rtems4.8-gdb Summary: Gdb for target bfin-rtems4.8 Group: Development/Tools Version: %{gdb_rpmvers} -Release: 6%{?dist} +Release: 8%{?dist} License: GPL/LGPL URL: http://sources.redhat.com/gdb BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{_host_rpmprefix}gcc +%define build_sim --enable-sim +%if "%{_build}" != "%{_host}" +# psim doesn't support Cdn-X +%if "bfin-rtems4.8" == "powerpc-rtems4.8" +%define build_sim --disable-sim +%endif +%endif + +%ifos mingw mingw32 +# Mingw lacks functions required by the simulator +%if "bfin-rtems4.8" == "sparc-rtems4.8" +%define build_sim --disable-sim +%endif +%if "bfin-rtems4.8" == "h8300-rtems4.8" +%define build_sim --disable-sim +%endif +%if "%{gdb_version}" >= "6.8.50" +%if "bfin-rtems4.8" == "m32c-rtems4.8" +%define build_sim --disable-sim +%endif +%endif +%if "bfin-rtems4.8" == "lm32-rtems4.8" +%define build_sim --disable-sim +%endif +%if "bfin-rtems4.8" == "mipstx39-rtems4.8" +%define build_sim --disable-sim +%endif +%endif + %if "%{gdb_version}" >= "6.6" # suse -%if "%{?suse}" %if "%{?suse}" >= "10.3" BuildRequires: libexpat-devel %else -BuildRequires: expat -%endif -%else -# fedora/redhat/cygwin +# Fedora/CentOS/Cygwin/MinGW BuildRequires: %{_host_rpmprefix}expat-devel %endif %endif @@ -90,7 +115,7 @@ Requires: rtems-4.8-gdb-common Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 %{?_without_sources:NoSource: 0} -Patch0: gdb-6.5-bfinrtems-20071114.diff +Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.8/gdb-6.5-bfinrtems-20090122.diff %description GDB for target bfin-rtems4.8 @@ -121,13 +146,16 @@ rm -f gdb-%{gdb_version}/readline/configure --without-included-gettext \ --disable-win32-registry \ --disable-werror \ - --enable-sim \ + %{build_sim} \ %if "%{gdb_version}" >= "6.7" --with-system-readline \ %endif %if "%{gdb_version}" >= "6.6" --with-expat \ %endif +%if "%{gdb_version}" >= "6.8.50" + --without-python \ +%endif --prefix=%{_prefix} --bindir=%{_bindir} \ --includedir=%{_includedir} --libdir=%{_libdir} \ --mandir=%{_mandir} --infodir=%{_infodir} |