source: rtems/scripts/gdb/gdb.add @ cdf5ff65

4.104.114.84.95
Last change on this file since cdf5ff65 was cdf5ff65, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 4, 2003 at 2:39:05 PM

2003-09-04 Ralf Corsepius <corsepiu@…>

  • binutils/base-binutils.add: Add osversion support.
  • binutils/binutils.add: Add osversion support. %setup -n %{name}-%{version}. Don't remove c++filt.
  • binutils/target-binutils.add: Add osversion support. Pickup c++filt.
  • gcc3newlib/base-g77.add: Add osversion support.
  • gcc3newlib/base-gcc.add: Add osversion support.
  • gcc3newlib/base-gcj.add: Add osversion support.
  • gcc3newlib/base-gnat.add: Add osversion support.
  • gcc3newlib/gccnewlib.add: Add osversion support. Remove c++filt, %setup -n -n %{name}-%{version}.
  • gcc3newlib/target-c++.add: Add osversion support. Don't pickup c++filt.
  • gcc3newlib/target-g77.add: Add osversion support.
  • gcc3newlib/target-gcc.add: Add osversion support.
  • gcc3newlib/target-gcj.add: Add osversion support.
  • gcc3newlib/target-gnat.add: Add osversion support.
  • gccnewlib/gccnewlib.add: %setup -n %{name}-%{version}.
  • gdb/base-gdb.add: Add osversion support, rpmgroup, rpmprefix, gdb_version, gdb_target.
  • gdb/target-gdb.add: Ditto.
  • gdb/gdb.add: Ditto. %setup -n -n %{name}-%{version}.
  • Property mode set to 100644
File size: 2.8 KB
Line 
1
2%define gdb_version     @gdb_version@
3%define gdb_target      @target_alias@
4
5Name:         %{rpmprefix}%{gdb_target}-gdb-collection
6Release:      @Release@
7License:      GPL/LGPL
8Group:        %{rpmgroup}
9
10Autoreqprov:  on
11Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
12
13Version:      %{gdb_version}
14Summary:      gdb for target %{gdb_version}
15Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-%{gdb_version}.tar.gz
16Patch0:       gdb-%{gdb_version}-rtems-base-@gdb_patch_version@.diff
17Patch1:       gdb-%{gdb_version}-rtems-cg-@gdb_patch_version@.diff
18Patch2:       gdb-%{gdb_version}-rtems-rdbg-@gdb_patch_version@.diff
19
20%if "%{_vendor}" == "redhat"
21BuildPreReq:    ncurses-devel
22%endif
23
24#
25# The original sources are not included in the source RPM.
26# If we included them, then the source RPMs for each target
27# would duplicate MBs of source unnecessarily.  This is
28# a duplication of over 30 MBs of source for each of
29# the more than 10 targets it is possible to build.
30#
31# You can get them yourself from the Internet and copy them to
32# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
33# Or you can try the ftp options of rpm :-)
34#
35NoSource:      0
36
37#  Account as best possible for targets without simulators
38#  and targets which require extra arguments.
39%define _sim    1
40
41%if "%{gdb_target}" == "m68k-rtems@osversion@"
42%define _sim    0
43%endif
44%if "%{gdb_target}" == "i386-rtems@osversion@"
45%define _sim    0
46%endif
47
48
49%description
50RTEMS is an open source operating system for embedded systems.
51
52This is the GNU gdb for RTEMS targetting %{gdb_version}.
53
54%prep
55%setup -c -n %{name}-%{version} -a 0
56
57cd gdb-%{gdb_version}
58%patch0 -p1
59%patch1 -p1
60%patch2 -p1
61
62%build
63%if "%_sim" == "1"
64 simargs="--enable-sim"
65%endif
66
67%if "%{gdb_target}" == "powerpc-rtems@osversion@"
68 simargs="$simargs --enable-sim-timebase --enable-sim-hardware"
69 #  Enabling this causes the program image to be huge and causes
70 #  some gcc/hosts combinations to run out of memory.
71 # simargs="$simargs --enable-sim-inline"
72%endif
73
74test -d build || mkdir build
75  cd build
76  export PATH="%{_bindir}:${PATH}"
77  ../gdb-%{gdb_version}/configure \
78    --build=%_build --host=%_host \
79    --target=%{gdb_target} \
80    --verbose --prefix=%{_prefix} $simargs \
81    --disable-nls
82
83  make all
84  make info
85
86%install
87  cd build
88  make prefix=$RPM_BUILD_ROOT%{_prefix} install
89  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
90
91  # host files
92  rm -rf $RPM_BUILD_ROOT%{_prefix}/include/*.h
93  rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/lib*a
94
95  # These come from other packages
96  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/bfd*
97  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/configure*
98  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/standards*
99 
100  # gzip info files
101  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
102  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
103  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null
Note: See TracBrowser for help on using the repository browser.