Changeset df49c60 in rtems for scripts/gdb


Ignore:
Timestamp:
Jun 12, 2000, 3:00:15 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
edeed26
Parents:
0ab65474
Message:

Merged from 4.5.0-beta3a

Location:
scripts/gdb
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • scripts/gdb/.cvsignore

    r0ab65474 rdf49c60  
     1*.spec
    12Makefile
    23Makefile.in
    34gdb.spec
     5gdb.spec.in
  • scripts/gdb/Makefile.am

    r0ab65474 rdf49c60  
    33##
    44
    5 AUTOMAKE_OPTIONS = foreign
     5AUTOMAKE_OPTIONS = foreign 1.4
    66
    77MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec
    88
    9 MKGDBSPEC_DEPS = \
    10 $(top_builddir)/mkgdbspec gdb.spec.in $(top_builddir)/setup.cache
     9SUBPACKAGES = gdb.add base-gdb.add target-gdb.add
     10
     11gdb.spec.in: $(SUBPACKAGES)
     12        cat $^ > $@
     13CLEANFILES += gdb.spec.in
     14
     15MKGDBSPEC_DEPS = $(top_builddir)/mkgdbspec gdb.spec.in \
     16    $(top_builddir)/setup.cache
    1117
    1218hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
     
    4046        $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
    4147
    42 TEMPLATES = \
    43 gdb.spec.in
     48RPM_SPECS_DATA = hppa1.1-rtems-$(GDBVERS).spec i386-rtems-$(GDBVERS).spec \
     49    i960-rtems-$(GDBVERS).spec m68k-rtems-$(GDBVERS).spec \
     50    m68k-rtemself-$(GDBVERS).spec mips64orion-rtems-$(GDBVERS).spec \
     51    powerpc-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec \
     52    sh-rtemself-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec
     53CLEANFILES += $(RPM_SPECS_DATA)
    4454
    45 RPM_SPECS_DATA = \
    46 hppa1.1-rtems-$(GDBVERS).spec \
    47 i386-rtems-$(GDBVERS).spec \
    48 i960-rtems-$(GDBVERS).spec \
    49 m68k-rtems-$(GDBVERS).spec \
    50 m68k-rtemself-$(GDBVERS).spec \
    51 mips64orion-rtems-$(GDBVERS).spec \
    52 powerpc-rtems-$(GDBVERS).spec \
    53 sh-rtems-$(GDBVERS).spec \
    54 sh-rtemself-$(GDBVERS).spec \
    55 sparc-rtems-$(GDBVERS).spec
     55EXTRA_DIST = $(SUBPACKAGES)
    5656
    57 noinst_DATA = \
    58 $(TEMPLATES)
    59 
    60 EXTRA_DIST = \
    61 $(TEMPLATES)
    62 
    63 CLEANFILES = $(RPM_SPECS_DATA)
     57include $(top_srcdir)/../automake/local.am
  • scripts/gdb/base-gdb.add

    r0ab65474 rdf49c60  
     1# =====================================================================
     2# rtems-base-gdb
     3# =====================================================================
     4
     5%package -n rtems-base-gdb
     6Provides:       rtems-base-gdb
     7Summary:      base package for rtems gdb
     8Group: rtems
     9
     10%description -n rtems-base-gdb
     11
     12RTEMS is an open source operating system for embedded systems.
     13
     14This is the base for gdb regardless of target CPU.
     15
     16%files -n rtems-base-gdb
     17
     18%dir /opt/rtems/info
     19%doc /opt/rtems/info/gdb.info*
     20%doc /opt/rtems/info/mmalloc.info*
     21%doc /opt/rtems/info/readline.info*
     22
     23%dir /opt/rtems/man
     24%dir /opt/rtems/man/man1
     25
     26%dir /opt/rtems/include
     27# We install libbfd from binutils
     28# /opt/rtems/include/bfd.h
     29# /opt/rtems/include/bfdlink.h
     30
     31%dir /opt/rtems/lib
     32# We install libbfd from binutils
     33# /opt/rtems/lib/libbfd*
     34# We use libiberty from gcc
     35# /opt/rtems/lib/libiberty*
     36
     37%post -n rtems-base-gdb
     38  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     39  then
     40    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     41    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     42    test -n "$f" && for i in $f; do
     43      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     44    done
     45  fi
     46
     47%postun -n rtems-base-gdb
     48  if test -d $RPM_INSTALL_PREFIX/rtems/info;
     49  then
     50    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
     51    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
     52    test -n "$f" && for i in $f; do
     53      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
     54    done
     55  fi
  • scripts/gdb/gdb.add

    r0ab65474 rdf49c60  
     1#
     2# spec file for package rtems
     3#
     4# Copyright  (c)  1999  OARCorp, Huntsville, AL
     5#
     6# please send bugfixes or comments to joel@OARcorp.com
     7#
     8
     9# neededforbuild -- nothing
     10
     11Vendor:       OAR Corporation
     12Distribution: Linux
     13Name:         @target_alias@-gdb-collection
     14Release:      @Release@
     15License:      GPL/LGPL
     16Group:        rtems
     17
     18Autoreqprov:  on
     19Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
     20
     21Version:      @gdb_version@
     22Summary:      gdb for target @target_alias@
     23Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
     24Patch0:       gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
     25Buildroot:      /tmp/@target_alias@-gdb
     26
     27#
     28# The original sources are not included in the source RPM.
     29# If we included them, then the source RPMs for each target
     30# would duplicate MBs of source unnecessarily.  This is
     31# a duplication of over 30 MBs of source for each of
     32# the more than 10 targets it is possible to build.
     33#
     34# You can get them yourself from the Internet and copy them to
     35# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
     36# Or you can try the ftp options of rpm :-)
     37#
     38NoSource:      0
     39
     40
     41%description
     42RTEMS is an open source operating system for embedded systems.
     43
     44This is the GNU gdb for RTEMS targetting @target_alias@.
     45
     46%prep
     47echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
     48# untar the sources inside @target_alias@-gdb
     49%setup -c -n @target_alias@-gdb -a 0
     50
     51%patch0 -p0
     52
     53%build
     54test -d build || mkdir build
     55  cd build
     56  ../gdb-@gdb_version@/configure --target=@target_alias@ \
     57    --verbose --prefix=/opt/rtems @extra_configure_arguments@
     58
     59  make all
     60  make info
     61
     62%install
     63  cd build
     64  make prefix=$RPM_BUILD_ROOT/opt/rtems install
     65  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
     66
     67  # gzip info files
     68  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
     69  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
     70  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null
     71
     72%clean
     73# let rpm --clean remove BuildRoot iif using the default BuildRoot
     74  test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-gdb" && \
     75    rm -rf $RPM_BUILD_ROOT
  • scripts/gdb/target-gdb.add

    r0ab65474 rdf49c60  
     1# =====================================================================
     2# @target_alias@-gdb
     3# =====================================================================
     4
     5%package -n @target_alias@-gdb
     6Provides:       @target_alias@-gdb
     7Summary:      rtems gdb for @target_alias@
     8Group: rtems
     9Requires: rtems-base-gdb
     10
     11%description -n @target_alias@-gdb
     12
     13RTEMS is an open source operating system for embedded systems.
     14
     15This is the GNU gdb for RTEMS targetting @target_alias@.
     16
     17%files -n @target_alias@-gdb
     18%doc /opt/rtems/man/man1/@target_alias@-gdb.1
     19
     20%dir /opt/rtems/bin
     21/opt/rtems/bin/@target_alias@-gdb@exe_ext@
Note: See TracChangeset for help on using the changeset viewer.