2002-08-20 Joel Sherrill <joel@OARcorp.com>

* .cvsignore, ChangeLog, Makefile.am, README, TODO, buildall.in,
	configure.ac, install-sh, missing, mkbinutilspec.in, mkbspspec.in,
	mkgdbspec.in, mkgnatnewlibspec.in, mkinstalldirs, mkrpms, mkspec,
	setup, setup.def, binutils/.cvsignore, binutils/Makefile.am,
	binutils/binutils.spec.in, gdb/.cvsignore, gdb/Makefile.am,
	gdb/gdb.spec.in, gnatnewlib/.cvsignore, gnatnewlib/Makefile.am,
	gnatnewlib/gnatnewlib.spec.in:  Per PR238 GNAT support is now
	included in the main RPM specs which support gcc 3.1 and newer
	since GNAT is in that source base now.
This commit is contained in:
Joel Sherrill committed 2002-08-20 16:01:28 +00:00
1 parent e5fc1dfd28
commit 1f657157f3
27 files changed
-2227

No files matched your search

-17
View File
@@ -1,17 +0,0 @@
Makefile
Makefile.in
aclocal.m4
autom4te.cache
buildall
config.cache
config.guess
config.log
config.status
config.sub
configure
depcomp
mkbinutilspec
mkbspspec
mkgdbspec
mkgnatnewlibspec
setup.cache
-91
View File
@@ -1,91 +0,0 @@
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
AM_INIT_AUTOMAKE([no-define foreign 1.6]).
* binutils/Makefile.am: Remove AUTOMAKE_OPTIONS.
* Makefile.am: Remove AUTOMAKE_OPTIONS.
* gdb/Makefile.am: Remove AUTOMAKE_OPTIONS.
* gnatnewlib/Makefile.am: Remove AUTOMAKE_OPTIONS.
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
* configure.in: Remove.
* configure.ac: New file, generated from configure.in by autoupdate.
2001-09-13 Joel Sherrill <joel@OARcorp.com>
* configure.in: Add RTEMS specific version of EXEEXT test.
* mkgdbspec.in, mkgnatnewlibspec.in, gdb/gdb.spec.in,
gnatnewlib/gnatnewlib.spec.in: Change to Target_alias to avoid
conflicts with new autoconf/automake.
* setup, setup.def, mkgnatnewlibspec.in: Add gnat_newlib_patch_version
variable.
* gnatnewlib/Makefile.am: Add i386-rtemscoff target in attempt to
build it.
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* setup.def, gnatnewlib/gnatnewlib.spec.in: Modified to properly
build gnat 3.13p-2 RPMs. These were used to run the ACATS with
the following results on the powepc-rtems/psim:
acats4gnat results cz 3 / 4
acats4gnat results a 75 / 75
acats4gnat results c2 35 / 35
acats4gnat results c3 347 / 349
acats4gnat results c4 333 / 338
acats4gnat results c5 95 / 95
acats4gnat results c6 81 / 81
acats4gnat results c7 47 / 50
acats4gnat results c8 140 / 140
acats4gnat results c9 246 / 255
acats4gnat results ca 73 / 74
acats4gnat results cb 43 / 43
acats4gnat results cc 117 / 117
acats4gnat results cd 172 / 172
acats4gnat results ce 262 / 268
acats4gnat results cxa 85 / 85
acats4gnat results cxb 29 / 30
acats4gnat results cxc 9 / 16
acats4gnat results cxd 27 / 39
acats4gnat results cxe 1 / 1
acats4gnat results cxf 20 / 20
acats4gnat results cxg 28 / 29
acats4gnat results cxh 4 / 4
acats4gnat results d 4 / 4
acats4gnat results e 11 / 11
acats4gnat results l 26 / 26
This compares favorably with the results on Linux. Laurent
Guerby's <guerby@acm.org> acats4gnat-0.2 scripts were used
with minor modifications to support cross testing.
2000-12-08 Joel Sherrill <joel@OARcorp.com>
* setup.def, gnatnewlib/gnatnewlib.in: Modified to pick up
all GNAT components.
2000-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Remove trailing '/' from RPM_SPECSdir.
2000-10-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Remove ACLOCAL_AMFLAGS.
2000-10-18 Joel Sherrill <joel@OARcorp.com>
* setup.def, gdb/gdb.spec.in,gnatnewlib/gnatnewlib.spec.in:
Updated to reflect gnat 3.13p successfully building.
2000-08-30 Joel Sherrill <joel@OARcorp.com>
* setup.def: Updated to gnat-3.13p and adjusted all versions
and revisions.
* gnatnewlib/gnatnewlib.spec.in: Include gcov per gnat 3.13p
build instructions.
* NOTE: GNAT 3.13p was not successfully built when this was committed.
2000-08-10 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: New file.
-23
View File
@@ -1,23 +0,0 @@
##
## $Id$
##
SUBDIRS = . gnatnewlib gdb
noinst_SCRIPTS = setup buildall mkbinutilspec mkbspspec mkgnatnewlibspec \
mkgdbspec mkrpms mkspec
TEMPLATES =
noinst_DATA = setup.def $(TEMPLATES)
EXTRA_DIST = $(noinst_DATA) $(noinst_SCRIPTS)
CONFIGURE_DEPENDENCIES = setup.cache
setup.cache: setup.def
cp setup.def $@
DISTCLEANFILES = setup.cache
include $(top_srcdir)/../automake/subdirs.am
include $(top_srcdir)/../automake/local.am
-28
View File
@@ -1,28 +0,0 @@
#
# $Id$
#
This directory contains the scripts used to build RPMS for GNAT/RTEMS.
The scripts are close but do not work completely right yet. I have
commented out the info related items in gnatnewlib.in to get the
RPMS to build.
The binutils directory should be ignored for now. In order to
build the toolset at all, I had to merge building binutils
into the build of gcc, gnat, and newlib. gdb is still built separately.
When gnat is based off a more recent gcc version, we can go
to the more proper method of building binutils first and
separately.
There is the more general issue that the gcc 2.8.1 RTEMS targets
were not always the same object format that the gcc 2.95.x ones
are. Thus some BSPs (m68k and i386 in particular) are now ELF
based and assume crti.o/crtn.o is installed. The gcc 2.8.1
configurations were not ELF and thus it is likely that programs
will not link on certain configurations.
Another more general issue is that GNAT gdb support is at
4.17 while remote debugging of RTEMS applications via
TCP/IP is in 4.18.
-6
View File
@@ -1,6 +0,0 @@
#
# $Id$
#
There is plenty left to do on this :)
-4
View File
@@ -1,4 +0,0 @@
*.spec
Makefile
Makefile.in
binutils.spec
-23
View File
@@ -1,23 +0,0 @@
##
## $Id$
##
MKBINUTILSSPEC = $(SHELL) $(top_builddir)/mkbinutilspec
MKBINUTILSSPEC_DEPS = $(top_builddir)/mkbinutilspec binutils.spec.in \
$(top_builddir)/setup.cache
sparc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
TEMPLATES = binutils.spec.in
RPM_SPECS_DATA = sparc-rtems-$(BINUTILSVERS).spec
noinst_DATA = $(TEMPLATES)
EXTRA_DIST = $(TEMPLATES)
CLEANFILES = $(RPM_SPECS_DATA)
include $(top_srcdir)/../automake/local.am
-197
View File
@@ -1,197 +0,0 @@
#
# spec file for binutils package targetting rtems
#
# Copyright (c) 1999 OARCorp, Huntsville, AL
#
# please send bugfixes or comments to joel@OARcorp.com
#
Vendor: OAR Corporation
Distribution: Linux
Name: @target_alias@-gnat-binutils-collection
Summary: binutils for target @target_alias@
Group: gnatrtems
Release: @Release@
License: GPL/LGPL
Provides: rtems-base-gnat-binutils @target_alias@-gnat-binutils
Autoreqprov: on
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
Prefix: /opt
Version: @binutils_version@
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.gz
Patch0: binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
#
# The original sources are not included in the source RPM.
# If we included them, then the source RPMs for each target
# would duplicate MBs of source unnecessarily. This is
# a duplication of over 30 MBs of source for each of
# the more than 10 targets it is possible to build.
#
# You can get them yourself from the Internet and copy them to
# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
# Or you can try the ftp options of rpm :-)
#
NoSource: 0
%description
RTEMS is an open source operating system for embedded systems.
This is binutils sources with patches for RTEMS.
%package -n rtems-base-gnat-binutils
Summary: base package for rtems binutils
Group: rtems
%description -n rtems-base-gnat-binutils
RTEMS is an open source operating system for embedded systems.
This is the base for binutils regardless of target CPU.
%package -n @target_alias@-gnat-binutils
Summary: rtems binutils for @target_alias@
Group: rtems
Requires: rtems-base-gnat-binutils
%description -n @target_alias@-gnat-binutils
RTEMS is an open source operating system for embedded systems.
This is the GNU binutils for RTEMS targetting @target_alias@.
Authors:
--------
Joel Sherrill (joel@oarcorp.com)
...
%prep
# untar the sources inside @target_alias@-gnat-binutils
%setup -c -n @target_alias@-gnat-binutils -a 0
%patch0 -p0
test -d build || mkdir build
%build
cd build
../binutils-@binutils_version@/configure --target=@target_alias@ \
--verbose --prefix=/opt/gnatrtems
make all
make info
%install
cd build
make prefix=$RPM_BUILD_ROOT/opt/gnatrtems install
make prefix=$RPM_BUILD_ROOT/opt/gnatrtems install-info
# A bug in binutils: binutils does not install share/locale
# however it uses it
../binutils-@binutils_version@/mkinstalldirs \
$RPM_BUILD_ROOT/opt/gnatrtems/share/locale
# gzip info files
gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info 2>/dev/null
gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info-? 2>/dev/null
if test -f $RPM_BUILD_ROOT/opt/gnatrtems/info/configure.info.gz;
then
# These common files are only present in binutils >= 2.9.5
find $RPM_BUILD_ROOT/opt/gnatrtems/info -name 'configure.*' | \
sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
else
touch ../files
fi
# These target specific files are only present in binutils >= 2.9.5
if test -f /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@;
then
echo /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@ > ../files.target
else
touch ../files.target
fi
%post
if test -d $RPM_INSTALL_PREFIX/rtems/info;
then
rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
test x"$f" != x"" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
done
fi
%postun
if test -d $RPM_INSTALL_PREFIX/rtems/info;
then
rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
test x"$f" != x"" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
done
fi
%files -n rtems-base-gnat-binutils -f files
%dir /opt/gnatrtems/info
%doc /opt/gnatrtems/info/dir
%doc /opt/gnatrtems/info/as.info.gz
%doc /opt/gnatrtems/info/as.info-?.gz
%doc /opt/gnatrtems/info/bfd.info.gz
%doc /opt/gnatrtems/info/bfd.info-?.gz
%doc /opt/gnatrtems/info/binutils.info.gz
%doc /opt/gnatrtems/info/binutils.info-?.gz
%doc /opt/gnatrtems/info/ld.info.gz
%doc /opt/gnatrtems/info/ld.info-?.gz
%doc /opt/gnatrtems/info/gasp.info.gz
%doc /opt/gnatrtems/info/standards.info.gz
%dir /opt/gnatrtems/man
%dir /opt/gnatrtems/man/man1
%dir /opt/gnatrtems/include
/opt/gnatrtems/include/bfd.h
/opt/gnatrtems/include/ansidecl.h
/opt/gnatrtems/include/bfdlink.h
%dir /opt/gnatrtems/lib
/opt/gnatrtems/lib/libbfd*
/opt/gnatrtems/lib/libiberty*
/opt/gnatrtems/lib/libopcodes*
%dir /opt/gnatrtems/share
%dir /opt/gnatrtems/share/locale
%files -n @target_alias@-gnat-binutils -f files.target
%doc /opt/gnatrtems/man/man1/@target_alias@-*.1
%dir /opt/gnatrtems/bin
/opt/gnatrtems/bin/@target_alias@-addr2line@exe_ext@
/opt/gnatrtems/bin/@target_alias@-ar@exe_ext@
/opt/gnatrtems/bin/@target_alias@-as@exe_ext@
/opt/gnatrtems/bin/@target_alias@-c++filt@exe_ext@
/opt/gnatrtems/bin/@target_alias@-gasp@exe_ext@
/opt/gnatrtems/bin/@target_alias@-ld@exe_ext@
/opt/gnatrtems/bin/@target_alias@-nm@exe_ext@
/opt/gnatrtems/bin/@target_alias@-objcopy@exe_ext@
/opt/gnatrtems/bin/@target_alias@-objdump@exe_ext@
/opt/gnatrtems/bin/@target_alias@-ranlib@exe_ext@
# readelf is not in older binutils so get it from file list
# /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@
/opt/gnatrtems/bin/@target_alias@-size@exe_ext@
/opt/gnatrtems/bin/@target_alias@-strings@exe_ext@
/opt/gnatrtems/bin/@target_alias@-strip@exe_ext@
%dir /opt/gnatrtems/@target_alias@
%dir /opt/gnatrtems/@target_alias@/bin
/opt/gnatrtems/@target_alias@/bin/ar@exe_ext@
/opt/gnatrtems/@target_alias@/bin/as@exe_ext@
/opt/gnatrtems/@target_alias@/bin/ld@exe_ext@
/opt/gnatrtems/@target_alias@/bin/nm@exe_ext@
/opt/gnatrtems/@target_alias@/bin/ranlib@exe_ext@
/opt/gnatrtems/@target_alias@/bin/strip@exe_ext@
%dir /opt/gnatrtems/@target_alias@/lib
/opt/gnatrtems/@target_alias@/lib/ldscripts
-193
View File
@@ -1,193 +0,0 @@
#! /bin/sh
#
# Generate all the specs and then cycle through building them.
#
RTEMS_DIR=`dirname $0`
CFG=./setup.cache
dst=@RPM_SPECSdir@
usage()
{
echo "$0 [options] <target_alias>"
echo " options:"
echo " -cfg <setup.cache>"
echo " -o <rpm-spec-dir>"
exit 1 ;
}
while test $# -ge 1; do
case $1 in
-cfg)
test $# -ge 2 || usage
shift
CFG=$1
shift
;;
-o)
test $# -ge 2 || usage
shift
dst=$1
shift
;;
-*)
echo "invalid option $1";
usage
;;
*)
TARGETS="${TARGETS} $1"
shift
;;
esac
done
# This is the full list .. hppa1.1 does not build now.
#ALL_TARGETS="hppa1.1-rtems i386-rtems i960-rtems m68k-rtems \
# m68k-rtemself mips64orion-rtems \
# powerpc-rtems sh-rtems sh-rtemself sparc-rtems"
# This is the full buildable set.
if [ "X${TARGETS}" = "X" ] ; then
TARGETS="i386-rtems i960-rtems m68k-rtems \
mips64orion-rtems powerpc-rtems sh-rtems sparc-rtems"
fi
. $CFG
binutils=${binutils_version}
gcc=${gcc_version}
gnat=${gnat_version}
gdb=${gdb_version}
newlib=${newlib_version}
# also use binutils_rpm_release
buildroot=/tmp
testing=no
do_binutils=no # binutils included in gnatnewlib
do_gnatnewlib=yes
do_gdb=yes
#
# Now get started
#
start=`date`
echo PATH=$PATH
if [ ${testing} = yes ] ; then
ECHO=echo
fi
installed_count=`rpm -q -g gnatrtems | wc -l`
if [ ${installed_count} -ne 0 ] ; then
echo This script should be run with NO rtems RPMs installed.
echo It appears that the following rtems RPMs are installed:
echo
rpm -qa | grep rtems
echo
echo Please remove these and restart this script.
exit 1
fi
echo Copying specs files.
if [ ${testing} = no ] ; then
cd ${RTEMS_DIR}
# ./configure || exit 1
make || exit 1
# Now generate all the specs
for target in ${TARGETS}
do
tspecs=`find . -name "${target}*"`
if [ "X${tspecs}" = "X" ] ; then
echo RPM specifications were not generated for ${tspec}.
exit 1
fi
${ECHO} cp -r ${tspecs} ${dst}
done
fi
# clean up a bit before we start
cd ${dst}
test -d log || mkdir log
# do all the tools
for target in ${TARGETS}
do
if [ ${do_binutils} = yes ] ; then
logfile=log/${target}-binutils
specfile=${dst}/${target}-gnat-${gnat}-binutils-${binutils}.spec
echo "rpm -ba ${specfile} >${logfile} 2>&1"
if [ ${testing} = no ] ; then
rpm -ba ${specfile} >${logfile} 2>&1
fi
${ECHO} rm -rf ${dst}/../BUILD/${target}-binutils*
${ECHO} rm -rf ${buildroot}/opt/gnatrtems
else
echo Skipping binutils for ${target}
fi
#
# build gcc/newlib
#
if [ ${do_gnatnewlib} = yes ] ; then
# now build gcc/newlib
# NOTE: This requires having binutils installed and we immediately
# remove it once finished.
# base_binutils_rpm=${dst}/../RPMS/i386/rtems-base-binutils-${binutils}-${binutils_rpm_release}.i386.rpm
# binutils_rpm=${dst}/../RPMS/i386/${target}-binutils-${binutils}-${binutils_rpm_release}.i386.rpm
# if [ ! -f ${binutils_rpm} ] ; then
# echo There is no RPM for binutils for ${target}.
# echo Looked for ${binutils_rpm}.
# fi
# ${ECHO} rpm -i ${base_binutils_rpm}
# ${ECHO} rpm -i ${binutils_rpm}
logfile=log/${target}-gnatnewlib
specfile=${dst}/${target}-gnat-${gnat}-newlib-${newlib}.spec
echo "rpm -ba ${specfile} >${logfile} 2>&1"
if [ ${testing} = no ] ; then
rpm -ba ${specfile} >${logfile} 2>&1
fi
${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
${ECHO} rm -rf ${buildroot}/opt/gnatrtems
# echo uninstalling binutils for ${target}
# if [ ${testing} = no ] ; then
# rpm -e `rpm -qa | grep rtems`
# rm -rf /opt/gnatrtems/*
# fi
else
echo Skipping gcc/newlib for ${target}
fi
#
# build gdb
#
if [ ${do_gdb} = yes ] ; then
# now build gdb
logfile=log/${target}-gdb
specfile=${dst}/${target}-gnat-${gnat}-gdb-${gdb}.spec
echo "rpm -ba ${specfile} >${logfile} 2>&1"
if [ ${testing} = no ] ; then
rpm -ba ${specfile} >${logfile} 2>&1
fi
${ECHO} rm -rf ${dst}/../BUILD/${target}-gdb*
${ECHO} rm -rf ${buildroot}/opt/gnatrtems
else
echo Skipping gdb for ${target}
fi
done
# Now we are done
stop=`date`
echo
echo "Started: " $start
echo "Finished: " $stop
exit 0
-62
View File
@@ -1,62 +0,0 @@
## $Id$
AC_PREREQ(2.52)
AC_INIT([rtems-scripts-ada],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
AC_CONFIG_SRCDIR([binutils])
AM_INIT_AUTOMAKE([no-define foreign 1.6])
# Check for .exe suffix.
# With autoconf > 2.13 AC_EXEEXT is not what we want to use.
AC_MSG_CHECKING([for executable suffix])
case "$host" in
i?86-*cygwin*)
EXEEXT=.exe ;;
esac
AC_SUBST(EXEEXT)
AC_MSG_RESULT([$EXEEXT])
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
. ./setup.cache
# Some linux distributions use /usr/src/packages
# redhat uses /usr/src/redhat
# others might use /usr/src
AC_MSG_CHECKING(for rpm SPECS directory)
if test -d /usr/src/packages/SPECS;
then
RPM_SPECSdir=/usr/src/packages/SPECS;
elif test -d /usr/src/redhat/SPECS;
then
RPM_SPECSdir=/usr/src/redhat/SPECS;
elif test -d /usr/src/SPECS;
then
RPM_SPECSdir=/usr/src/SPECS;
fi
if test x"$RPM_SPECSdir" = x"" ; then
AC_MSG_ERROR(not found)
fi
AC_MSG_RESULT($RPM_SPECSdir)
AC_SUBST(RPM_SPECSdir)
GNATNEWLIBVERS="gnat-${gnat_version}-newlib-${newlib_version}"
AC_SUBST(GNATNEWLIBVERS)
BINUTILSVERS="gnat-${gnat_version}-binutils-${binutils_version}"
AC_SUBST(BINUTILSVERS)
GDBVERS="gnat-${gnat_version}-gdb-${gdb_version}"
AC_SUBST(GDBVERS)
BSPVERS="${rtems_version}"
AC_SUBST(RTEMS_VERSION)
AC_SUBST(BSPVERS)
AC_CONFIG_FILES([Makefile
buildall
mkbinutilspec
mkgnatnewlibspec
mkgdbspec
mkbspspec
binutils/Makefile
gnatnewlib/Makefile
gdb/Makefile])
AC_CONFIG_COMMANDS([default],[[]],[[chmod 755 buildall
]])
AC_OUTPUT
-4
View File
@@ -1,4 +0,0 @@
*.spec
Makefile
Makefile.in
gdb.spec
-26
View File
@@ -1,26 +0,0 @@
##
## $Id$
##
MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec
MKGDBSPEC_DEPS = $(top_builddir)/mkgdbspec gdb.spec.in \
$(top_builddir)/setup.cache
powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
TEMPLATES = gdb.spec.in
RPM_SPECS_DATA = powerpc-rtems-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec
noinst_DATA = $(TEMPLATES)
EXTRA_DIST = $(TEMPLATES)
CLEANFILES = $(RPM_SPECS_DATA)
include $(top_srcdir)/../automake/local.am
-152
View File
@@ -1,152 +0,0 @@
#
# spec file for package rtems
#
# Copyright (c) 1999 OARCorp, Huntsville, AL
#
# please send bugfixes or comments to joel@OARcorp.com
#
# neededforbuild -- nothing
Vendor: OAR Corporation
Distribution: Linux
Name: @Target_alias@-gnat-gdb-collection
Release: @Release@
License: GPL/LGPL
Group: gnatrtems
Provides: rtems-base-gnat-gdb @Target_alias@-gnat-gdb
Autoreqprov: on
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
Version: gnat@gnat_version@
Summary: gdb for target @Target_alias@
Source0: ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
Source1: ftp://cs.nyu.edu/pub/gnat/gnat-@gnat_version@-src.tar.gz
Patch0: gdb-@gdb_version@-rtems-gnat-@gnat_version@-@gdb_patch_version@.diff
Buildroot: /tmp
#
# The original sources are not included in the source RPM.
# If we included them, then the source RPMs for each target
# would duplicate MBs of source unnecessarily. This is
# a duplication of over 30 MBs of source for each of
# the more than 10 targets it is possible to build.
#
# You can get them yourself from the Internet and copy them to
# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
# Or you can try the ftp options of rpm :-)
#
NoSource: 0
NoSource: 1
%description
RTEMS is an open source operating system for embedded systems.
This is the GNU gdb for RTEMS targetting @Target_alias@.
%package -n rtems-base-gnat-gdb
Summary: base package for rtems gdb
Group: rtems
%description -n rtems-base-gnat-gdb
RTEMS is an open source operating system for embedded systems.
This is the base for gdb regardless of target CPU.
%package -n @Target_alias@-gnat-gdb
Summary: rtems gdb for @Target_alias@
Group: rtems
Requires: rtems-base-gnat-gdb
%description -n @Target_alias@-gnat-gdb
RTEMS is an open source operating system for embedded systems.
This is the GNU gdb for RTEMS targetting @Target_alias@.
Authors:
--------
Joel Sherrill (joel@oarcorp.com)
...
%prep
echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
# untar the sources inside @Target_alias@-gnat-gdb
%setup -c -n @Target_alias@-gnat-gdb -a 0 -a 1
cd gdb-@gdb_version@
patch -p0 <../gnat-@gnat_version@-src/src/gdb-@gdb_version@.gnat.diff
%patch0 -p1
%build
test -d build || mkdir build
cd build
../gdb-@gdb_version@/configure --target=@Target_alias@ \
--verbose --prefix=/opt/gnatrtems @extra_configure_arguments@
make CC=gcc CFLAGS="-O2 -g -DRTEMS_TARGET" all
make info
%install
cd build
make prefix=$RPM_BUILD_ROOT/opt/gnatrtems install
make prefix=$RPM_BUILD_ROOT/opt/gnatrtems install-info
# gzip info files
find $RPM_BUILD_ROOT/opt/gnatrtems/info -name "*.info*" | \
grep -v "\.gz$" | xargs -e gzip -f 2>/dev/null
# gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info 2>/dev/null
# gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info-? 2>/dev/null
# gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info-?? 2>/dev/null
%post
if test -d $RPM_INSTALL_PREFIX/rtems/info;
then
rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
test -n "$f" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
done
fi
%postun
if test -d $RPM_INSTALL_PREFIX/rtems/info;
then
rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
test -n "$f" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
done
fi
%files -n rtems-base-gnat-gdb
%dir /opt/gnatrtems/info
%doc /opt/gnatrtems/info/gdb.info*
%doc /opt/gnatrtems/info/mmalloc.info*
# %doc /opt/gnatrtems/info/readline.info*
%dir /opt/gnatrtems/man
%dir /opt/gnatrtems/man/man1
%dir /opt/gnatrtems/include
# We install libbfd from binutils
# /opt/gnatrtems/include/bfd.h
# /opt/gnatrtems/include/bfdlink.h
%dir /opt/gnatrtems/lib
# We install libbfd from binutils
# /opt/gnatrtems/lib/libbfd*
# We use libiberty from gcc
# /opt/gnatrtems/lib/libiberty*
%files -n @Target_alias@-gnat-gdb
%doc /opt/gnatrtems/man/man1/@Target_alias@-gdb.1
%dir /opt/gnatrtems/bin
/opt/gnatrtems/bin/@Target_alias@-gdb@exe_ext@
-4
View File
@@ -1,4 +0,0 @@
*.spec
Makefile
Makefile.in
gnatnewlib.spec
-30
View File
@@ -1,30 +0,0 @@
## $Id$
MKGNATNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgnatnewlibspec
MKGNATNEWLIBSPEC_DEPS = $(top_builddir)/mkgnatnewlibspec gnatnewlib.spec.in \
$(top_builddir)/setup.cache
i386-rtemscoff-$(GNATNEWLIBVERS).spec: $(MKGNATNEWLIBSPEC_DEPS)
$(MKGNATNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtemscoff
powerpc-rtems-$(GNATNEWLIBVERS).spec: $(MKGNATNEWLIBSPEC_DEPS)
$(MKGNATNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
sparc-rtems-$(GNATNEWLIBVERS).spec: $(MKGNATNEWLIBSPEC_DEPS)
$(MKGNATNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
TEMPLATES = gnatnewlib.spec.in
RPM_SPECS_DATA = \
i386-rtemscoff-$(GNATNEWLIBVERS).spec \
powerpc-rtems-$(GNATNEWLIBVERS).spec \
sparc-rtems-$(GNATNEWLIBVERS).spec
noinst_DATA = $(TEMPLATES)
EXTRA_DIST = $(TEMPLATES)
CLEANFILES = $(RPM_SPECS_DATA)
include $(top_srcdir)/../automake/local.am
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
-190
View File
@@ -1,190 +0,0 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
case "$1" in
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing - GNU libit 0.0"
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
aclocal)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acinclude.m4' or \`configure.in'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`configure.in'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acconfig.h' or \`configure.in'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case "$f" in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if [ ! -f y.tab.h ]; then
echo >y.tab.h
fi
if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex|flex)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if [ ! -f lex.yy.c ]; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
makeinfo)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
fi
touch $file
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0
-62
View File
@@ -1,62 +0,0 @@
#!/bin/sh
#
# Usage: mkbinutilspec CPU
#
RTEMS_DIR=`dirname $0`/@top_srcdir@
CFG=setup.cache
dst=@RPM_SPECSdir@
exe_ext=@EXEEXT@
usage()
{
echo "$0 [options] <target_alias>"
echo " options:"
echo " -cfg <setup.cache>"
echo " -o <rpm-spec-dir>"
exit 1 ;
}
while test $# -ge 2; do
case $1 in
-cfg)
shift
CFG=$1
shift
;;
-o)
shift
dst=$1
shift
;;
-*)
echo "invalid option $1";
usage
;;
esac
done
if test ! $# -eq 1;
then
echo "Invalid number of arguments"
usage
fi
# target to build for
target_alias=$1
. ./$CFG
specfile=${dst}/${target_alias}-gnat-${gnat_version}-binutils-${binutils_version}.spec
sed -e "s%@Release@%${binutils_rpm_release}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@binutils_version@%${binutils_version}%g" \
-e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
< ${RTEMS_DIR}/binutils/binutils.spec.in \
> ${specfile}
echo Generated ${specfile}
-62
View File
@@ -1,62 +0,0 @@
#!/bin/sh
#
RTEMS_DIR=`dirname $0`/@top_srcdir@
RTEMS_VERSION=@RTEMS_VERSION@
CFG=setup.cache
dst=@RPM_SPECSdir@
exe_ext=@EXEEXT@
usage()
{
echo "$0 [options] <target_alias> <bsp>"
echo " options:"
echo " -cfg <setup.cache>"
echo " -o <rpm-spec-dir>"
exit 1 ;
}
while test $# -ge 3; do
case $1 in
-cfg)
shift
CFG=$1
shift
;;
-o)
shift
dst=$1
shift
;;
-*)
echo "invalid option $1";
usage
;;
esac
done
if test ! $# -eq 2;
then
echo "Invalid number of arguments"
usage
fi
# target to build for
target_alias=$1
bsp=$2
. ./$CFG
specfile=${dst}/${target_alias}-gnat-${bsp}-${rtems_version}.spec
sed -e "s%@Release@%${rtems_rpm_release}%g" \
-e "s%@bsp@%${bsp}%g" \
-e "s%@rtems_version@%${rtems_version}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
< ${RTEMS_DIR}/rtems/rtems.spec.in \
> ${specfile}
echo Generated ${specfile}
-90
View File
@@ -1,90 +0,0 @@
#!/bin/sh
#
# Usage: mkgdbspec CPU
#
RTEMS_DIR=`dirname $0`/@top_srcdir@
CFG=setup.cache
dst=@RPM_SPECSdir@
exe_ext=@EXEEXT@
usage()
{
echo "$0 [options] <target_alias>"
echo " options:"
echo " -cfg <setup.cache>"
echo " -o <rpm-spec-dir>"
exit 1 ;
}
while test $# -ge 2; do
case $1 in
-cfg)
shift
CFG=$1
shift
;;
-o)
shift
dst=$1
shift
;;
-*)
echo "invalid option $1";
usage
;;
esac
done
if test ! $# -eq 1;
then
echo "Invalid number of arguments"
usage
fi
# target to build for
target_alias=$1
. ./$CFG
specfile=${dst}/${target_alias}-gnat-${gnat_version}-gdb-${gdb_version}.spec
case ${target_alias} in
powerpc*)
extra_configure_arguments="--enable-sim --enable-sim-powerpc --enable-sim-timebase --enable-sim-hardware"
# Enabling this causes the program image to be huge and causes
# some gcc/hosts combinations to run out of memory.
# --enable-sim-inline
;;
sparc*)
extra_configure_arguments="--enable-sim"
;;
*)
;;
esac
sed -e "s%@Release@%${gdb_rpm_release}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@Target_alias@%${target_alias}%g" \
-e "s%@gdb_version@%${gdb_version}%g" \
-e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
-e "s%@gnat_version@%${gnat_version}%g" \
-e "s%@gnat_patch_version@%${gnat_patch_version}%g" \
-e "s%@extra_configure_arguments@%${extra_configure_arguments}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
< ${RTEMS_DIR}/gdb/gdb.spec.in \
> ${specfile}
case ${target_alias} in
powerpc*)
echo "/opt/gnatrtems/bin/${target_alias}-run${exe_ext}"
;;
sparc*)
echo "/opt/gnatrtems/bin/${target_alias}-run${exe_ext}"
echo "/opt/gnatrtems/bin/${target_alias}-sis${exe_ext}"
;;
*) ;;
esac >> ${specfile}
echo Generated ${specfile}
-76
View File
@@ -1,76 +0,0 @@
#!/bin/sh
#
# Usage: mktoolspec CPU
#
RTEMS_DIR=`dirname $0`/@top_srcdir@
CFG=setup.cache
dst=@RPM_SPECSdir@
exe_ext=@EXEEXT@
usage()
{
echo "$0 [options] <target_alias>"
echo " options:"
echo " -cfg <setup.cache>"
echo " -o <rpm-spec-dir>"
exit 1 ;
}
specsrc=${RTEMS_DIR}/gnatnewlib/gnatnewlib.spec.in
while test $# -ge 2; do
case $1 in
-cfg)
shift
CFG=$1
shift
;;
-o)
shift
dst=$1
shift
;;
-a) # alternate specs file
shift
specsrc=$1
shift
;;
-*)
echo "invalid option $1";
usage
;;
esac
done
if test ! $# -eq 1;
then
echo "Invalid number of arguments"
usage
fi
# target to build for
target_alias=$1
. ./$CFG
specfile=${dst}/${target_alias}-gnat-${gnat_version}-newlib-${newlib_version}.spec
sed -e "s%@Release@%${gnatnewlib_rpm_release}%g" \
-e "s%@Target_alias@%${target_alias}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@binutils_version@%${binutils_version}%g" \
-e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
-e "s%@gcc_version@%${gcc_version}%g" \
-e "s%@gcc_patch_version@%${gcc_patch_version}%g" \
-e "s%@gnat_version@%${gnat_version}%g" \
-e "s%@gnat_patch_version@%${gnat_patch_version}%g" \
-e "s%@newlib_version@%${newlib_version}%g" \
-e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
-e "s%@gnat_newlib_patch_version@%${gnat_newlib_patch_version}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
< ${specsrc} \
> ${specfile}
echo Generated ${specfile}.
-40
View File
@@ -1,40 +0,0 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id$
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here
-32
View File
@@ -1,32 +0,0 @@
#!/bin/sh
#
# A simple shell script to build several rpms in a row.
#
# Used for testing rtems.spec.in
#
# Some linux distributions use /usr/src/packages
# redhat uses /usr/src/redhat
# others might use /usr/src
if test -d /usr/src/packages/SPECS;
then
dst=/usr/src/packages/SPECS;
elif test -d /usr/src/redhat/SPECS;
then
dst=/usr/src/redhat/SPECS;
elif test -d /usr/src/SPECS/;
then
dst=/usr/src/SPECS;
fi
./mkspec pc386 i386-rtems
rpm -ba $dst/rtems-i386-rtems-pc386.spec
./mkspec gensh1 sh-rtemself
rpm -ba $dst/rtems-sh-rtemself-gensh1.spec
./mkspec mcp750 powerpc-rtems
rpm -ba $dst/rtems-powerpc-rtems-mcp750.spec
-19
View File
@@ -1,19 +0,0 @@
#!/bin/sh
#
RTEMS_DIR=`dirname $0`
RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
target_alias=$1
bsp=$2
release=0
#${RTEMS_DIR}/scripts/mkbspspec $bsp $target_alias
#${RTEMS_DIR}/scripts/mkbinutilspec $target_alias
#${RTEMS_DIR}/scripts/mkgnatnewlibspec $target_alias
#${RTEMS_DIR}/scripts/mkgdbspec $target_alias
./mkbinutilspec $target_alias
./mkgnatnewlibspec $target_alias
./mkgdbspec $target_alias
-107
View File
@@ -1,107 +0,0 @@
#!/bin/bash
CFG=setup.cache
# RTEMS tools setup
if test ! -f ./$CFG;
then
echo -n "restoring default setup.cache .."
cp ./setup.def ./$CFG
echo " done"
fi
echo -n "loading setup from ./$CFG .."
. ./$CFG
echo " done"
echo
menu_setup()
{
while true;
do
echo
echo " GNAT/RTEMS Source packages setup"
echo
echo "0 binutils version : $binutils_version"
echo "1 binutils patch version : $binutils_patch_version"
echo "2 binutils rpm release : $binutils_rpm_release"
echo "3 gcc version : $gcc_version"
echo "4 gcc patch version : $gcc_patch_version"
echo "5 gnat version : $gnat_version"
echo "6 gnat patch version : $gnat_patch_version"
echo "7 newlib version : $newlib_version"
echo "8 newlib patch version : $newlib_patch_version"
echo "9 gnat newlib patch version : $gnat_newlib_patch_version"
echo "a gnat/newlib rpm release : $gnatnewlib_rpm_release"
echo "b gdb version : $gdb_version"
echo "c gdb patch version : $gdb_patch_version"
echo "d gdb rpm release : $gdb_rpm_release"
echo "e rtems version : $rtems_version"
echo "f rtems rpm release : $rtems_rpm_release"
echo "g rpm build root : $rpm_build_root"
echo
echo -n "[0-9a-g] or any other key to quit >"
read sel
case $sel in
0) echo -n "BINUTILS source >" ; read binutils_version ;;
1) echo -n "BINUTILS patch version >" ; read binutils_patch_version ;;
2) echo -n "BINUTILS RPM release >" ; read binutils_rpm_release ;;
3) echo -n "GCC source >" ; read gcc_version ;;
4) echo -n "GCC patch version>" ; read gcc_patch_version ;;
5) echo -n "GNAT source >" ; read gnat_version ;;
6) echo -n "GNAT patch version>" ; read gnat_patch_version ;;
7) echo -n "NEWLIB source >" ; read newlib_version ;;
8) echo -n "NEWLIB patch version>" ; read newlib_patch_version ;;
9) echo -n "GNAT NEWLIB patch version>" ; read gnat_newlib_patch_version ;;
a) echo -n "GNAT/NEWLIB RPM release >" ; read gnatnewlib_rpm_release ;;
b) echo -n "GDB source >" ; read gdb_version ;;
c) echo -n "GDB patch version>" ; read gdb_patch_version ;;
d) echo -n "GDB RPM release >" ; read gdb_rpm_release ;;
e) echo -n "RTEMS source >" ; read rtems_version ;;
f) echo -n "RTEMS RPM release >" ; read rtems_rpm_release ;;
g) echo -n "RPM build root >" ; read rpm_build_root ;;
*)
return 0 ;;
esac
done
}
save_setup()
{
echo -n "saving setup to $CFG .."
echo "# RTEMS tools setup" > $CFG
echo "binutils_version=$binutils_version" >> $CFG
echo "binutils_patch_version=$binutils_patch_version" >> $CFG
echo "binutils_rpm_release=$binutils_rpm_release" >> $CFG
echo "newlib_version=$newlib_version" >> $CFG
echo "newlib_patch_version=$newlib_patch_version" >> $CFG
echo "gcc_version=$gcc_version" >> $CFG
echo "gcc_patch_version=$gcc_patch_version" >> $CFG
echo "gnat_version=$gnat_version" >> $CFG
echo "gnat_patch_version=$gnat_patch_version" >> $CFG
echo "gnat_newlib_patch_version=$gnat_newlib_patch_version" >> $CFG
echo "gnatnewlib_rpm_release=$gnatnewlib_rpm_release" >> $CFG
echo "gdb_version=$gdb_version" >> $CFG
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
echo "rtems_version=$rtems_version" >> $CFG
echo "rtems_rpm_release=$rtems_rpm_release" >> $CFG
echo "rpm_build_root=$rpm_build_root" >> $CFG
echo " done"
test -f Makefile || ./configure
}
menu_setup
echo
echo -n "Save setup [y|n] >"
read sel
case $sel in
''|y*|Y*) save_setup ;;
*) ;;
esac
-18
View File
@@ -1,18 +0,0 @@
# RTEMS tools setup
binutils_version=2.10
binutils_patch_version=20001107
binutils_rpm_release=3
newlib_version=1.9.0
newlib_patch_version=20010622
gcc_version=2.8.1
gcc_patch_version=20000429
gnat_version=3.13p
gnat_newlib_patch_version=20010911
gnat_patch_version=20000829
gnatnewlib_rpm_release=3
gdb_version=4.17
gdb_patch_version=20000918
gdb_rpm_release=1
rtems_version=NA
rtems_rpm_release=1
rpm_build_root=/tmp