Changeset 1805015 in rtems


Ignore:
Timestamp:
Oct 20, 1999, 3:49:13 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c4d1d41
Parents:
36b6704e
Message:

Adding the infrastructure for gdb.

Location:
scripts
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • scripts/Makefile.in

    r36b6704e r1805015  
    1 # Makefile.in generated automatically by automake 1.4 from Makefile.am
     1# Makefile.in generated automatically by automake 1.4a from Makefile.am
    22
    33# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     
    4747
    4848INSTALL = @INSTALL@
    49 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     49INSTALL_PROGRAM = @INSTALL_PROGRAM@
    5050INSTALL_DATA = @INSTALL_DATA@
    5151INSTALL_SCRIPT = @INSTALL_SCRIPT@
     52INSTALL_STRIP_FLAG =
    5253transform = @program_transform_name@
    5354
     
    99100DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
    100101
    101 TAR = tar
     102TAR = gtar
    102103GZIP_ENV = --best
    103104all: all-redirect
     
    252253          d=$(srcdir); \
    253254          if test -d $$d/$$file; then \
    254             cp -pr $$/$$file $(distdir)/$$file; \
     255            cp -pr $$d/$$file $(distdir)/$$file; \
    255256          else \
    256257            test -f $(distdir)/$$file \
     
    291292all-redirect: all-recursive
    292293install-strip:
    293         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     294        $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
    294295installdirs: installdirs-recursive
    295296installdirs-am:
  • scripts/aclocal.m4

    r36b6704e r1805015  
    1 dnl aclocal.m4 generated automatically by aclocal 1.4
     1dnl aclocal.m4 generated automatically by aclocal 1.4a
    22
    33dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     
    2222AC_DEFUN(AM_INIT_AUTOMAKE,
    2323[AC_REQUIRE([AC_PROG_INSTALL])
     24dnl We require 2.13 because we rely on SHELL being computed by configure.
     25AC_PREREQ([2.13])
    2426PACKAGE=[$1]
    2527AC_SUBST(PACKAGE)
  • scripts/configure

    r36b6704e r1805015  
    690690
    691691
     692
    692693PACKAGE=scripts
    693694
     
    702703missing_dir=`cd $ac_aux_dir && pwd`
    703704echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    704 echo "configure:705: checking for working aclocal" >&5
     705echo "configure:706: checking for working aclocal" >&5
    705706# Run test in a subshell; some versions of sh will print an error if
    706707# an executable is not found, even if stderr is redirected.
     
    715716
    716717echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    717 echo "configure:718: checking for working autoconf" >&5
     718echo "configure:719: checking for working autoconf" >&5
    718719# Run test in a subshell; some versions of sh will print an error if
    719720# an executable is not found, even if stderr is redirected.
     
    728729
    729730echo $ac_n "checking for working automake""... $ac_c" 1>&6
    730 echo "configure:731: checking for working automake" >&5
     731echo "configure:732: checking for working automake" >&5
    731732# Run test in a subshell; some versions of sh will print an error if
    732733# an executable is not found, even if stderr is redirected.
     
    741742
    742743echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    743 echo "configure:744: checking for working autoheader" >&5
     744echo "configure:745: checking for working autoheader" >&5
    744745# Run test in a subshell; some versions of sh will print an error if
    745746# an executable is not found, even if stderr is redirected.
     
    754755
    755756echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    756 echo "configure:757: checking for working makeinfo" >&5
     757echo "configure:758: checking for working makeinfo" >&5
    757758# Run test in a subshell; some versions of sh will print an error if
    758759# an executable is not found, even if stderr is redirected.
     
    775776# others might use /usr/src
    776777echo $ac_n "checking for rpm SPECS directory""... $ac_c" 1>&6
    777 echo "configure:778: checking for rpm SPECS directory" >&5
     778echo "configure:779: checking for rpm SPECS directory" >&5
    778779if test -d /usr/src/packages/SPECS;
    779780then
    780 RPM_SPECSdir=/usr/src/packages/SPECS;
     781  RPM_SPECSdir=/usr/src/packages/SPECS;
    781782elif test -d /usr/src/redhat/SPECS;
    782783then
    783 RPM_SPECSdirs=/usr/src/redhat/SPECS;
     784  RPM_SPECSdir=/usr/src/redhat/SPECS;
    784785elif test -d /usr/src/SPECS/;
    785786then
    786 RPM_SPECSdir=/usr/src/SPECS;
     787  RPM_SPECSdir=/usr/src/SPECS;
    787788fi
    788789if test x"$RPM_SPECSdir" = x; then
     
    915916mkbinutilspec
    916917mkgccnewlibspec
     918mkgdbspec
    917919binutils/Makefile
    918920gccnewlib/Makefile
     921gdb/Makefile
    919922" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    920923EOF
     
    10081011mkbinutilspec
    10091012mkgccnewlibspec
     1013mkgdbspec
    10101014binutils/Makefile
    10111015gccnewlib/Makefile
     1016gdb/Makefile
    10121017"}
    10131018EOF
  • scripts/configure.in

    r36b6704e r1805015  
    3636mkbinutilspec
    3737mkgccnewlibspec
     38mkgdbspec
    3839binutils/Makefile
    3940gccnewlib/Makefile
     41gdb/Makefile
    4042)
  • scripts/gccnewlib/Makefile.in

    r36b6704e r1805015  
    1 # Makefile.in generated automatically by automake 1.4 from Makefile.am
     1# Makefile.in generated automatically by automake 1.4a from Makefile.am
    22
    33# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     
    4747
    4848INSTALL = @INSTALL@
    49 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     49INSTALL_PROGRAM = @INSTALL_PROGRAM@
    5050INSTALL_DATA = @INSTALL_DATA@
    5151INSTALL_SCRIPT = @INSTALL_SCRIPT@
     52INSTALL_STRIP_FLAG =
    5253transform = @program_transform_name@
    5354
     
    9596DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
    9697
    97 TAR = tar
     98TAR = gtar
    9899GZIP_ENV = --best
    99100all: all-redirect
     
    137138          d=$(srcdir); \
    138139          if test -d $$d/$$file; then \
    139             cp -pr $$/$$file $(distdir)/$$file; \
     140            cp -pr $$d/$$file $(distdir)/$$file; \
    140141          else \
    141142            test -f $(distdir)/$$file \
     
    166167all-redirect: all-am
    167168install-strip:
    168         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     169        $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
    169170installdirs:
    170171        $(mkinstalldirs)  $(DESTDIR)$(RPM_SPECSdir)
  • scripts/gdb.spec.in

    r36b6704e r1805015  
    2020Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
    2121
    22 Version:      @Version@
     22Version:      gdb@gdb_version@
    2323Summary:      gdb for target @target_alias@
    24 Source0:        gdb-4.18.tar.gz
    25 Patch0:         gdb-4.18-rtems-19991015.diff
     24Source0:        gdb-@gdb_version@.tar.gz
     25Patch0:         gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
    2626
    2727Buildroot:    /tmp
     
    3838
    3939%prep
    40 # untar the sources inside @target_alias@-gdb-@Version@
     40# untar the sources inside @target_alias@-gdb
    4141%setup -c -n @target_alias@-gdb -a 0
    4242
     
    4646test -d build || mkdir build
    4747( cd build
    48   ../gdb-4.18/configure --target=@target_alias@ \
     48  ../gdb-@gdb_version@/configure --target=@target_alias@ \
    4949    --verbose --prefix=/opt/rtems
    5050
     
    6565
    6666%files
     67%dir /opt/rtems
     68%dir /opt/rtems/bin
     69%dir /opt/rtems/include
     70%dir /opt/rtems/info
     71%dir /opt/rtems/lib
     72%dir /opt/rtems/man
     73%dir /opt/rtems/man/man1
     74
    6775%doc /opt/rtems/info/gdb.info*
    6876%doc /opt/rtems/info/mmalloc.info*
  • scripts/mkbinutilspec

    r36b6704e r1805015  
    77
    88CFG=user.cfg
    9 dst=/usr/src/packages/SPECS
     9dst=/usr/src/redhat/SPECS
    1010
    1111usage()
  • scripts/mkgccnewlibspec

    r36b6704e r1805015  
    77
    88CFG=user.cfg
    9 dst=/usr/src/packages/SPECS
     9dst=/usr/src/redhat/SPECS
    1010
    1111usage()
  • scripts/mkgdbspec

    r36b6704e r1805015  
    11#!/bin/sh
    22#
    3 #  Usage: mktoolspec CPU
     3#  Usage: mkgdbspec CPU
    44#
    55
    66RTEMS_DIR=`dirname $0`
    7 RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
    8 sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
     7CFG=user.cfg
     8dst=/usr/src/redhat/SPECS
    99
    10 target_alias=$1
    11 release=0
     10usage()
    1211
    13 # Some linux distributions use /usr/src/packages
    14 # redhat uses /usr/src/redhat
    15 # others might use /usr/src
    16 if test -d /usr/src/packages/SPECS;
     12  echo "$0 [options] <target_alias>"
     13  echo "  options:"
     14  echo "    -cfg <user.cfg>"
     15  echo "    -o <rpm-spec-dir>"
     16  exit 1 ;
     17
     18
     19while test $# -ge 2; do
     20case $1 in
     21-cfg)
     22  shift
     23  CFG=$1
     24  shift
     25  ;;
     26-o)
     27  shift
     28  dst=$1
     29  shift
     30  ;;
     31-*)
     32  echo "invalid option $1";
     33  usage
     34  ;;
     35esac
     36done
     37
     38if test ! $# -eq 1;
    1739then
    18 dst=/usr/src/packages/SPECS;
    19 elif test -d /usr/src/redhat/SPECS;
    20  then
    21 dst=/usr/src/redhat/SPECS;
    22 elif test -d /usr/src/SPECS/;
    23 then
    24 dst=/usr/src/SPECS;
     40  echo "Invalid number of arguments"
     41  usage
    2542fi
    2643
    27 sed -e "s%@Version@%${RTEMS_VERSION}%g" \
    28 -e "s%@bsp@%${bsp}%g" \
    29 -e "s%@Release@%${release}%g" \
    30 -e "s%@target_alias@%${target_alias}%g" \
     44# target to build for
     45target_alias=$1
     46
     47rpm_release=0
     48
     49sed -e "s%@Release@%${rpm_release}%g" \
     50    -e "s%@target_alias@%${target_alias}%g" \
     51    -e "s%@gdb_version@%${gdb_version}%g" \
     52    -e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
    3153< ${RTEMS_DIR}/gdb.spec.in \
    3254> ${dst}/$target_alias-gdb.spec
Note: See TracChangeset for help on using the changeset viewer.