OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/rtems-20020807/scripts
    from Rev 1028 to Rev 1765
    Reverse comparison

Rev 1028 → Rev 1765

/gcc3newlib/target-g77.add
0,0 → 1,19
# ==============================================================
# @target_alias@-g77
# ==============================================================
%package -n @target_alias@-g77
Provides: @target_alias@-g77
Summary: gcc/g77 compiler for @target_alias@
Group: rtems
Requires: rtems-base-g77 @target_alias@-gcc
 
%description -n @target_alias@-g77
RTEMS is an open source operating system for embedded systems.
 
This is the gcc/g77 compiler for @target_alias@
 
%files -n @target_alias@-g77 -f build/files.g77
%dir %{_prefix}/bin
%{_prefix}/bin/@target_alias@-g77@exe_ext@
 
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/f771@exe_ext@
/gcc3newlib/HISTORY
0,0 → 1,8
#
# History of the gccnewlib RPMs
#
# HISTORY,v 1.1 2002/03/28 18:17:40 joel Exp
#
 
Created since gcc 2.95.x needed to be supported while still making
gcc 3.x RPMs available.
/gcc3newlib/Makefile.in
0,0 → 1,352
# Makefile.in generated by automake 1.6.2 from Makefile.am.
# @configure_input@
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
 
@SET_MAKE@
SHELL = @SHELL@
 
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
 
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
 
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
 
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
 
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AWK = @AWK@
BINUTILSVERS = @BINUTILSVERS@
BSPVERS = @BSPVERS@
DEPDIR = @DEPDIR@
ENDIF = @ENDIF@
GCC3NEWLIBVERS = @GCC3NEWLIBVERS@
GCCNEWLIBVERS = @GCCNEWLIBVERS@
GDBVERS = @GDBVERS@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
MAKE = @MAKE@
PACKAGE = @PACKAGE@
PROJECT_ROOT = @PROJECT_ROOT@
PROJECT_TOPdir = @PROJECT_TOPdir@
RPM_CPU = @RPM_CPU@
RPM_SPECSdir = @RPM_SPECSdir@
RTEMS_TOPdir = @RTEMS_TOPdir@
RTEMS_VERSION = @RTEMS_VERSION@
STRIP = @STRIP@
VERSION = @VERSION@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
 
MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgcc3newlibspec
 
SUBPACKAGES = gccnewlib.add \
base-gcc.add target-gcc.add \
base-g77.add target-g77.add \
base-gcj.add target-gcj.add \
target-objc.add \
target-c++.add
 
CLEANFILES = gccnewlib.spec.in gccnewlib_c_only.spec.in $(RPM_SPECS_DATA)
 
C_ONLY_ARG = -a $(top_builddir)/gcc3newlib/gccnewlib_c_only.spec.in
 
MKGCCNEWLIBSPEC_DEPS = $(top_builddir)/mkgcc3newlibspec gccnewlib.spec.in \
$(top_builddir)/setup.cache
 
MKGCCNEWLIB_C_ONLY_SPEC_DEPS = $(top_builddir)/mkgcc3newlibspec \
gccnewlib_c_only.spec.in $(top_builddir)/setup.cache
 
 
RPM_SPECS_DATA = \
arm-rtems-$(GCC3NEWLIBVERS).spec \
c4x-rtems-$(GCC3NEWLIBVERS).spec \
h8300-rtems-$(GCC3NEWLIBVERS).spec \
hppa1.1-rtems-$(GCC3NEWLIBVERS).spec \
i386-rtems-$(GCC3NEWLIBVERS).spec i960-rtems-$(GCC3NEWLIBVERS).spec \
m68k-rtems-$(GCC3NEWLIBVERS).spec \
mips-rtems-$(GCC3NEWLIBVERS).spec mips64orion-rtems-$(GCC3NEWLIBVERS).spec \
powerpc-rtems-$(GCC3NEWLIBVERS).spec sh-rtems-$(GCC3NEWLIBVERS).spec \
sh-rtemself-$(GCC3NEWLIBVERS).spec sparc-rtems-$(GCC3NEWLIBVERS).spec
 
 
EXTRA_DIST = $(SUBPACKAGES)
 
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
subdir = gcc3newlib
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DATA = $(RPM_SPECS_DATA)
 
DIST_COMMON = README Makefile.am Makefile.in
all: all-am
 
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --foreign gcc3newlib/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
uninstall-info-am:
RPM_SPECSDATA_INSTALL = $(INSTALL_DATA)
install-RPM_SPECSDATA: $(RPM_SPECS_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir)
@list='$(RPM_SPECS_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \
$(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \
done
 
uninstall-RPM_SPECSDATA:
@$(NORMAL_UNINSTALL)
@list='$(RPM_SPECS_DATA)'; for p in $$list; do \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \
rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \
done
tags: TAGS
TAGS:
 
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
 
installdirs:
$(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir)
 
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
 
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
 
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
 
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
 
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
 
clean-am: clean-generic clean-local mostlyclean-am
 
distclean: distclean-am
 
distclean-am: clean-am distclean-generic distclean-local
 
dvi: dvi-am
 
dvi-am:
 
info: info-am
 
info-am:
 
install-data-am: install-RPM_SPECSDATA
 
install-exec-am:
 
install-info: install-info-am
 
install-man:
 
installcheck-am:
 
maintainer-clean: maintainer-clean-am
 
maintainer-clean-am: distclean-am maintainer-clean-generic
 
mostlyclean: mostlyclean-am
 
mostlyclean-am: mostlyclean-generic
 
uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am
 
.PHONY: all all-am check check-am clean clean-generic clean-local \
distclean distclean-generic distclean-local distdir dvi dvi-am \
info info-am install install-RPM_SPECSDATA install-am \
install-data install-data-am install-exec install-exec-am \
install-info install-info-am install-man install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
uninstall uninstall-RPM_SPECSDATA uninstall-am \
uninstall-info-am
 
 
gccnewlib.spec.in: $(SUBPACKAGES)
cat $^ \
| sed -e 's%@GCCLANGS@%%g' > $@
 
gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add \
target-c++.add
cat $^ \
| sed -e "s%@GCCLANGS@%\'--enable-languages=c,c++\'%g" > $@
 
arm-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . arm-rtems
 
c4x-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . c4x-rtems
 
h8300-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . h8300-rtems
 
hppa1.1-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems
 
i386-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i386-rtems
 
i960-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i960-rtems
 
m68k-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . m68k-rtems
 
mips64orion-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems
 
mips-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . mips-rtems
 
powerpc-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
 
sh-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . sh-rtems
 
sh-rtemself-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . sh-rtemself
 
sparc-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
 
debug:
@echo
@echo "\"make debug\" is obsolete, instead use:"
@echo " make VARIANT=DEBUG"
@echo
 
.PHONY: debug
 
profile:
@echo
@echo "\"make profile\" is obsolete, instead use:"
@echo " make VARIANT=PROFILE"
@echo
 
.PHONY: profile
 
preinstall-am: $(PREINSTALL_FILES)
preinstall: preinstall-am
.PHONY: preinstall preinstall-am
 
depend-am:
depend: depend-am
.PHONY: depend depend-am
 
${ARCH}:
mkdir ${ARCH}
 
clean-local:
$(RM) -r o-optimize o-debug o-profile $(CLEANDIRS)
$(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp
 
distclean-local:
$(RM) Depends-o-optimize Depends-o-debug Depends-o-profile
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
/gcc3newlib/base-gcj.add
0,0 → 1,20
# ==============================================================
# rtems-base-gcj
# ==============================================================
%package -n rtems-base-gcj
Provides: rtems-base-gcj
Summary: base package for rtems gcc/java compiler (gcj).
Group: rtems
Requires: rtems-base-gcc
 
%description -n rtems-base-gcj
RTEMS is an open source operating system for embedded systems.
 
This is the files for gcc/java (gcj) that are shared by all targets.
 
%files -n rtems-base-gcj
%dir %{_prefix}/bin
%{_prefix}/bin/jcf-dump@exe_ext@
%{_prefix}/bin/jv-scan@exe_ext@
%{_prefix}/bin/gcjh@exe_ext@
 
/gcc3newlib/base-g77.add
0,0 → 1,42
# ==============================================================
# rtems-base-g77
# ==============================================================
%package -n rtems-base-g77
Provides: rtems-base-g77
Summary: rtems base package for gcc/g77 compiler
Group: rtems
Requires: rtems-base-gcc
 
%description -n rtems-base-g77
RTEMS is an open source operating system for embedded systems.
 
This is the files for gcc/g77 that are shared by all targets.
 
%files -n rtems-base-g77
%dir %{_prefix}/info
%doc %{_prefix}/info/g77.info*.gz
 
%dir %{_prefix}/man
%dir %{_prefix}/man/man1
%doc %{_prefix}/man/man1/@target_alias@-g77.1*
 
%post -n rtems-base-g77
if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
then
rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
test -n "$f" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
done
fi
 
%postun -n rtems-base-g77
if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
then
rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
test -n "$f" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
done
fi
 
/gcc3newlib/target-c++.add
0,0 → 1,25
# ==============================================================
# @target_alias@-c++
# ==============================================================
%package -n @target_alias@-c++
Provides: @target_alias@-c++
Summary: gcc/g++ compiler (c++) for @target_alias@
Group: rtems
Requires: rtems-base-gcc @target_alias@-gcc
 
%description -n @target_alias@-c++
RTEMS is an open source operating system for embedded systems.
 
This is the gcc/g++ compiler for @target_alias@
 
%files -n @target_alias@-c++ -f build/files.g++
%doc %{_prefix}/man/man1/@target_alias@-g++.1*
 
%dir %{_prefix}/bin
%{_prefix}/bin/@target_alias@-c++@exe_ext@
%{_prefix}/bin/@target_alias@-g++@exe_ext@
%{_prefix}/bin/@target_alias@-c++filt@exe_ext@
 
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/cc1plus@exe_ext@
%dir %{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include/g++
/gcc3newlib/gccnewlib.add
0,0 → 1,193
#
# spec file for building gcc for rtems
#
# Copyright (c) 1999,2000,2001 OARCorp, Huntsville, AL
#
# please send bugfixes or comments to joel@OARcorp.com
#
 
%define _prefix @prefix@
 
Vendor: OAR Corporation
Distribution: Linux
Name: @target_alias@-gcc-newlib
Summary: gcc and newlib C Library for @target_alias@.
Group: rtems
Release: @Release@
License: gcc is GPL/LGPL ; newlib no has restrictions on run-time usage
 
Autoreqprov: on
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
 
Version: gcc@gcc_version@newlib@newlib_version@
# gcc 3.x and gcc 2.9
# Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.bz2
# gcc 2.95.x
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.bz2
Source1: ftp://sources.redhat.com/pub/newlib/newlib-@newlib_version@.tar.gz
@PATCH1@
@PATCH3@
Buildroot: %{_tmppath}/%{name}
 
#
# 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 gcc's and newlib C Library's sources with patches for RTEMS.
 
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|packages]/SOURCES directory ($RPM_SOURCE_DIR).
Or you can try the ftp options of rpm :-)
 
%prep
# untar the sources inside @target_alias@-gcc-newlib
%setup -c -T -n %{name} -a0 -a1
 
@PATCH2@
@PATCH4@
 
# Fix timestamps
cd gcc-@gcc_version@
contrib/gcc_update --touch
cd ..
 
# Copy the C library into gcc's source tree
ln -s ../newlib-@newlib_version@/newlib gcc-@gcc_version@
test -d build || mkdir build
 
%build
cd build
 
# HACK: This should be %{target} != %{build}, but SuSE's rpm screws it.
# %if "%{_target_os}" != "%{_build_os}"
# CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"
# %endif
 
../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \
--with-gnu-as --with-gnu-ld --with-newlib --verbose \
--with-system-zlib --disable-nls \
--enable-version-specific-runtime-libs \
--enable-threads=rtems --prefix=%{_prefix} @GCCLANGS@
make all
make info
 
%install
cd build
# # Bug in gcc-2.95.1: It doesn't build this installation directory
# # If it doesn't find it, gcc doesn't install @target_alias@/bin/gcc
# ../gcc-@gcc_version@/mkinstalldirs \
# $RPM_BUILD_ROOT%{_prefix}/@target_alias@/bin
#
 
make prefix=$RPM_BUILD_ROOT%{_prefix} install
cd @target_alias@/newlib
make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
# cd back to build/
cd ../..
 
# Bug in gcc-3.0.x: It puts the build dirs into *.la files
files=`find ${RPM_BUILD_ROOT}%{_prefix}/@target_alias@/lib -name '*.la'`
test -n "$files" && for i in $files; do
rm -f $i
done
 
# Bug in gcc-2.95.x: It bogusly tries to share cpp for all targets.
# Rename it to target_alias-cpp
# if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@;
# then
# mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@ \
# $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp@exe_ext@
# fi
 
# gzip info files
gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null
 
rm -f dirs ;
echo "%dir %{_prefix}/lib" >> dirs ;
echo "%dir %{_prefix}/lib/gcc-lib" >> dirs ;
echo "%dir %{_prefix}/lib/gcc-lib/@target_alias@" >> dirs ;
 
# Collect multilib subdirectories
f=`gcc/xgcc -Bgcc/ --print-multi-lib | sed -e 's,;.*$,,'`
 
TGTDIR="%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@"
for i in $f; do
case $i in
\.) echo "%dir ${TGTDIR}" >> dirs
;;
*) echo "%dir ${TGTDIR}/$i" >> dirs
;;
esac
done
 
TGTDIR="%{_prefix}/@target_alias@/lib"
for i in $f; do
case $i in
\.) echo "%dir ${TGTDIR}" >> dirs
;;
*) echo "%dir ${TGTDIR}/$i" >> dirs
;;
esac
done
 
# Collect files to go into different packages
cp dirs files.gcc
cp dirs files.g77
cp dirs files.objc
cp dirs files.gcj
cp dirs files.g++
 
TGTDIR="%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@"
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
for i in $f; do
case $i in
*lib*.la);; # ignore: gcc produces bogus libtool libs
*f771) ;;
*cc1obj) ;;
*libobjc*) echo "$i" >> files.objc ;;
*include/objc*) ;;
*include/g++*);;
*jc1) ;;
*jvgenmain) ;;
*libstdc++.a) echo "$i" >> files.g++ ;;
*libsupc++.a) echo "$i" >> files.g++ ;;
*) echo "$i" >> files.gcc ;;
esac
done
 
TGTDIR="%{_prefix}/@target_alias@/lib"
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
for i in $f; do
case $i in
*lib*.la);; # ignore - gcc produces bogus libtool libs
*libiberty.a) ;; # ignore - GPL'ed
# all other files belong to gcc
*) echo "$i" >> files.gcc ;;
esac
done
 
%clean
# let rpm --clean remove BuildRoot iif using the default BuildRoot
test "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}" && \
rm -rf $RPM_BUILD_ROOT
/gcc3newlib/target-gcc.add
0,0 → 1,24
# ==============================================================
# @target_alias@-gcc
# ==============================================================
%package -n @target_alias@-gcc
Provides: @target_alias@-gcc
Summary: rtems gcc and newlib C Library for @target_alias@
Group: rtems
Requires: @target_alias@-binutils rtems-base-gcc
 
%description -n @target_alias@-gcc
RTEMS is an open source operating system for embedded systems.
 
This is gcc and newlib C Library for @target_alias@.
 
%files -n @target_alias@-gcc -f build/files.gcc
%doc %{_prefix}/man/man1/@target_alias@-gcc.1*
 
%{_prefix}/bin/@target_alias@-cpp@exe_ext@
%{_prefix}/bin/@target_alias@-gcc@exe_ext@
%{_prefix}/bin/@target_alias@-gcov@exe_ext@
%{_prefix}/bin/@target_alias@-gccbug@exe_ext@
%{_prefix}/@target_alias@/include
 
%dir %{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include
/gcc3newlib/target-objc.add
0,0 → 1,17
# ==============================================================
# @target_alias@-objc
# ==============================================================
%package -n @target_alias@-objc
Provides: @target_alias@-objc
Summary: gcc/objc compiler for @target_alias@
Group: rtems
Requires: @target_alias@-gcc
 
%description -n @target_alias@-objc
RTEMS is an open source operating system for embedded systems.
 
This is the gcc/objc compiler for @target_alias@
 
%files -n @target_alias@-objc -f build/files.objc
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj@exe_ext@
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc
/gcc3newlib/Makefile.am
0,0 → 1,85
##
## Makefile.am,v 1.2 2002/05/15 16:37:30 joel Exp
##
 
MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgcc3newlibspec
 
SUBPACKAGES = gccnewlib.add \
base-gcc.add target-gcc.add \
base-g77.add target-g77.add \
base-gcj.add target-gcj.add \
target-objc.add \
target-c++.add
 
gccnewlib.spec.in: $(SUBPACKAGES)
cat $^ \
| sed -e 's%@GCCLANGS@%%g' > $@
CLEANFILES = gccnewlib.spec.in
 
gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add \
target-c++.add
cat $^ \
| sed -e "s%@GCCLANGS@%\'--enable-languages=c,c++\'%g" > $@
CLEANFILES += gccnewlib_c_only.spec.in
 
C_ONLY_ARG = -a $(top_builddir)/gcc3newlib/gccnewlib_c_only.spec.in
 
MKGCCNEWLIBSPEC_DEPS = $(top_builddir)/mkgcc3newlibspec gccnewlib.spec.in \
$(top_builddir)/setup.cache
MKGCCNEWLIB_C_ONLY_SPEC_DEPS = $(top_builddir)/mkgcc3newlibspec \
gccnewlib_c_only.spec.in $(top_builddir)/setup.cache
 
arm-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . arm-rtems
 
c4x-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . c4x-rtems
 
h8300-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . h8300-rtems
 
hppa1.1-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems
 
i386-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i386-rtems
 
i960-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i960-rtems
 
m68k-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . m68k-rtems
 
mips64orion-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems
 
mips-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . mips-rtems
 
powerpc-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
 
sh-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . sh-rtems
 
sh-rtemself-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . sh-rtemself
 
sparc-rtems-$(GCC3NEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
$(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
 
RPM_SPECS_DATA = \
arm-rtems-$(GCC3NEWLIBVERS).spec \
c4x-rtems-$(GCC3NEWLIBVERS).spec \
h8300-rtems-$(GCC3NEWLIBVERS).spec \
hppa1.1-rtems-$(GCC3NEWLIBVERS).spec \
i386-rtems-$(GCC3NEWLIBVERS).spec i960-rtems-$(GCC3NEWLIBVERS).spec \
m68k-rtems-$(GCC3NEWLIBVERS).spec \
mips-rtems-$(GCC3NEWLIBVERS).spec mips64orion-rtems-$(GCC3NEWLIBVERS).spec \
powerpc-rtems-$(GCC3NEWLIBVERS).spec sh-rtems-$(GCC3NEWLIBVERS).spec \
sh-rtemself-$(GCC3NEWLIBVERS).spec sparc-rtems-$(GCC3NEWLIBVERS).spec
CLEANFILES += $(RPM_SPECS_DATA)
 
EXTRA_DIST = $(SUBPACKAGES)
 
include $(top_srcdir)/../automake/local.am
/gcc3newlib/base-gcc.add
0,0 → 1,53
# ==============================================================
# rtems-base-gcc
# ==============================================================
%package -n rtems-base-gcc
Provides: rtems-base-gcc
Summary: base package for rtems gcc and newlib C Library
Group: rtems
 
%description -n rtems-base-gcc
 
RTEMS is an open source operating system for embedded systems.
 
This is the files for gcc and newlib that are shared by all targets.
 
%files -n rtems-base-gcc
%dir %{_prefix}/info
%doc %{_prefix}/info/cpp.info*.gz
%doc %{_prefix}/info/cppinternals.info*.gz
%doc %{_prefix}/info/gcc.info*.gz
%doc %{_prefix}/info/libc.info*.gz
%doc %{_prefix}/info/libm.info*.gz
 
%dir %{_prefix}/man
%dir %{_prefix}/man/man1
%doc %{_prefix}/man/man1/cpp.1*
%doc %{_prefix}/man/man1/gcov.1*
%dir %{_prefix}/man/man7
%doc %{_prefix}/man/man7/fsf-funding.7*
%doc %{_prefix}/man/man7/gfdl.7*
%doc %{_prefix}/man/man7/gpl.7*
 
%dir %{_prefix}/include
 
%post -n rtems-base-gcc
if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
then
rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
test -n "$f" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
done
fi
 
%postun -n rtems-base-gcc
if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
then
rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
test -n "$f" && for i in $f; do
install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
done
fi
 
/gcc3newlib/README
0,0 → 1,8
#
# README,v 1.1 2002/03/28 18:17:40 joel Exp
#
 
This directory contains RPM-spec file fragments (*.add) which are used to
compose the toolchain specs.
 
Cf. Makefile.am for details on how the toolchain specs get composed.
/gcc3newlib/target-gcj.add
0,0 → 1,21
# ==============================================================
# @target_alias@-gcj
# ==============================================================
%package -n @target_alias@-gcj
Provides: @target_alias@-gcj
Summary: gcc/java compiler (gcj) for @target_alias@
Group: rtems
Requires: rtems-base-gcj @target_alias@-gcc
 
%description -n @target_alias@-gcj
RTEMS is an open source operating system for embedded systems.
 
This is the gcc/java compiler for @target_alias@
 
%files -n @target_alias@-gcj -f build/files.gcj
%dir %{_prefix}/bin
%{_prefix}/bin/@target_alias@-gcj@exe_ext@
 
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/jc1@exe_ext@
%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain@exe_ext@
 
gcc3newlib Property changes : Added: svn:ignore ## -0,0 +1,7 ## +*.spec +Makefile +Makefile.in +gccnewlib.spec +gccnewlib.spec.in +gccnewlib_c_only.spec +gccnewlib_c_only.spec.in Index: binutils/binutils.add =================================================================== --- binutils/binutils.add (nonexistent) +++ binutils/binutils.add (revision 1765) @@ -0,0 +1,100 @@ +# +# spec file for binutils package targetting rtems +# +# Copyright (c) 1999,2000,2002 OARCorp, Huntsville, AL +# +# please send bugfixes or comments to joel@OARcorp.com +# + +%define _prefix @prefix@ + +Vendor: OAR Corporation +Distribution: Linux +Name: @target_alias@-binutils-collection +Summary: binutils for target @target_alias@ +Group: rtems +Release: @Release@ +License: GPL/LGPL + +Autoreqprov: off +Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com +Prefix: %{_prefix} +BuildRoot: %{_tmppath}/@target_alias@-binutils + +Version: @binutils_version@ +Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2 +@PATCH1@ + +# +# 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. + +%prep +# untar the sources inside @target_alias@-binutils +%setup -c -n @target_alias@-binutils +@PATCH2@ + test -d build || mkdir build + +%build +# HACK: This should be %{target} != %{build}, but SuSE's rpm screws it. +%if "%{_target_os}" != "%{_build_os}" + CONFIGURE_ARGS="--build=%{_build} --host=%{_target}" +%endif + + cd build + ../binutils-@binutils_version@/configure ${CONFIGURE_ARGS} --target=@target_alias@ \ + --verbose --prefix=%{_prefix} + + make all + make info + + +%install + cd build + make prefix=$RPM_BUILD_ROOT%{_prefix} install + make prefix=$RPM_BUILD_ROOT%{_prefix} install-info +# A bug in binutils: binutils does not install share/locale +# however it uses it + ../binutils-@binutils_version@/mkinstalldirs \ + $RPM_BUILD_ROOT%{_prefix}/share/locale + +# gzip info files + gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null + gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null + + if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz; + then +# These are only present in binutils >= 2.9.5 + find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \ + sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files + else + touch ../files + fi + +# We assume that info/dir exists when building the RPMs + rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir + f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'` + test x"$f" != x"" && for i in $f; do + install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir + done + +%clean +# let rpm --clean remove BuildRoot iif using the default BuildRoot + test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \ + rm -rf $RPM_BUILD_ROOT + Index: binutils/HISTORY =================================================================== --- binutils/HISTORY (nonexistent) +++ binutils/HISTORY (revision 1765) @@ -0,0 +1,29 @@ +# +# History of the binutils RPMs +# +# HISTORY,v 1.4 2001/01/03 16:50:24 joel Exp +# + +RPM Version binutils-2.10-3 +=========================== ++ Add reloc16.c fix for H8. + +binutils-2.10-rtems-20001102.diff + - adds reloc16.c patch from Nick Clifton + +RPM Version binutils-2.10-1 +=========================== ++ Add initial support for the ARM. ++ Adds support for the h8300. + +binutils-2.10-rtems-20000628.diff + - adds h8300 support. + +RPM Version binutils-2.9.5.0.24-1 +================================= ++ Corrects the object format for numerous RTEMS targets. Released with + RTEMS 4.5.0-beta3a. + +binutils-2.9.5.0.24-rtems-20000207.diff + - base line + Index: binutils/Makefile.in =================================================================== --- binutils/Makefile.in (nonexistent) +++ binutils/Makefile.in (revision 1765) @@ -0,0 +1,342 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +MKBINUTILSSPEC = $(SHELL) $(top_builddir)/mkbinutilspec + +SUBPACKAGES = binutils.add \ + base-binutils.add target-binutils.add + +CLEANFILES = binutils.spec.in $(RPM_SPECS_DATA) + +MKBINUTILSSPEC_DEPS = $(top_builddir)/mkbinutilspec binutils.spec.in \ + $(top_builddir)/setup.cache + + +RPM_SPECS_DATA = \ + a29k-rtems-$(BINUTILSVERS).spec arm-rtems-$(BINUTILSVERS).spec \ + c4x-rtems-$(BINUTILSVERS).spec h8300-rtems-$(BINUTILSVERS).spec \ + hppa1.1-rtems-$(BINUTILSVERS).spec \ + i386-rtems-$(BINUTILSVERS).spec i960-rtems-$(BINUTILSVERS).spec \ + m68k-rtems-$(BINUTILSVERS).spec \ + mips-rtems-$(BINUTILSVERS).spec mips64orion-rtems-$(BINUTILSVERS).spec \ + or32-rtems-$(BINUTILSVERS).spec \ + powerpc-rtems-$(BINUTILSVERS).spec sh-rtems-$(BINUTILSVERS).spec \ + sh-rtemself-$(BINUTILSVERS).spec sparc-rtems-$(BINUTILSVERS).spec + + +EXTRA_DIST = $(SUBPACKAGES) + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = binutils +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(RPM_SPECS_DATA) + +DIST_COMMON = Makefile.am Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign binutils/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +RPM_SPECSDATA_INSTALL = $(INSTALL_DATA) +install-RPM_SPECSDATA: $(RPM_SPECS_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done + +uninstall-RPM_SPECSDATA: + @$(NORMAL_UNINSTALL) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-RPM_SPECSDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-local \ + distclean distclean-generic distclean-local distdir dvi dvi-am \ + info info-am install install-RPM_SPECSDATA install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-RPM_SPECSDATA uninstall-am \ + uninstall-info-am + + +binutils.spec.in: $(SUBPACKAGES) + cat $^ > $@ + +a29k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . a29k-rtems + +arm-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems + +c4x-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems + +h8300-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems + +hppa1.1-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems + +i386-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems + +i960-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems + +m68k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems + +mips64orion-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems +mips-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems + +or32-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . or32-rtems + +powerpc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems + +sh-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems + +sh-rtemself-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself + +sparc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: binutils/target-binutils.add =================================================================== --- binutils/target-binutils.add (nonexistent) +++ binutils/target-binutils.add (revision 1765) @@ -0,0 +1,47 @@ +# ============================================================== +# @target_alias@-binutils +# ============================================================== +%package -n @target_alias@-binutils +Provides: @target_alias@-binutils +Summary: rtems binutils for @target_alias@ +Group: rtems +Requires: rtems-base-binutils +Autoreqprov: off + +%description -n @target_alias@-binutils + +RTEMS is an open source operating system for embedded systems. + +This is the GNU binutils for RTEMS targetting @target_alias@. + +%files -n @target_alias@-binutils +%doc %{_prefix}/man/man1/@target_alias@-*.1 + +%dir %{_prefix}/bin +%{_prefix}/bin/@target_alias@-addr2line@exe_ext@ +%{_prefix}/bin/@target_alias@-ar@exe_ext@ +%{_prefix}/bin/@target_alias@-as@exe_ext@ +# c++filt now comes from gcc +# %{_prefix}/bin/@target_alias@-c++filt@exe_ext@ +%{_prefix}/bin/@target_alias@-gasp@exe_ext@ +%{_prefix}/bin/@target_alias@-ld@exe_ext@ +%{_prefix}/bin/@target_alias@-nm@exe_ext@ +%{_prefix}/bin/@target_alias@-objcopy@exe_ext@ +%{_prefix}/bin/@target_alias@-objdump@exe_ext@ +%{_prefix}/bin/@target_alias@-ranlib@exe_ext@ +%{_prefix}/bin/@target_alias@-readelf@exe_ext@ +%{_prefix}/bin/@target_alias@-size@exe_ext@ +%{_prefix}/bin/@target_alias@-strings@exe_ext@ +%{_prefix}/bin/@target_alias@-strip@exe_ext@ + +%dir %{_prefix}/@target_alias@ +%dir %{_prefix}/@target_alias@/bin +%{_prefix}/@target_alias@/bin/ar@exe_ext@ +%{_prefix}/@target_alias@/bin/as@exe_ext@ +%{_prefix}/@target_alias@/bin/ld@exe_ext@ +%{_prefix}/@target_alias@/bin/nm@exe_ext@ +%{_prefix}/@target_alias@/bin/ranlib@exe_ext@ +%{_prefix}/@target_alias@/bin/strip@exe_ext@ + +%dir %{_prefix}/@target_alias@/lib +%{_prefix}/@target_alias@/lib/ldscripts Index: binutils/base-binutils.add =================================================================== --- binutils/base-binutils.add (nonexistent) +++ binutils/base-binutils.add (revision 1765) @@ -0,0 +1,64 @@ +# ============================================================== +# rtems-base-binutils +# ============================================================== +%package -n rtems-base-binutils +Provides: rtems-base-binutils +Summary: base package for rtems binutils +Group: rtems + +%description -n rtems-base-binutils + +RTEMS is an open source operating system for embedded systems. + +This is the base for binutils regardless of target CPU. + +%post -n rtems-base-binutils + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test x"$f" != x"" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + +%postun -n rtems-base-binutils + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test x"$f" != x"" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + +%files -n rtems-base-binutils -f files +%dir %{_prefix}/info +%doc %{_prefix}/info/dir +%doc %{_prefix}/info/as.info.gz +%doc %{_prefix}/info/as.info-?.gz +%doc %{_prefix}/info/bfd.info.gz +%doc %{_prefix}/info/bfd.info-?.gz +%doc %{_prefix}/info/binutils.info.gz +%doc %{_prefix}/info/binutils.info-?.gz +%doc %{_prefix}/info/ld.info.gz +%doc %{_prefix}/info/ld.info-?.gz +%doc %{_prefix}/info/gasp.info.gz +%doc %{_prefix}/info/standards.info.gz + +%dir %{_prefix}/man +%dir %{_prefix}/man/man1 + +%dir %{_prefix}/include +%{_prefix}/include/bfd.h +%{_prefix}/include/ansidecl.h +%{_prefix}/include/bfdlink.h + +%dir %{_prefix}/lib +%{_prefix}/lib/libbfd* +%{_prefix}/lib/libiberty* +%{_prefix}/lib/libopcodes* + +%dir %{_prefix}/share +%dir %{_prefix}/share/locale + Index: binutils/Makefile.am =================================================================== --- binutils/Makefile.am (nonexistent) +++ binutils/Makefile.am (revision 1765) @@ -0,0 +1,76 @@ +## +## Makefile.am,v 1.13 2002/07/22 09:57:30 ralf Exp +## + + +MKBINUTILSSPEC = $(SHELL) $(top_builddir)/mkbinutilspec + +SUBPACKAGES = binutils.add \ + base-binutils.add target-binutils.add + +binutils.spec.in: $(SUBPACKAGES) + cat $^ > $@ +CLEANFILES = binutils.spec.in + +MKBINUTILSSPEC_DEPS = $(top_builddir)/mkbinutilspec binutils.spec.in \ + $(top_builddir)/setup.cache + +a29k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . a29k-rtems + +arm-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems + +c4x-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems + +h8300-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems + +hppa1.1-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems + +i386-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems + +i960-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems + +m68k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems + +mips64orion-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems +mips-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems + +or32-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . or32-rtems + +powerpc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems + +sh-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems + +sh-rtemself-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself + +sparc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS) + $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems + +RPM_SPECS_DATA = \ + a29k-rtems-$(BINUTILSVERS).spec arm-rtems-$(BINUTILSVERS).spec \ + c4x-rtems-$(BINUTILSVERS).spec h8300-rtems-$(BINUTILSVERS).spec \ + hppa1.1-rtems-$(BINUTILSVERS).spec \ + i386-rtems-$(BINUTILSVERS).spec i960-rtems-$(BINUTILSVERS).spec \ + m68k-rtems-$(BINUTILSVERS).spec \ + mips-rtems-$(BINUTILSVERS).spec mips64orion-rtems-$(BINUTILSVERS).spec \ + or32-rtems-$(BINUTILSVERS).spec \ + powerpc-rtems-$(BINUTILSVERS).spec sh-rtems-$(BINUTILSVERS).spec \ + sh-rtemself-$(BINUTILSVERS).spec sparc-rtems-$(BINUTILSVERS).spec +CLEANFILES += $(RPM_SPECS_DATA) + +EXTRA_DIST = $(SUBPACKAGES) + +include $(top_srcdir)/../automake/local.am Index: binutils =================================================================== --- binutils (nonexistent) +++ binutils (revision 1765)
binutils Property changes : Added: svn:ignore ## -0,0 +1,5 ## +*.spec +Makefile +Makefile.in +binutils.spec +binutils.spec.in Index: autotools/autoconf-rtems.spec =================================================================== --- autotools/autoconf-rtems.spec (nonexistent) +++ autotools/autoconf-rtems.spec (revision 1765) @@ -0,0 +1,89 @@ +# +# spec file for autoconf +# + +%define rpmvers 2.52 +%define srcvers 2.52 + +%define _defaultbuildroot /var/tmp/%{name}-%{srcvers}-root +%define _prefix /opt/rtems +%define _name autoconf + +%if "%{_prefix}" != "/usr" +%define name %{_name}-rtems +%define _infodir %{_prefix}/info +%define _mandir %{_prefix}/man +%else +%define name %{_name} +%endif + + +Vendor: http://www.rtems.com +Name: %{name} +Packager: Ralf Corsepius + +Copyright: GPL +URL: http://www.gnu.org/software/autoconf +Group: rtems +Provides: autoconf +Autoreqprov: on +Version: %{rpmvers} +Release: 0 +Summary: Tool for automatically generating GNU style Makefile.in's +BuildArch: noarch +BuildRoot: %{_defaultbuildroot} +BuildPreReq: autoconf perl m4 gawk +PreReq: /sbin/install-info + +Source: autoconf-%{srcvers}.tar.bz2 + +%description +GNU's Autoconf is a tool for configuring source code and Makefiles. +Using Autoconf, programmers can create portable and configurable +packages, since the person building the package is allowed to +specify various configuration options. +You should install Autoconf if you are developing software and you'd +like to use it to create shell scripts which will configure your +source code packages. +Note that the Autoconf package is not required for the end user who +may be configuring software with an Autoconf-generated script; +Autoconf is only required for the generation of the scripts, not +their use. + +%prep +%setup -q -n %{_name}-%{srcvers} + +%build +./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} +make + +%install +%makeinstall +gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null +# RTEMS's standards.info comes from binutils +rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* +# gzip -9qf $RPM_BUILD_ROOT%{_infodir}/standards.info* 2>/dev/null +gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null + +%clean +[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \ + rm -rf "$RPM_BUILD_ROOT" + +%post +install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz +#install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz + +%preun +if [ $1 = 0 ]; then + install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz +# install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz +fi + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING ChangeLog NEWS README THANKS +%{_bindir}/* +%doc %{_infodir}/autoconf.info*.gz +#%doc %{_infodir}/standards.info*.gz +%doc %{_mandir}/man?/*.gz +%{_datadir}/autoconf Index: autotools/Makefile.in =================================================================== --- autotools/Makefile.in (nonexistent) +++ autotools/Makefile.in (revision 1765) @@ -0,0 +1,275 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +RPM_SPECS_DATA = \ + autoconf-rtems.spec automake-rtems.spec + + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = autotools +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = automake-rtems.spec +DIST_SOURCES = +DATA = $(RPM_SPECS_DATA) + +DIST_COMMON = Makefile.am Makefile.in automake-rtems.spec.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign autotools/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +automake-rtems.spec: $(top_builddir)/config.status automake-rtems.spec.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +uninstall-info-am: +RPM_SPECSDATA_INSTALL = $(INSTALL_DATA) +install-RPM_SPECSDATA: $(RPM_SPECS_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done + +uninstall-RPM_SPECSDATA: + @$(NORMAL_UNINSTALL) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-RPM_SPECSDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-local \ + distclean distclean-generic distclean-local distdir dvi dvi-am \ + info info-am install install-RPM_SPECSDATA install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-RPM_SPECSDATA uninstall-am \ + uninstall-info-am + + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: autotools/Makefile.am =================================================================== --- autotools/Makefile.am (nonexistent) +++ autotools/Makefile.am (revision 1765) @@ -0,0 +1,9 @@ +## +## Makefile.am,v 1.2 2002/03/28 00:54:33 joel Exp +## + + +RPM_SPECS_DATA = \ + autoconf-rtems.spec automake-rtems.spec + +include $(top_srcdir)/../automake/local.am Index: autotools/automake-rtems.spec.in =================================================================== --- autotools/automake-rtems.spec.in (nonexistent) +++ autotools/automake-rtems.spec.in (revision 1765) @@ -0,0 +1,91 @@ +# +# spec file for automake +# + +%define rpmvers 1.6.3 +%define srcvers 1.6.3 +%define amvers 1.6 + +%define _defaultbuildroot %{_tmppath}/%{name}-%{srcvers}-root +%define _prefix @prefix@ +%define _name automake + +%if "%{_prefix}" != "/usr" +%define name %{_name}-rtems +%define requirements autoconf-rtems >= 2.52 +%define _infodir %{_prefix}/info +%define _mandir %{_prefix}/man +%else +%define name %{_name} +%define requirements autoconf >= 2.52 +%endif + +Vendor: http://www.rtems.com +Name: %{name} +Packager: Ralf Corsepius + +Copyright: GPL +Group: rtems +Provides: automake +Autoreqprov: on +Version: %{rpmvers} +Release: 0 +Summary: Tool for automatically generating GNU style Makefile.in's +BuildArch: noarch +BuildRoot: %{_defaultbuildroot} +BuildPreReq: %{requirements} perl help2man +Requires: %{requirements} +PreReq: /sbin/install-info + +Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2 + +%description +Automake is a tool for automatically generating "Makefile.in"s from +files called "Makefile.am". "Makefile.am" is basically a series of +"make" macro definitions (with rules being thrown in occasionally). +The generated "Makefile.in"s are compatible to the GNU Makefile +standards. + +%prep +%setup -q -n %{_name}-%{srcvers} + +%build +./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} +make + +%install +%makeinstall + +install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1 +for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \ + $RPM_BUILD_ROOT%{_bindir}/automake ; +do + perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \ + help2man $i > `basename $i`.1 + install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1 +done + +gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null +gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null + +%clean +[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \ + rm -rf "$RPM_BUILD_ROOT" + +%post +install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz + +%preun +if [ $1 = 0 ]; then + install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz +fi + +%files +%doc AUTHORS COPYING ChangeLog NEWS README THANKS +%{_bindir}/aclocal* +%{_bindir}/automake* +%doc %{_infodir}/automake.info*.gz +%doc %{_mandir}/man?/* +%{_datadir}/aclocal-%{amvers} +%{_datadir}/automake-%{amvers} + Index: autotools =================================================================== --- autotools (nonexistent) +++ autotools (revision 1765)
autotools Property changes : Added: svn:ignore ## -0,0 +1,3 ## +*.spec +Makefile +Makefile.in Index: rtems/Makefile.in =================================================================== --- rtems/Makefile.in (nonexistent) +++ rtems/Makefile.in (revision 1765) @@ -0,0 +1,319 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +MKBSPSPEC = $(SHELL) $(top_builddir)/mkbspspec + +MKBSPSPEC_DEPS = $(top_builddir)/mkbspspec rtems.spec.in \ + $(top_builddir)/setup.cache + + +TEMPLATES = rtems.spec.in + +RPM_SPECS_DATA = hppa1.1-rtems-simhppa-$(BSPVERS).spec \ + i386-rtems-pc386-$(BSPVERS).spec i960-rtems-cvme961-$(BSPVERS).spec \ + m68k-rtems-gen68360-$(BSPVERS).spec \ + mips64orion-rtems-p4600-$(BSPVERS).spec \ + powerpc-rtems-mcp750-$(BSPVERS).spec sh-rtems-gensh1-$(BSPVERS).spec \ + sh-rtemself-gensh1-$(BSPVERS).spec sparc-rtems-erc32-$(BSPVERS).spec + + +noinst_DATA = $(TEMPLATES) + +EXTRA_DIST = $(TEMPLATES) + +CLEANFILES = $(RPM_SPECS_DATA) + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = rtems +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(RPM_SPECS_DATA) $(noinst_DATA) + +DIST_COMMON = Makefile.am Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign rtems/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +RPM_SPECSDATA_INSTALL = $(INSTALL_DATA) +install-RPM_SPECSDATA: $(RPM_SPECS_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done + +uninstall-RPM_SPECSDATA: + @$(NORMAL_UNINSTALL) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-RPM_SPECSDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-local \ + distclean distclean-generic distclean-local distdir dvi dvi-am \ + info info-am install install-RPM_SPECSDATA install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-RPM_SPECSDATA uninstall-am \ + uninstall-info-am + + +hppa1.1-rtems-simhppa-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems simhppa + +i386-rtems-pc386-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems pc386 + +i960-rtems-cvme961-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems cvme961 + +m68k-rtems-gen68360-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems gen68360 + +mips64orion-rtems-p4600-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems p4600 + +powerpc-rtems-mcp750-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems mcp750 + +sh-rtems-gensh1-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems gensh1 + +sh-rtemself-gensh1-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself gensh1 + +sparc-rtems-erc32-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems erc32 + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: rtems/rtems.spec.in =================================================================== --- rtems/rtems.spec.in (nonexistent) +++ rtems/rtems.spec.in (revision 1765) @@ -0,0 +1,95 @@ +# +# spec file for package rtems +# +# Copyright (c) 1999 OARCorp, Huntsville, AL +# +# please send bugfixes or comments to joel@OARcorp.com +# + +Vendor: OAR Corporation +Distribution: Linux +Name: rtems-@target_alias@-@bsp@ +Release: @Release@ +License: GPL with special exception for linking with application program +Group: unsorted +Provides: rtems-@target_alias@-@bsp@ + +Autoreqprov: on +Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com +Requires: @target_alias@-binutils +Requires: @target_alias@-gcc + +Version: @rtems_version@ +Summary: A free operating system for embedded systems +Source: rtems-@rtems_version@.tar.gz +# +# 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 +# We claim to be relocatible, but in fact we are not +Prefix: /opt +Buildroot: @rpm_build_root@ + +%description +RTEMS is a free operating system for embedded systems. + +Authors: +-------- + Joel Sherrill (joel@oarcorp.com) + ... + +%prep +# untar the sources inside rtems-@target_alias@-@bsp@-@rtems_version@ +%setup -c -n rtems-@target_alias@-@bsp@-@rtems_version@ +# no patch needed +# %patch +%build +# rtems does not support building inside the source tree + if test ! -f rtems-@rtems_version@/configure; + then + ( cd rtems-@rtems_version@; ./bootstrap ) + fi + ./rtems-@rtems_version@/configure \ + --target=@target_alias@ \ + --prefix=/opt/rtems/@target_alias@ \ + --enable-networking \ + --enable-posix \ + --enable-cxx \ + --disable-tests \ + --enable-rdbg \ + --disable-multiprocessing \ + --disable-itron + make RTEMS_BSP=@bsp@ +%install + make RTEMS_BSP=@bsp@ prefix=$RPM_BUILD_ROOT/opt/rtems/@target_alias@ install + find $RPM_BUILD_ROOT/opt/rtems/@target_alias@/@bsp@ -type d | \ + sed "s,^$RPM_BUILD_ROOT,%dir ,g" > files + find $RPM_BUILD_ROOT/opt/rtems/@target_alias@/@bsp@ -type f | \ + sed "s,^$RPM_BUILD_ROOT,,g" >> files + find $RPM_BUILD_ROOT/opt/rtems/@target_alias@/make -type d | \ + sed "s,^$RPM_BUILD_ROOT,%dir ,g" >> files + find $RPM_BUILD_ROOT/opt/rtems/@target_alias@/make -type f | \ + sed "s,^$RPM_BUILD_ROOT,,g" >> files + +%post + if test "$RPM_INSTALL_PREFIX" != "/opt/"; + then + if test -f $RPM_INSTALL_PREFIX/rtems/@target_alias@/make/target.cfg; + then + sed -e 's,/opt/rtems/,$RPM_INSTALL_PREFIX/rtems,g' \ + < $RPM_INSTALL_PREFIX/rtems/@target_alias@/make/target.cfg \ + > $RPM_INSTALL_PREFIX/rtems/@target_alias@/make/target.cfg~ + mv $RPM_INSTALL_PREFIX/rtems/@target_alias@/make/target.cfg~ \ + $RPM_INSTALL_PREFIX/rtems/@target_alias@/make/target.cfg + fi + fi + +%files -f files Index: rtems/Makefile.am =================================================================== --- rtems/Makefile.am (nonexistent) +++ rtems/Makefile.am (revision 1765) @@ -0,0 +1,52 @@ +## +## Makefile.am,v 1.9 2002/05/29 16:55:09 joel Exp +## + + +MKBSPSPEC = $(SHELL) $(top_builddir)/mkbspspec + +MKBSPSPEC_DEPS = $(top_builddir)/mkbspspec rtems.spec.in \ + $(top_builddir)/setup.cache + +hppa1.1-rtems-simhppa-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems simhppa + +i386-rtems-pc386-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems pc386 + +i960-rtems-cvme961-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems cvme961 + +m68k-rtems-gen68360-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems gen68360 + +mips64orion-rtems-p4600-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems p4600 + +powerpc-rtems-mcp750-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems mcp750 + +sh-rtems-gensh1-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems gensh1 + +sh-rtemself-gensh1-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself gensh1 + +sparc-rtems-erc32-$(BSPVERS).spec: $(MKBSPSPEC_DEPS) + $(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems erc32 + +TEMPLATES = rtems.spec.in + +RPM_SPECS_DATA = hppa1.1-rtems-simhppa-$(BSPVERS).spec \ + i386-rtems-pc386-$(BSPVERS).spec i960-rtems-cvme961-$(BSPVERS).spec \ + m68k-rtems-gen68360-$(BSPVERS).spec \ + mips64orion-rtems-p4600-$(BSPVERS).spec \ + powerpc-rtems-mcp750-$(BSPVERS).spec sh-rtems-gensh1-$(BSPVERS).spec \ + sh-rtemself-gensh1-$(BSPVERS).spec sparc-rtems-erc32-$(BSPVERS).spec + +noinst_DATA = $(TEMPLATES) + +EXTRA_DIST = $(TEMPLATES) + +CLEANFILES = $(RPM_SPECS_DATA) +include $(top_srcdir)/../automake/local.am Index: rtems =================================================================== --- rtems (nonexistent) +++ rtems (revision 1765)
rtems Property changes : Added: svn:ignore ## -0,0 +1,4 ## +*.spec +Makefile +Makefile.in +rtems.spec Index: gdb/HISTORY =================================================================== --- gdb/HISTORY (nonexistent) +++ gdb/HISTORY (revision 1765) @@ -0,0 +1,23 @@ +# +# History of the gdb RPMs +# +# HISTORY,v 1.1 2000/06/29 22:30:12 joel Exp +# + +RPM Version gdb-5.0-1 +===================== ++ Adds remote Ethernet debugging for RTEMS, 167Bug, PPC2Dink, EPPCBUG, + numerous RTEMS targets, PSIM enhancements. + + + - adds h8300 support. + +RPM Version gdb-4.18-4 +====================== ++ Adds remote Ethernet debugging for RTEMS, 167Bug, PPC2Dink, EPPCBUG, + numerous RTEMS targets, PSIM enhancements. + Released with RTEMS 4.5.0-beta3a. + +gdb-4.18-rtems-20000524.diff + - base line + Index: gdb/Makefile.in =================================================================== --- gdb/Makefile.in (nonexistent) +++ gdb/Makefile.in (revision 1765) @@ -0,0 +1,344 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec + +SUBPACKAGES = gdb.add base-gdb.add target-gdb.add + +CLEANFILES = gdb.spec.in $(RPM_SPECS_DATA) + +MKGDBSPEC_DEPS = $(top_builddir)/mkgdbspec gdb.spec.in \ + $(top_builddir)/setup.cache + + +RPM_SPECS_DATA = \ + arm-rtems-$(GDBVERS).spec c4x-rtems-$(GDBVERS).spec \ + h8300-rtems-$(GDBVERS).spec hppa1.1-rtems-$(GDBVERS).spec \ + i386-rtems-$(GDBVERS).spec i960-rtems-$(GDBVERS).spec \ + m68k-rtems-$(GDBVERS).spec mips-rtems-$(GDBVERS).spec \ + mipstx39-rtems-$(GDBVERS).spec mips64orion-rtems-$(GDBVERS).spec \ + powerpc-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec \ + sh-rtemself-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec \ + i386-RTEMS-$(GDBVERS).spec powerpc-RTEMS-$(GDBVERS).spec + + +EXTRA_DIST = $(SUBPACKAGES) + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = gdb +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(RPM_SPECS_DATA) + +DIST_COMMON = Makefile.am Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign gdb/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +RPM_SPECSDATA_INSTALL = $(INSTALL_DATA) +install-RPM_SPECSDATA: $(RPM_SPECS_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done + +uninstall-RPM_SPECSDATA: + @$(NORMAL_UNINSTALL) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-RPM_SPECSDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-local \ + distclean distclean-generic distclean-local distdir dvi dvi-am \ + info info-am install install-RPM_SPECSDATA install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-RPM_SPECSDATA uninstall-am \ + uninstall-info-am + + +gdb.spec.in: $(SUBPACKAGES) + cat $^ > $@ + +arm-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems + +c4x-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems + +h8300-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems + +hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems + +i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems + +i386-RTEMS-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-RTEMS + +i960-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems + +m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems + +mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems + +mips-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems + +mipstx39-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mipstx39-rtems + +powerpc-RTEMS-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-RTEMS + +powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems + +sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems + +sh-rtemself-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself + +sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: gdb/gdb.add =================================================================== --- gdb/gdb.add (nonexistent) +++ gdb/gdb.add (revision 1765) @@ -0,0 +1,80 @@ +# +# 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@-gdb-collection +Release: @Release@ +License: GPL/LGPL +Group: rtems + +Autoreqprov: on +Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com + +Version: @gdb_version@ +Summary: gdb for target @target_alias@ +Source0: ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz +Patch0: gdb-@gdb_version@-rtems-base-@gdb_patch_version@.diff +Patch1: gdb-@gdb_version@-rtems-cg-@gdb_patch_version@.diff +Patch2: gdb-@gdb_version@-rtems-rdbg-@gdb_patch_version@.diff +Buildroot: /tmp/@target_alias@-gdb + +# +# 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 the GNU gdb for RTEMS targetting @target_alias@. + +%prep +echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT} +# untar the sources inside @target_alias@-gdb +%setup -c -n @target_alias@-gdb -a 0 + +cd gdb-@gdb_version@ +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +%build +test -d build || mkdir build + cd build + ../gdb-@gdb_version@/configure --target=@target_alias@ \ + --verbose --prefix=/opt/rtems @extra_configure_arguments@ + + make all + make info + +%install + cd build + make prefix=$RPM_BUILD_ROOT/opt/rtems install + make prefix=$RPM_BUILD_ROOT/opt/rtems install-info + + # gzip info files + gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null + gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null + gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null + +%clean +# let rpm --clean remove BuildRoot iif using the default BuildRoot + test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-gdb" && \ + rm -rf $RPM_BUILD_ROOT Index: gdb/target-gdb.add =================================================================== --- gdb/target-gdb.add (nonexistent) +++ gdb/target-gdb.add (revision 1765) @@ -0,0 +1,21 @@ +# ===================================================================== +# @target_alias@-gdb +# ===================================================================== + +%package -n @target_alias@-gdb +Provides: @target_alias@-gdb +Summary: rtems gdb for @target_alias@ +Group: rtems +Requires: rtems-base-gdb + +%description -n @target_alias@-gdb + +RTEMS is an open source operating system for embedded systems. + +This is the GNU gdb for RTEMS targetting @target_alias@. + +%files -n @target_alias@-gdb +%doc /opt/rtems/man/man1/@target_alias@-gdb.1 + +%dir /opt/rtems/bin +/opt/rtems/bin/@target_alias@-gdb@exe_ext@ Index: gdb/Makefile.am =================================================================== --- gdb/Makefile.am (nonexistent) +++ gdb/Makefile.am (revision 1765) @@ -0,0 +1,79 @@ +## +## Makefile.am,v 1.13 2002/04/16 23:43:23 joel Exp +## + + +MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec + +SUBPACKAGES = gdb.add base-gdb.add target-gdb.add + +gdb.spec.in: $(SUBPACKAGES) + cat $^ > $@ +CLEANFILES = gdb.spec.in + +MKGDBSPEC_DEPS = $(top_builddir)/mkgdbspec gdb.spec.in \ + $(top_builddir)/setup.cache + +arm-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems + +c4x-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems + +h8300-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems + +hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems + +i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems + +i386-RTEMS-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-RTEMS + +i960-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems + +m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems + +mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems + +mips-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems + +mipstx39-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mipstx39-rtems + +powerpc-RTEMS-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-RTEMS + +powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems + +sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems + +sh-rtemself-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself + +sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) + $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems + +RPM_SPECS_DATA = \ + arm-rtems-$(GDBVERS).spec c4x-rtems-$(GDBVERS).spec \ + h8300-rtems-$(GDBVERS).spec hppa1.1-rtems-$(GDBVERS).spec \ + i386-rtems-$(GDBVERS).spec i960-rtems-$(GDBVERS).spec \ + m68k-rtems-$(GDBVERS).spec mips-rtems-$(GDBVERS).spec \ + mipstx39-rtems-$(GDBVERS).spec mips64orion-rtems-$(GDBVERS).spec \ + powerpc-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec \ + sh-rtemself-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec \ + i386-RTEMS-$(GDBVERS).spec powerpc-RTEMS-$(GDBVERS).spec + +CLEANFILES += $(RPM_SPECS_DATA) + +EXTRA_DIST = $(SUBPACKAGES) + +include $(top_srcdir)/../automake/local.am Index: gdb/base-gdb.add =================================================================== --- gdb/base-gdb.add (nonexistent) +++ gdb/base-gdb.add (revision 1765) @@ -0,0 +1,56 @@ +# ===================================================================== +# rtems-base-gdb +# ===================================================================== + +%package -n rtems-base-gdb +Provides: rtems-base-gdb +Summary: base package for rtems gdb +Group: rtems + +%description -n rtems-base-gdb + +RTEMS is an open source operating system for embedded systems. + +This is the base for gdb regardless of target CPU. + +%files -n rtems-base-gdb + +%dir /opt/rtems/info +%doc /opt/rtems/info/gdb.info* +%doc /opt/rtems/info/mmalloc.info* +# gdb 4.18 installed this, gdb 5.0 does not +# %doc /opt/rtems/info/readline.info* + +%dir /opt/rtems/man +%dir /opt/rtems/man/man1 + +%dir /opt/rtems/include +# We install libbfd from binutils +# /opt/rtems/include/bfd.h +# /opt/rtems/include/bfdlink.h + +%dir /opt/rtems/lib +# We install libbfd from binutils +# /opt/rtems/lib/libbfd* +# We use libiberty from gcc +# /opt/rtems/lib/libiberty* + +%post -n rtems-base-gdb + 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 -n rtems-base-gdb + 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 Index: gdb =================================================================== --- gdb (nonexistent) +++ gdb (revision 1765)
gdb Property changes : Added: svn:ignore ## -0,0 +1,5 ## +*.spec +Makefile +Makefile.in +gdb.spec +gdb.spec.in Index: gccnewlib/target-g77.add =================================================================== --- gccnewlib/target-g77.add (nonexistent) +++ gccnewlib/target-g77.add (revision 1765) @@ -0,0 +1,19 @@ +# ============================================================== +# @target_alias@-g77 +# ============================================================== +%package -n @target_alias@-g77 +Provides: @target_alias@-g77 +Summary: gcc/g77 compiler for @target_alias@ +Group: rtems +Requires: rtems-base-g77 @target_alias@-gcc + +%description -n @target_alias@-g77 +RTEMS is an open source operating system for embedded systems. + +This is the gcc/g77 compiler for @target_alias@ + +%files -n @target_alias@-g77 -f build/files.g77 +%dir %{_prefix}/bin +%{_prefix}/bin/@target_alias@-g77@exe_ext@ + +%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/f771@exe_ext@ Index: gccnewlib/HISTORY =================================================================== --- gccnewlib/HISTORY (nonexistent) +++ gccnewlib/HISTORY (revision 1765) @@ -0,0 +1,81 @@ +# +# History of the gccnewlib RPMs +# +# HISTORY,v 1.7 2001/01/03 16:50:24 joel Exp +# + +RPM Version gcc2.95.2newlib1.9.0-1 +================================== ++ fixes i960 C++ problem ++ upgrades to newlib 1.9.0 + + newlib_patch_version=20001219 + gcc_patch_version=20001226 + +RPM Version gcc2.95.2newlib1.8.2-11 +=================================== ++ fixes i386 soft float problem ++ mips-rtems target added ++ newlib include files reworked to allow RTEMS to use standard newlib + .h files. + + newlib_patch_version=20001027 + gcc_patch_version=20001030 + +RPM Version gcc2.95.2newlib1.8.2-10 +=================================== ++ i386 soft floating point worked but incorrectly included two + copies of some libgcc.a routines. ++ added a29k-rtems support + +NOTE: Internal Only Number + +RPM Version gcc2.95.2newlib1.8.2-9 +================================== ++ i386 multilibs and proper CPP_SPEC/CC1_SPEC handling. ++ newlib patch includes or32. + +RPM Version gcc2.95.2newlib1.8.2-8 +================================== ++ arm + - Add initial support. ++ c4x + - Add initial support. ++ h8300 + - Add initial support. + - define CPU type in libfunc ++ i386 + - Build soft and HW floating point multilibs for i386 embedded targets. ++ i960 + - Define _SOFT_FLOAT on i960 when -msoft-float specified. ++ powerpc + - Fixes possible bug in gcc target where incorrect startup files specified. + +gcc-2.95.2-rtems-20000724.diff + - Add i386 embedded soft float multlibs (Joel) + - Define _SOFT_FLOAT on i960 when -msoft-float specified (Joel) + - fixes h8300-rtems specific configuration problems (Joel) + - config/rs6000/rtems.h: Specify ecrt[in].o not crt0.o (Eric Valette) +newlib-1.8.2-rtems-20000629.diff + - same as newlib-1.8.2-rtems-20000612-hppa1.1.diff + +RPM Version gcc2.95.2newlib1.8.2-7hp +==================================== ++ Adds hppa1.1-rtems support in gcc. This is a special target since + you still have to use binutils 2.9.1. + +gcc-2.95.2-rtems-20000612hp.diff + - fixes hppa1.1-rtems specific configuration problems (Joel) +newlib-1.8.2-rtems-20000612-hppa1.1.diff + - fixes hppa1.1-rtems specific build problems in crt0.o (Joel) + +RPM Version gcc2.95.2newlib1.8.2-7 +================================== ++ Base line. This Revision was released with 4.5.0-beta3a and included + support for the i386, i960, m68k, mips64orion, powerpc, sh, and sparc. + +gcc-2.95.2-rtems-20000531.diff + - base line +newlib-1.8.2-rtems-20000606.diff + - base line + Index: gccnewlib/Makefile.in =================================================================== --- gccnewlib/Makefile.in (nonexistent) +++ gccnewlib/Makefile.in (revision 1765) @@ -0,0 +1,351 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgccnewlibspec + +SUBPACKAGES = gccnewlib.add \ + base-gcc.add target-gcc.add \ + base-chill.add target-chill.add \ + base-g77.add target-g77.add \ + base-gcj.add target-gcj.add \ + target-objc.add + +CLEANFILES = gccnewlib.spec.in gccnewlib_c_only.spec.in $(RPM_SPECS_DATA) + +C_ONLY_ARG = -a $(top_builddir)/gccnewlib/gccnewlib_c_only.spec.in + +MKGCCNEWLIBSPEC_DEPS = $(top_builddir)/mkgccnewlibspec gccnewlib.spec.in \ + $(top_builddir)/setup.cache + +MKGCCNEWLIB_C_ONLY_SPEC_DEPS = $(top_builddir)/mkgccnewlibspec \ + gccnewlib_c_only.spec.in $(top_builddir)/setup.cache + + +RPM_SPECS_DATA = \ + arm-rtems-$(GCCNEWLIBVERS).spec \ + c4x-rtems-$(GCCNEWLIBVERS).spec \ + h8300-rtems-$(GCCNEWLIBVERS).spec \ + hppa1.1-rtems-$(GCCNEWLIBVERS).spec \ + i386-rtems-$(GCCNEWLIBVERS).spec i960-rtems-$(GCCNEWLIBVERS).spec \ + m68k-rtems-$(GCCNEWLIBVERS).spec \ + mips-rtems-$(GCCNEWLIBVERS).spec mips64orion-rtems-$(GCCNEWLIBVERS).spec \ + powerpc-rtems-$(GCCNEWLIBVERS).spec sh-rtems-$(GCCNEWLIBVERS).spec \ + sh-rtemself-$(GCCNEWLIBVERS).spec sparc-rtems-$(GCCNEWLIBVERS).spec + + +EXTRA_DIST = $(SUBPACKAGES) + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = gccnewlib +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(RPM_SPECS_DATA) + +DIST_COMMON = README Makefile.am Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign gccnewlib/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +RPM_SPECSDATA_INSTALL = $(INSTALL_DATA) +install-RPM_SPECSDATA: $(RPM_SPECS_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done + +uninstall-RPM_SPECSDATA: + @$(NORMAL_UNINSTALL) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-RPM_SPECSDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-local \ + distclean distclean-generic distclean-local distdir dvi dvi-am \ + info info-am install install-RPM_SPECSDATA install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-RPM_SPECSDATA uninstall-am \ + uninstall-info-am + + +gccnewlib.spec.in: $(SUBPACKAGES) + cat $^ \ + | sed -e 's%@GCCLANGS@%%g' > $@ + +gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add + cat $^ \ + | sed -e "s%@GCCLANGS@%\'--enable-languages=c,c++\'%g" > $@ + +arm-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems + +c4x-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS) + $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . c4x-rtems + +h8300-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS) + $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . h8300-rtems + +hppa1.1-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems + +i386-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems + +i960-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS) + $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i960-rtems + +m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems + +mips64orion-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems + +mips-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems + +powerpc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems + +sh-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems + +sh-rtemself-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself + +sparc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: gccnewlib/base-gcj.add =================================================================== --- gccnewlib/base-gcj.add (nonexistent) +++ gccnewlib/base-gcj.add (revision 1765) @@ -0,0 +1,20 @@ +# ============================================================== +# rtems-base-gcj +# ============================================================== +%package -n rtems-base-gcj +Provides: rtems-base-gcj +Summary: base package for rtems gcc/java compiler (gcj). +Group: rtems +Requires: rtems-base-gcc + +%description -n rtems-base-gcj +RTEMS is an open source operating system for embedded systems. + +This is the files for gcc/java (gcj) that are shared by all targets. + +%files -n rtems-base-gcj +%dir %{_prefix}/bin +%{_prefix}/bin/jcf-dump@exe_ext@ +%{_prefix}/bin/jv-scan@exe_ext@ +%{_prefix}/bin/gcjh@exe_ext@ + Index: gccnewlib/base-g77.add =================================================================== --- gccnewlib/base-g77.add (nonexistent) +++ gccnewlib/base-g77.add (revision 1765) @@ -0,0 +1,42 @@ +# ============================================================== +# rtems-base-g77 +# ============================================================== +%package -n rtems-base-g77 +Provides: rtems-base-g77 +Summary: rtems base package for gcc/g77 compiler +Group: rtems +Requires: rtems-base-gcc + +%description -n rtems-base-g77 +RTEMS is an open source operating system for embedded systems. + +This is the files for gcc/g77 that are shared by all targets. + +%files -n rtems-base-g77 +%dir %{_prefix}/info +%doc %{_prefix}/info/g77.info*.gz + +%dir %{_prefix}/man +%dir %{_prefix}/man/man1 +%doc %{_prefix}/man/man1/@target_alias@-g77.1 + +%post -n rtems-base-g77 + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test -n "$f" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + +%postun -n rtems-base-g77 + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test -n "$f" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + Index: gccnewlib/gccnewlib.add =================================================================== --- gccnewlib/gccnewlib.add (nonexistent) +++ gccnewlib/gccnewlib.add (revision 1765) @@ -0,0 +1,156 @@ +# +# spec file for building gcc for rtems +# +# Copyright (c) 1999,2000,2001 OARCorp, Huntsville, AL +# +# please send bugfixes or comments to joel@OARcorp.com +# + +%define _prefix @prefix@ + +Vendor: OAR Corporation +Distribution: Linux +Name: @target_alias@-gcc-newlib +Summary: gcc and newlib C Library for @target_alias@. +Group: rtems +Release: @Release@ +License: gcc is GPL/LGPL ; newlib no has restrictions on run-time usage + +Autoreqprov: on +Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com + +Version: gcc@gcc_version@newlib@newlib_version@ +# gcc 3.x and gcc 2.9 +# Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.bz2 +# gcc 2.95.x +Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-everything-@gcc_version@.tar.gz +Source1: ftp://sources.redhat.com/pub/newlib/newlib-@newlib_version@.tar.gz +Patch0: gcc-@gcc_version@-rtems-@gcc_patch_version@.diff +Patch1: newlib-@newlib_version@-rtems-@newlib_patch_version@.diff +Buildroot: %{_tmppath}/%{name} + +# +# 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 gcc's and newlib C Library's sources with patches for RTEMS. + + 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|packages]/SOURCES directory ($RPM_SOURCE_DIR). + Or you can try the ftp options of rpm :-) + +%prep +# untar the sources inside @target_alias@-gcc-newlib +%setup -c -n %{name} -a 0 -a 1 + +%patch0 -p0 +%patch1 -p0 + + # Copy the C library into gcc's source tree + ln -s ../newlib-@newlib_version@/newlib gcc-@gcc_version@ + test -d build || mkdir build + +%build + cd build + +# HACK: This should be %{target} != %{build}, but SuSE's rpm screws it. +%if "%{target_os}" != "%{build_os}" + CONFIGURE_ARGS="--build=%{_build} --host=%{_target}" +%endif + + ../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \ + --with-gnu-as --with-gnu-ld --with-newlib --verbose \ + --enable-threads --prefix=%{_prefix} @GCCLANGS@ + + make all + make info + +%install + cd build + # Bug in gcc-2.95.1: It doesn't build this installation directory + # If it doesn't find it, gcc doesn't install @target_alias@/bin/gcc + ../gcc-@gcc_version@/mkinstalldirs \ + $RPM_BUILD_ROOT%{_prefix}/@target_alias@/bin + + make prefix=$RPM_BUILD_ROOT%{_prefix} install + cd @target_alias@/newlib + make prefix=$RPM_BUILD_ROOT%{_prefix} install-info + + # cd back to build/ + cd ../.. + + # Bug in gcc-2.95.x: It bogusly tries to share cpp for all targets. + # Rename it to target_alias-cpp + if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@; + then + mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@ \ + $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp@exe_ext@ + fi + + # gzip info files + gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null + gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null + gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null + + rm -f dirs ; + echo "%dir %{_prefix}/lib" >> dirs ; + echo "%dir %{_prefix}/lib/gcc-lib" >> dirs ; + echo "%dir %{_prefix}/lib/gcc-lib/@target_alias@" >> dirs ; + + # Collect multilib subdirectories + TGTDIR="%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@" + f=`gcc/xgcc --print-multi-lib | sed -e 's,;.*$,,'` + for i in $f; do + case $i in + \.) echo "%dir ${TGTDIR}" >> dirs + ;; + *) echo "%dir ${TGTDIR}/$i" >> dirs + ;; + esac + done + + # Collect files to go into different packages + cp dirs files.chill + cp dirs files.gcc + cp dirs files.g77 + cp dirs files.objc + cp dirs files.gcj + + f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`; + for i in $f; do + case $i in + *chill*) echo "$i" >> files.chill ;; + *f771) ;; + *cc1obj) ;; + *libobjc*) echo "$i" >> files.objc ;; + *include/objc*) ;; + *jc1) ;; + *jvgenmain) ;; + *) echo "$i" >> files.gcc ;; + esac + done + +%clean +# let rpm --clean remove BuildRoot iif using the default BuildRoot + test "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}" && \ + rm -rf $RPM_BUILD_ROOT + Index: gccnewlib/target-chill.add =================================================================== --- gccnewlib/target-chill.add (nonexistent) +++ gccnewlib/target-chill.add (revision 1765) @@ -0,0 +1,18 @@ +# ============================================================== +# @target_alias@-chill +# ============================================================== +%package -n @target_alias@-chill +Provides: @target_alias@-chill +Summary: gcc/chill compiler for @target_alias@ +Group: rtems +Requires: rtems-base-chill @target_alias@-gcc + +%description -n @target_alias@-chill +RTEMS is an open source operating system for embedded systems. + +This is the gcc/chill compiler and support files for @target_alias@ + +%files -n @target_alias@-chill -f build/files.chill +%dir %{_prefix}/bin +%{_prefix}/bin/@target_alias@-chill + Index: gccnewlib/target-gcc.add =================================================================== --- gccnewlib/target-gcc.add (nonexistent) +++ gccnewlib/target-gcc.add (revision 1765) @@ -0,0 +1,29 @@ +# ============================================================== +# @target_alias@-gcc +# ============================================================== +%package -n @target_alias@-gcc +Provides: @target_alias@-gcc +Summary: rtems gcc and newlib C Library for @target_alias@ +Group: rtems +Requires: @target_alias@-binutils rtems-base-gcc + +%description -n @target_alias@-gcc +RTEMS is an open source operating system for embedded systems. + +This is gcc and newlib C Library for @target_alias@. + +%files -n @target_alias@-gcc -f build/files.gcc +%doc %{_prefix}/man/man1/@target_alias@-gcc.1 +%doc %{_prefix}/man/man1/@target_alias@-g++.1 + +%{_prefix}/bin/@target_alias@-cpp@exe_ext@ +%{_prefix}/bin/@target_alias@-c++@exe_ext@ +%{_prefix}/bin/@target_alias@-g++@exe_ext@ +%{_prefix}/bin/@target_alias@-gcc@exe_ext@ +%{_prefix}/bin/@target_alias@-protoize@exe_ext@ +%{_prefix}/bin/@target_alias@-unprotoize@exe_ext@ + +%dir %{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include + +%{_prefix}/@target_alias@ + Index: gccnewlib/target-objc.add =================================================================== --- gccnewlib/target-objc.add (nonexistent) +++ gccnewlib/target-objc.add (revision 1765) @@ -0,0 +1,17 @@ +# ============================================================== +# @target_alias@-objc +# ============================================================== +%package -n @target_alias@-objc +Provides: @target_alias@-objc +Summary: gcc/objc compiler for @target_alias@ +Group: rtems +Requires: @target_alias@-gcc + +%description -n @target_alias@-objc +RTEMS is an open source operating system for embedded systems. + +This is the gcc/objc compiler for @target_alias@ + +%files -n @target_alias@-objc -f build/files.objc +%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj@exe_ext@ +%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc Index: gccnewlib/Makefile.am =================================================================== --- gccnewlib/Makefile.am (nonexistent) +++ gccnewlib/Makefile.am (revision 1765) @@ -0,0 +1,85 @@ +## +## Makefile.am,v 1.13 2002/03/28 00:54:33 joel Exp +## + + +MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgccnewlibspec + +SUBPACKAGES = gccnewlib.add \ + base-gcc.add target-gcc.add \ + base-chill.add target-chill.add \ + base-g77.add target-g77.add \ + base-gcj.add target-gcj.add \ + target-objc.add + +gccnewlib.spec.in: $(SUBPACKAGES) + cat $^ \ + | sed -e 's%@GCCLANGS@%%g' > $@ +CLEANFILES = gccnewlib.spec.in + +gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add + cat $^ \ + | sed -e "s%@GCCLANGS@%\'--enable-languages=c,c++\'%g" > $@ +CLEANFILES += gccnewlib_c_only.spec.in + +C_ONLY_ARG = -a $(top_builddir)/gccnewlib/gccnewlib_c_only.spec.in + +MKGCCNEWLIBSPEC_DEPS = $(top_builddir)/mkgccnewlibspec gccnewlib.spec.in \ + $(top_builddir)/setup.cache +MKGCCNEWLIB_C_ONLY_SPEC_DEPS = $(top_builddir)/mkgccnewlibspec \ + gccnewlib_c_only.spec.in $(top_builddir)/setup.cache + +arm-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems + +c4x-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS) + $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . c4x-rtems + +h8300-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS) + $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . h8300-rtems + +hppa1.1-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems + +i386-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems + +i960-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIB_C_ONLY_SPEC_DEPS) + $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i960-rtems + +m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems + +mips64orion-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems + +mips-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems + +powerpc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems + +sh-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems + +sh-rtemself-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself + +sparc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS) + $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems + +RPM_SPECS_DATA = \ + arm-rtems-$(GCCNEWLIBVERS).spec \ + c4x-rtems-$(GCCNEWLIBVERS).spec \ + h8300-rtems-$(GCCNEWLIBVERS).spec \ + hppa1.1-rtems-$(GCCNEWLIBVERS).spec \ + i386-rtems-$(GCCNEWLIBVERS).spec i960-rtems-$(GCCNEWLIBVERS).spec \ + m68k-rtems-$(GCCNEWLIBVERS).spec \ + mips-rtems-$(GCCNEWLIBVERS).spec mips64orion-rtems-$(GCCNEWLIBVERS).spec \ + powerpc-rtems-$(GCCNEWLIBVERS).spec sh-rtems-$(GCCNEWLIBVERS).spec \ + sh-rtemself-$(GCCNEWLIBVERS).spec sparc-rtems-$(GCCNEWLIBVERS).spec +CLEANFILES += $(RPM_SPECS_DATA) + +EXTRA_DIST = $(SUBPACKAGES) + +include $(top_srcdir)/../automake/local.am Index: gccnewlib/base-chill.add =================================================================== --- gccnewlib/base-chill.add (nonexistent) +++ gccnewlib/base-chill.add (revision 1765) @@ -0,0 +1,38 @@ +# ============================================================== +# rtems-base-chill +# ============================================================== +%package -n rtems-base-chill +Provides: rtems-base-chill +Summary: base package for rtems gcc/chill compiler. +Group: rtems +Requires: rtems-base-gcc + +%description -n rtems-base-chill +RTEMS is an open source operating system for embedded systems. + +This is the files for gcc/chill that are shared by all targets. + +%files -n rtems-base-chill +%dir %{_prefix}/info +%doc %{_prefix}/info/chill.info*.gz + +%post -n rtems-base-chill + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test -n "$f" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + +%postun -n rtems-base-chill + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test -n "$f" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + Index: gccnewlib/base-gcc.add =================================================================== --- gccnewlib/base-gcc.add (nonexistent) +++ gccnewlib/base-gcc.add (revision 1765) @@ -0,0 +1,51 @@ +# ============================================================== +# rtems-base-gcc +# ============================================================== +%package -n rtems-base-gcc +Provides: rtems-base-gcc +Summary: base package for rtems gcc and newlib C Library +Group: rtems + +%description -n rtems-base-gcc + +RTEMS is an open source operating system for embedded systems. + +This is the files for gcc and newlib that are shared by all targets. + +%files -n rtems-base-gcc +%dir %{_prefix}/info +%doc %{_prefix}/info/cpp.info*.gz +%doc %{_prefix}/info/gcc.info*.gz +%doc %{_prefix}/info/libc.info*.gz +%doc %{_prefix}/info/libm.info*.gz + +%dir %{_prefix}/bin +%{_prefix}/bin/gcov@exe_ext@ + +%dir %{_prefix}/man +%dir %{_prefix}/man/man1 +%doc %{_prefix}/man/man1/cccp.1 + +%dir %{_prefix}/include +%{_prefix}/include/g++-3 + +%post -n rtems-base-gcc + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test -n "$f" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + +%postun -n rtems-base-gcc + if test -d $RPM_INSTALL_PREFIX%{_prefix}/info; + then + rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir + f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'` + test -n "$f" && for i in $f; do + install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir + done + fi + Index: gccnewlib/README =================================================================== --- gccnewlib/README (nonexistent) +++ gccnewlib/README (revision 1765) @@ -0,0 +1,8 @@ +# +# README,v 1.2 2000/06/12 15:00:15 joel Exp +# + +This directory contains RPM-spec file fragments (*.add) which are used to +compose the toolchain specs. + +Cf. Makefile.am for details on how the toolchain specs get composed. Index: gccnewlib/target-gcj.add =================================================================== --- gccnewlib/target-gcj.add (nonexistent) +++ gccnewlib/target-gcj.add (revision 1765) @@ -0,0 +1,21 @@ +# ============================================================== +# @target_alias@-gcj +# ============================================================== +%package -n @target_alias@-gcj +Provides: @target_alias@-gcj +Summary: gcc/java compiler (gcj) for @target_alias@ +Group: rtems +Requires: rtems-base-gcj @target_alias@-gcc + +%description -n @target_alias@-gcj +RTEMS is an open source operating system for embedded systems. + +This is the gcc/java compiler for @target_alias@ + +%files -n @target_alias@-gcj -f build/files.gcj +%dir %{_prefix}/bin +%{_prefix}/bin/@target_alias@-gcj@exe_ext@ + +%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/jc1@exe_ext@ +%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain@exe_ext@ + Index: gccnewlib =================================================================== --- gccnewlib (nonexistent) +++ gccnewlib (revision 1765)
gccnewlib Property changes : Added: svn:ignore ## -0,0 +1,7 ## +*.spec +Makefile +Makefile.in +gccnewlib.spec +gccnewlib.spec.in +gccnewlib_c_only.spec +gccnewlib_c_only.spec.in Index: cpukit/Makefile.in =================================================================== --- cpukit/Makefile.in (nonexistent) +++ cpukit/Makefile.in (revision 1765) @@ -0,0 +1,323 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +MKSPEC = $(SHELL) ./mkspec + +MKSPEC_DEPS = mkspec rtems-cpukit.spec.in \ + $(top_builddir)/setup.cache + +RPM_SPECS_DATA = c4x-rtems-cpukit.spec hppa1.1-rtems-cpukit.spec h8300-rtems-cpukit.spec i386-rtems-cpukit.spec i960-rtems-cpukit.spec m68k-rtems-cpukit.spec mips64orion-rtems-cpukit.spec mips-rtems-cpukit.spec powerpc-rtems-cpukit.spec sh-rtems-cpukit.spec sh-rtemself-cpukit.spec sparc-rtems-cpukit.spec + +TEMPLATES = rtems-cpukit.spec.in + +noinst_DATA = $(TEMPLATES) + +EXTRA_DIST = $(TEMPLATES) + +CLEANFILES = $(RPM_SPECS_DATA) + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = cpukit +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = mkspec +DIST_SOURCES = +DATA = $(RPM_SPECS_DATA) $(noinst_DATA) + +DIST_COMMON = Makefile.am Makefile.in mkspec.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign cpukit/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +mkspec: $(top_builddir)/config.status mkspec.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +uninstall-info-am: +RPM_SPECSDATA_INSTALL = $(INSTALL_DATA) +install-RPM_SPECSDATA: $(RPM_SPECS_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + $(RPM_SPECSDATA_INSTALL) $$d$$p $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done + +uninstall-RPM_SPECSDATA: + @$(NORMAL_UNINSTALL) + @list='$(RPM_SPECS_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f"; \ + rm -f $(DESTDIR)$(RPM_SPECSdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-RPM_SPECSDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-RPM_SPECSDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-local \ + distclean distclean-generic distclean-local distdir dvi dvi-am \ + info info-am install install-RPM_SPECSDATA install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-RPM_SPECSDATA uninstall-am \ + uninstall-info-am + + +c4x-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems > $@ + +hppa1.1-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems > $@ + +h8300-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems > $@ + +i386-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems > $@ + +i960-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems > $@ + +m68k-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems > $@ + +mips64orion-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems > $@ + +mips-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems > $@ + +powerpc-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems > $@ + +sh-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems > $@ + +sh-rtemself-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself > $@ + +sparc-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems > $@ + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: cpukit/rtems-cpukit.spec.in =================================================================== --- cpukit/rtems-cpukit.spec.in (nonexistent) +++ cpukit/rtems-cpukit.spec.in (revision 1765) @@ -0,0 +1,75 @@ +# +# spec file for package rtems-cpukit +# +# Copyright (c) 2002 Ralf Corsepius, Ulm, Germany +# +# please send bugfixes or comments to joel@OARcorp.com +# + +%define _prefix /opt/rtems + +Vendor: OAR Corporation +Distribution: Linux +Name: @target_alias@-cpukit +Release: @Release@ +License: Various, Open Source. +Group: rtems + +Autoreqprov: on +Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com +BuildPreReq: @target_alias@-binutils +BuildPreReq: @target_alias@-gcc +Requires: @target_alias@-binutils +Requires: @target_alias@-gcc + +Version: @rpm_version@ +Summary: A free operating system for embedded systems +Source: rtems-@rtems_version@.tar.gz + +# +# 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 +# We claim to be relocatible, but in fact we are not +Prefix: %{_prefix} +Buildroot: %{_tmppath}/%{name}-%{version}-root + +%description +RTEMS is a free operating system for embedded systems. + +This package contains the cpukit for cpu @target_alias@. + +Authors: +-------- + Joel Sherrill (joel@oarcorp.com) + ... + +%prep +%setup -c -T -n %{name}-%{version} -a0 +test -d build || mkdir build +%build +cd build +# rtems does not support building inside the source tree + ../rtems-@rtems_version@/cpukit/configure \ + --build=`../rtems-@rtems_version@/config.guess` \ + --prefix=%{_prefix} \ + --host=@target_alias@ --target=@target_alias@ \ + --exec-prefix=%{_prefix}/@target_alias@ \ + --enable-multilib + make RTEMS_BSP= +%install +cd build + make RTEMS_BSP= DESTDIR=${RPM_BUILD_ROOT} install + +%files +%{_prefix}/@target_alias@ +# ignore +# %{_mandir} \ No newline at end of file Index: cpukit/mkspec.in =================================================================== --- cpukit/mkspec.in (nonexistent) +++ cpukit/mkspec.in (revision 1765) @@ -0,0 +1,56 @@ +#! /bin/sh + +RTEMS_DIR=`dirname $0`/@top_srcdir@ +RTEMS_VERSION=@VERSION@ +RPM_VERSION=`echo ${RTEMS_VERSION} | tr - _` + +CFG=../setup.cache +dst=@RPM_SPECSdir@ +exe_ext=@EXEEXT@ + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -cfg " + echo " -o " + 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 1; +then + echo "Invalid number of arguments" >&2 + usage >&2 +fi + +# target to build for +target_alias=$1 + +. ./$CFG + +sed -e "s%@Release\@%${rtems_rpm_release}%g" \ + -e "s%@rtems_version\@%${RTEMS_VERSION}%g" \ + -e "s%@rpm_version\@%${RPM_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}/cpukit/rtems-cpukit.spec.in Index: cpukit/Makefile.am =================================================================== --- cpukit/Makefile.am (nonexistent) +++ cpukit/Makefile.am (revision 1765) @@ -0,0 +1,66 @@ +## +## Makefile.am,v 1.1 2002/07/29 07:40:53 ralf Exp +## + + +MKSPEC = $(SHELL) ./mkspec + +MKSPEC_DEPS = mkspec rtems-cpukit.spec.in \ + $(top_builddir)/setup.cache + +c4x-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems > $@ +RPM_SPECS_DATA = c4x-rtems-cpukit.spec + +hppa1.1-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems > $@ +RPM_SPECS_DATA += hppa1.1-rtems-cpukit.spec + +h8300-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems > $@ +RPM_SPECS_DATA += h8300-rtems-cpukit.spec + +i386-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems > $@ +RPM_SPECS_DATA += i386-rtems-cpukit.spec + +i960-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems > $@ +RPM_SPECS_DATA += i960-rtems-cpukit.spec + +m68k-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems > $@ +RPM_SPECS_DATA += m68k-rtems-cpukit.spec + +mips64orion-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems > $@ +RPM_SPECS_DATA += mips64orion-rtems-cpukit.spec + +mips-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems > $@ +RPM_SPECS_DATA += mips-rtems-cpukit.spec + +powerpc-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems > $@ +RPM_SPECS_DATA += powerpc-rtems-cpukit.spec + +sh-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems > $@ +RPM_SPECS_DATA += sh-rtems-cpukit.spec + +sh-rtemself-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself > $@ +RPM_SPECS_DATA += sh-rtemself-cpukit.spec + +sparc-rtems-cpukit.spec: $(MKSPEC_DEPS) + $(MKSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems > $@ +RPM_SPECS_DATA += sparc-rtems-cpukit.spec + +TEMPLATES = rtems-cpukit.spec.in + +noinst_DATA = $(TEMPLATES) + +EXTRA_DIST = $(TEMPLATES) + +CLEANFILES = $(RPM_SPECS_DATA) +include $(top_srcdir)/../automake/local.am Index: cpukit =================================================================== --- cpukit (nonexistent) +++ cpukit (revision 1765)
cpukit Property changes : Added: svn:ignore ## -0,0 +1,4 ## +*.spec +Makefile +Makefile.in +mkspec Index: configure =================================================================== --- configure (nonexistent) +++ configure (revision 1765) @@ -0,0 +1,2180 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by Autoconf 2.52 for rtems-scripts ss-20020807. +# +# Report bugs to . +# +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=/usr/local +cross_compiling=no +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +ac_unique_file="binutils" +ac_default_prefix=/opt/rtems +ac_default_prefix=/opt/rtems + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Identity of this package. +PACKAGE_NAME='rtems-scripts' +PACKAGE_TARNAME='rtems-scripts' +PACKAGE_VERSION='ss-20020807' +PACKAGE_STRING='rtems-scripts ss-20020807' +PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com' + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_option in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "enable_$ac_feature='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "with_$ac_package='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: should be removed in autoconf 3.0. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources in $srcdir" >&2 + { (exit 1); exit 1; }; } + fi +fi +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <. +EOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue + cd $ac_subdir + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` + + case $srcdir in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure.gnu; then + echo + $SHELL $ac_sub_srcdir/configure.gnu --help=recursive + elif test -f $ac_sub_srcdir/configure; then + echo + $SHELL $ac_sub_srcdir/configure --help=recursive + elif test -f $ac_sub_srcdir/configure.ac || + test -f $ac_sub_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\EOF +rtems-scripts configure ss-20020807 +generated by GNU Autoconf 2.52 + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +EOF + exit 0 +fi +exec 5>config.log +cat >&5 </dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +PATH = $PATH + +_ASUNAME +} >&5 + +cat >&5 <\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=" " ;; + *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" + ac_sep=" " ;; + esac + # Get rid of the leading space. +done + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + echo >&5 + echo "## ----------------- ##" >&5 + echo "## Cache variables. ##" >&5 + echo "## ----------------- ##" >&5 + echo >&5 + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} >&5 + sed "/^$/d" confdefs.h >conftest.log + if test -s conftest.log; then + echo >&5 + echo "## ------------ ##" >&5 + echo "## confdefs.h. ##" >&5 + echo "## ------------ ##" >&5 + echo >&5 + cat conftest.log >&5 + fi + (echo; echo) >&5 + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" >&5 + echo "$as_me: exit $exit_status" >&5 + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:805: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + cat "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:816: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:824: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:840: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:844: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:850: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:852: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:854: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. It doesn't matter if + # we pass some twice (in addition to the command line arguments). + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" + ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:873: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:875: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:895: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:898: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' +else + ac_path_separator=: +fi +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh + +for ac_prog in gmake make +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:911: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_MAKE+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$MAKE"; then + ac_cv_prog_MAKE="$MAKE" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_MAKE="$ac_prog" +echo "$as_me:926: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +MAKE=$ac_cv_prog_MAKE +if test -n "$MAKE"; then + echo "$as_me:934: result: $MAKE" >&5 +echo "${ECHO_T}$MAKE" >&6 +else + echo "$as_me:937: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$MAKE" && break +done + +ENDIF=endif + +RTEMS_TOPdir=".."; + +test -n "$with_target_subdir" || with_target_subdir="." + +if test "$with_target_subdir" = "." ; then +# Native +PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)' +else +# Cross +dots=`echo $with_target_subdir|\ +sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` +PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)' +fi + +if test "$with_target_subdir" = "." ; then +# Native +PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" +else +# Cross +PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" +fi + +echo "$as_me:968: checking for RTEMS Version" >&5 +echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6 +if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then + : +else + { { echo "$as_me:973: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5 +echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;} + { (exit 1); exit 1; }; } +fi + +echo "$as_me:978: result: ss-20020807" >&5 +echo "${ECHO_T}ss-20020807" >&6 + +am__api_version="1.6" +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:999: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:1019: checking for a BSD compatible install" >&5 +echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_save_IFS=$IFS; IFS=$ac_path_separator + for ac_dir in $PATH; do + IFS=$ac_save_IFS + # Account for people who put trailing slashes in PATH elements. + case $ac_dir/ in + / | ./ | .// | /cC/* \ + | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ + | /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if $as_executable_p "$ac_dir/$ac_prog"; then + if test $ac_prog = install && + grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:1068: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +echo "$as_me:1079: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:1103: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:1116: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +echo "$as_me:1122: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +test "$program_prefix" != NONE && + program_transform_name="s,^,$program_prefix,;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s,\$,$program_suffix,;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm conftest.sed + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { echo "$as_me:1146: WARNING: \`missing' script is too old or missing" >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +for ac_prog in mawk gawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:1154: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AWK+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_AWK="$ac_prog" +echo "$as_me:1169: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + echo "$as_me:1177: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6 +else + echo "$as_me:1180: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$AWK" && break +done + +echo "$as_me:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:1207: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:1211: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + # test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + { { echo "$as_me:1219: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } +fi + +# Define the identity of the package. + PACKAGE=rtems-scripts + VERSION=ss-20020807 + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +install_sh=${install_sh-"$am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +echo "$as_me:1252: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_STRIP="${ac_tool_prefix}strip" +echo "$as_me:1267: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + echo "$as_me:1275: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6 +else + echo "$as_me:1278: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +echo "$as_me:1287: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_STRIP="strip" +echo "$as_me:1302: found $ac_dir/$ac_word" >&5 +break +done + + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + echo "$as_me:1311: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6 +else + echo "$as_me:1314: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + STRIP=$ac_ct_STRIP +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. + +# Make sure we can run config.sub. +$ac_config_sub sun4 >/dev/null 2>&1 || + { { echo "$as_me:1331: error: cannot run $ac_config_sub" >&5 +echo "$as_me: error: cannot run $ac_config_sub" >&2;} + { (exit 1); exit 1; }; } + +echo "$as_me:1335: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6 +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_build_alias=$build_alias +test -z "$ac_cv_build_alias" && + ac_cv_build_alias=`$ac_config_guess` +test -z "$ac_cv_build_alias" && + { { echo "$as_me:1344: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || + { { echo "$as_me:1348: error: $ac_config_sub $ac_cv_build_alias failed." >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:1353: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6 +build=$ac_cv_build +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +echo "$as_me:1360: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6 +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_host_alias=$host_alias +test -z "$ac_cv_host_alias" && + ac_cv_host_alias=$ac_cv_build_alias +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || + { { echo "$as_me:1369: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:1374: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6 +host=$ac_cv_host +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +# Check for .exe suffix. +# With autoconf > 2.13 AC_EXEEXT is not what we want to use. +echo "$as_me:1383: checking for executable suffix" >&5 +echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 +case "$host" in +i?86-*cygwin*) + EXEEXT=.exe ;; +esac + +echo "$as_me:1390: result: $EXEEXT" >&5 +echo "${ECHO_T}$EXEEXT" >&6 + +test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache +. ./setup.cache + +echo "$as_me:1396: checking for rpm SPECS directory" >&5 +echo $ECHO_N "checking for rpm SPECS directory... $ECHO_C" >&6 +# Allow users to override RPM_SPECSdir from the environment. +if test -z "$RPM_SPECSdir" ; +then +# SuSE uses /usr/src/packages +# redhat uses /usr/src/redhat +# MDK is reported to use /usr/src/RPM +# others might use /usr/src + rpmpath="/usr:/usr/local" + rpmdirs="src/packages:src/redhat:src/RPM:src" + save_IFS="$IFS"; IFS=":" + for d in $rpmdirs; do + for p in $rpmpath; do + list="$p/$d:$list" + done + done + for d in $list; do + if test -d $d/SPECS; then + RPM_SPECSdir="$d/SPECS"; + break; + fi + done + IFS="$save_IFS" +fi + +if test x"$RPM_SPECSdir" = x"" ; then +{ { echo "$as_me:1423: error: not found" >&5 +echo "$as_me: error: not found" >&2;} + { (exit 1); exit 1; }; } +fi +echo "$as_me:1427: result: $RPM_SPECSdir" >&5 +echo "${ECHO_T}$RPM_SPECSdir" >&6 + +echo "$as_me:1430: checking for RPM CPU type" >&5 +echo $ECHO_N "checking for RPM CPU type... $ECHO_C" >&6 +case "$host" in + i?86-*linux*) RPM_CPU=i386 ;; + i?86-*cygwin*) RPM_CPU=i386 ;; + sparc-*solaris*) RPM_CPU=sparc ;; + *) + { { echo "$as_me:1437: error: RPM CPU for ${host} is unknown" >&5 +echo "$as_me: error: RPM CPU for ${host} is unknown" >&2;} + { (exit 1); exit 1; }; } + ;; +esac +echo "$as_me:1442: result: $RPM_CPU" >&5 +echo "${ECHO_T}$RPM_CPU" >&6 + +GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}" + +GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}" + +BINUTILSVERS="binutils-${binutils_version}" + +GDBVERS="gdb-${gdb_version}" + +BSPVERS="${rtems_version}" + +ac_config_files="$ac_config_files Makefile binutils/Makefile gccnewlib/Makefile gcc3newlib/Makefile gdb/Makefile rtems/Makefile autotools/Makefile autotools/automake-rtems.spec cpukit/Makefile" + +ac_config_files="$ac_config_files buildalltar" + +ac_config_files="$ac_config_files buildall" + +ac_config_files="$ac_config_files mkgdbspec" + +ac_config_files="$ac_config_files mkbinutilspec" + +ac_config_files="$ac_config_files mkgccnewlibspec" + +ac_config_files="$ac_config_files mkgcc3newlibspec" + +ac_config_files="$ac_config_files mkbspspec" + +ac_config_files="$ac_config_files cpukit/mkspec" + +ac_config_commands="$ac_config_commands default" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overriden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if cmp -s $cache_file confcache; then :; else + if test -w $cache_file; then + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\EOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p +EOF +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:1584: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated automatically by configure. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +SHELL=\${CONFIG_SHELL-$SHELL} +ac_cs_invocation="\$0 \$@" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +exec 6>&1 + +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\EOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Configuration commands: +$config_commands + +Report bugs to ." +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + shift + set dummy "$ac_option" "$ac_optarg" ${1+"$@"} + shift + ;; + -*);; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_need_defaults=false;; + esac + + case $1 in + # Handling of the options. +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:1755: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + shift + CONFIG_FILES="$CONFIG_FILES $1" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + shift + CONFIG_HEADERS="$CONFIG_HEADERS $1" + ac_need_defaults=false;; + + # This is an error. + -*) { { echo "$as_me:1774: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + + esac + shift +done + +exec 5>>config.log +cat >&5 << _ACEOF + +## ----------------------- ## +## Running config.status. ## +## ----------------------- ## + +This file was extended by $as_me (rtems-scripts ss-20020807) 2.52, executed with + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + > $ac_cs_invocation +on `(hostname || uname -n) 2>/dev/null | sed 1q` + +_ACEOF +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "binutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES binutils/Makefile" ;; + "gccnewlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gccnewlib/Makefile" ;; + "gcc3newlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcc3newlib/Makefile" ;; + "gdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb/Makefile" ;; + "rtems/Makefile" ) CONFIG_FILES="$CONFIG_FILES rtems/Makefile" ;; + "autotools/Makefile" ) CONFIG_FILES="$CONFIG_FILES autotools/Makefile" ;; + "autotools/automake-rtems.spec" ) CONFIG_FILES="$CONFIG_FILES autotools/automake-rtems.spec" ;; + "cpukit/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpukit/Makefile" ;; + "buildalltar" ) CONFIG_FILES="$CONFIG_FILES buildalltar" ;; + "buildall" ) CONFIG_FILES="$CONFIG_FILES buildall" ;; + "mkgdbspec" ) CONFIG_FILES="$CONFIG_FILES mkgdbspec" ;; + "mkbinutilspec" ) CONFIG_FILES="$CONFIG_FILES mkbinutilspec" ;; + "mkgccnewlibspec" ) CONFIG_FILES="$CONFIG_FILES mkgccnewlibspec" ;; + "mkgcc3newlibspec" ) CONFIG_FILES="$CONFIG_FILES mkgcc3newlibspec" ;; + "mkbspspec" ) CONFIG_FILES="$CONFIG_FILES mkbspspec" ;; + "cpukit/mkspec" ) CONFIG_FILES="$CONFIG_FILES cpukit/mkspec" ;; + "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; + *) { { echo "$as_me:1834: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + +EOF + +cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@DEFS@,$DEFS,;t t +s,@LIBS@,$LIBS,;t t +s,@MAKE@,$MAKE,;t t +s,@ENDIF@,$ENDIF,;t t +s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t +s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t +s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@PACKAGE@,$PACKAGE,;t t +s,@VERSION@,$VERSION,;t t +s,@ACLOCAL@,$ACLOCAL,;t t +s,@AUTOCONF@,$AUTOCONF,;t t +s,@AUTOMAKE@,$AUTOMAKE,;t t +s,@AUTOHEADER@,$AUTOHEADER,;t t +s,@MAKEINFO@,$MAKEINFO,;t t +s,@AMTAR@,$AMTAR,;t t +s,@install_sh@,$install_sh,;t t +s,@STRIP@,$STRIP,;t t +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t +s,@AWK@,$AWK,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@build@,$build,;t t +s,@build_cpu@,$build_cpu,;t t +s,@build_vendor@,$build_vendor,;t t +s,@build_os@,$build_os,;t t +s,@host@,$host,;t t +s,@host_cpu@,$host_cpu,;t t +s,@host_vendor@,$host_vendor,;t t +s,@host_os@,$host_os,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@RPM_SPECSdir@,$RPM_SPECSdir,;t t +s,@GCCNEWLIBVERS@,$GCCNEWLIBVERS,;t t +s,@GCC3NEWLIBVERS@,$GCC3NEWLIBVERS,;t t +s,@BINUTILSVERS@,$BINUTILSVERS,;t t +s,@GDBVERS@,$GDBVERS,;t t +s,@RTEMS_VERSION@,$RTEMS_VERSION,;t t +s,@BSPVERS@,$BSPVERS,;t t +s,@RPM_CPU@,$RPM_CPU,;t t +CEOF + +EOF + + cat >>$CONFIG_STATUS <<\EOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat + fi +fi # test -n "$CONFIG_FILES" + +EOF +cat >>$CONFIG_STATUS <<\EOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` + else + ac_dir_suffix= ac_dots= + fi + + case $srcdir in + .) ac_srcdir=. + if test -z "$ac_dots"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_dots$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_dots$srcdir ;; + esac + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_dots$INSTALL ;; + esac + + if test x"$ac_file" != x-; then + { echo "$as_me:2068: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + configure_input="Generated automatically from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:2086: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:2099: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + + # Run the commands associated with the file. + case $ac_file in + buildalltar ) chmod +x buildalltar ;; + buildall ) chmod +x buildall ;; + mkgdbspec ) chmod +x mkgdbspec ;; + mkbinutilspec ) chmod +x mkbinutilspec ;; + mkgccnewlibspec ) chmod +x mkgccnewlibspec ;; + mkgcc3newlibspec ) chmod +x mkgcc3newlibspec ;; + mkbspspec ) chmod +x mkbspspec ;; + cpukit/mkspec ) chmod +x cpukit/mkspec ;; + esac +done +EOF +cat >>$CONFIG_STATUS <<\EOF + +# +# CONFIG_COMMANDS section. +# +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue + ac_dest=`echo "$ac_file" | sed 's,:.*,,'` + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` + + case $ac_dest in + default ) chmod 755 buildall +chmod 755 buildalltar + ;; + esac +done +EOF + +cat >>$CONFIG_STATUS <<\EOF + +{ (exit 0); exit 0; } +EOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + exec 5>/dev/null + $SHELL $CONFIG_STATUS || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi +
configure Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: Makefile.in =================================================================== --- Makefile.in (nonexistent) +++ Makefile.in (revision 1765) @@ -0,0 +1,513 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = . + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +host_alias = @host_alias@ +host_triplet = @host@ + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BINUTILSVERS = @BINUTILSVERS@ +BSPVERS = @BSPVERS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC3NEWLIBVERS = @GCC3NEWLIBVERS@ +GCCNEWLIBVERS = @GCCNEWLIBVERS@ +GDBVERS = @GDBVERS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RPM_CPU = @RPM_CPU@ +RPM_SPECSdir = @RPM_SPECSdir@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_VERSION = @RTEMS_VERSION@ +STRIP = @STRIP@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +install_sh = @install_sh@ + +ACLOCAL_AMFLAGS = -I ../aclocal + +SUBDIRS = . binutils gccnewlib gcc3newlib gdb rtems autotools cpukit + +noinst_SCRIPTS = setup buildall buildalltar mkbinutilspec mkbspspec \ + mkgccnewlibspec mkgcc3newlibspec mkgdbspec mkrpms mkspec + + +TEMPLATES = + +noinst_DATA = setup.def $(TEMPLATES) + +EXTRA_DIST = $(noinst_DATA) $(noinst_SCRIPTS) + +CONFIGURE_DEPENDENCIES = setup.cache + +DISTCLEANFILES = setup.cache + +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_CLEAN_FILES = buildalltar buildall mkgdbspec mkbinutilspec \ + mkgccnewlibspec mkgcc3newlibspec mkbspspec +SCRIPTS = $(noinst_SCRIPTS) + +DIST_SOURCES = +DATA = $(noinst_DATA) + + +RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ + uninstall-info-recursive all-recursive install-data-recursive \ + install-exec-recursive installdirs-recursive install-recursive \ + uninstall-recursive check-recursive installcheck-recursive +DIST_COMMON = README ../config.guess ../config.sub ../install-sh \ + ../missing ../mkinstalldirs ChangeLog Makefile.am Makefile.in \ + TODO aclocal.m4 buildall.in buildalltar.in configure \ + configure.ac mkbinutilspec.in mkbspspec.in mkgcc3newlibspec.in \ + mkgccnewlibspec.in mkgdbspec.in +DIST_SUBDIRS = $(SUBDIRS) +all: all-recursive + +.SUFFIXES: + +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/../automake/subdirs.am $(top_srcdir)/../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) + +$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck +$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) + cd $(srcdir) && $(AUTOCONF) + +$(ACLOCAL_M4): configure.ac ../aclocal/bsp-alias.m4 ../aclocal/bsp-arg-enable.m4 ../aclocal/bsp-configure.m4 ../aclocal/bspopts.m4 ../aclocal/canonical-host.m4 ../aclocal/canonical-target-name.m4 ../aclocal/canonicalize-tools.m4 ../aclocal/check-bsp-cache.m4 ../aclocal/check-bsps.m4 ../aclocal/check-cpu.m4 ../aclocal/check-cxx.m4 ../aclocal/check-itron.m4 ../aclocal/check-multiprocessing.m4 ../aclocal/check-networking.m4 ../aclocal/check-newlib.m4 ../aclocal/check-posix.m4 ../aclocal/check-rdbg.m4 ../aclocal/check-tool.m4 ../aclocal/config-subdirs.m4 ../aclocal/enable-bare.m4 ../aclocal/enable-cxx.m4 ../aclocal/enable-inlines.m4 ../aclocal/enable-itron.m4 ../aclocal/enable-multiprocessing.m4 ../aclocal/enable-networking.m4 ../aclocal/enable-posix.m4 ../aclocal/enable-rdbg.m4 ../aclocal/enable-rtemsbsp.m4 ../aclocal/enable-tests.m4 ../aclocal/env-rtemsbsp.m4 ../aclocal/gcc-pipe.m4 ../aclocal/gcc-specs.m4 ../aclocal/i386-gas-code16.m4 ../aclocal/multilib.m4 ../aclocal/path-ksh.m4 ../aclocal/path-perl.m4 ../aclocal/ppc.m4 ../aclocal/prog-cc.m4 ../aclocal/prog-cxx.m4 ../aclocal/project-root.m4 ../aclocal/rtems-cpu-subdirs.m4 ../aclocal/rtems-debug.m4 ../aclocal/rtems-test-no-pause.m4 ../aclocal/rtems-top.m4 ../aclocal/sysv-ipc.m4 ../aclocal/target.m4 ../aclocal/tool-paths.m4 ../aclocal/version.m4 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +buildalltar: $(top_builddir)/config.status buildalltar.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +buildall: $(top_builddir)/config.status buildall.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +mkgdbspec: $(top_builddir)/config.status mkgdbspec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +mkbinutilspec: $(top_builddir)/config.status mkbinutilspec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +mkgccnewlibspec: $(top_builddir)/config.status mkgccnewlibspec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +mkgcc3newlibspec: $(top_builddir)/config.status mkgcc3newlibspec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +mkbspspec: $(top_builddir)/config.status mkbspspec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +uninstall-info-am: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @set fnord $$MAKEFLAGS; amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @set fnord $$MAKEFLAGS; amf=$$2; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done + +ETAGS = etags +ETAGSFLAGS = + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$tags$$unique" \ + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = . +distdir = $(PACKAGE)-$(VERSION) + +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } + +GZIP_ENV = --best +distcleancheck_listfiles = find . -type f -print + +distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) + $(mkinstalldirs) $(distdir)/. $(distdir)/.. $(distdir)/autotools $(distdir)/cpukit + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d $(distdir)/$$subdir \ + || mkdir $(distdir)/$$subdir \ + || exit 1; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" \ + distdir=../$(distdir)/$$subdir \ + distdir) \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist dist-all: distdir + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + $(am__remove_distdir) + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/=build + mkdir $(distdir)/=inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \ + && cd $(distdir)/=build \ + && ../configure --srcdir=.. --prefix=$$dc_install_base \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + find $$dc_install_base -type f -print ; \ + exit 1; } >&2 ) \ + && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ + && rm -f $(distdir).tar.gz \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @echo "$(distdir).tar.gz is ready for distribution" | \ + sed 'h;s/./=/g;p;x;p;x' +distcleancheck: distclean + if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile $(SCRIPTS) $(DATA) +installdirs: installdirs-recursive +installdirs-am: + +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-local mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) +distclean-am: clean-am distclean-generic distclean-local distclean-tags + +dvi: dvi-recursive + +dvi-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf autom4te.cache +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ + clean-generic clean-local clean-recursive dist dist-all \ + dist-gzip distcheck distclean distclean-generic distclean-local \ + distclean-recursive distclean-tags distcleancheck distdir dvi \ + dvi-am dvi-recursive info info-am info-recursive install \ + install-am install-data install-data-am install-data-recursive \ + install-exec install-exec-am install-exec-recursive \ + install-info install-info-am install-info-recursive install-man \ + install-recursive install-strip installcheck installcheck-am \ + installdirs installdirs-am installdirs-recursive \ + maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-recursive tags tags-recursive uninstall \ + uninstall-am uninstall-info-am uninstall-info-recursive \ + uninstall-recursive + +setup.cache: setup.def + cp setup.def $@ + +depend-recursive \ +preinstall-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +preinstall: preinstall-recursive +.PHONY: preinstall-recursive + +depend: depend-recursive +.PHONY: depend-recursive + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +.PHONY: profile + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +depend-am: +depend: depend-am +.PHONY: depend depend-am + +${ARCH}: + mkdir ${ARCH} + +clean-local: + $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS) + $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp + +distclean-local: + $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: mkspec =================================================================== --- mkspec (nonexistent) +++ mkspec (revision 1765) @@ -0,0 +1,20 @@ +#!/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/mkgccnewlibspec $target_alias +#${RTEMS_DIR}/scripts/mkgdbspec $target_alias +./mkbinutilspec $target_alias +./mkgccnewlibspec $target_alias +./mkgcc4newlibspec $target_alias +./mkgdbspec $target_alias +
mkspec Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: ChangeLog =================================================================== --- ChangeLog (nonexistent) +++ ChangeLog (revision 1765) @@ -0,0 +1,383 @@ +2002-08-06 Joel Sherrill + + * setup.def: Updating gcc3/newlib patches and tool versions. The + focus of this round of patches was ot eliminate header file name + conflicts between RTEMS and newlib. + +2002-07-30 Joel Sherrill + + * setup.def: Updated to gcc3.1/newlib 1.10.0 RPM revision 5 with + the gcc3 patch 20020730a and newlib 1.10.0 patch 20020726. + +2002-07-30 Ralf Corsepius + + * autotools/automake-rtems.spec.in: Automake-1.6.3. + * cpukit/.cvsignore: Add mkspec. Remove rtems.spec. + +2002-07-29 Ralf Corsepius + + * configure.ac: Use AC_CONFIG_FILES(script, chmod +x script) + to generate mk*spec scripts. + * mkbspspec.in: Use ',' as pattern delimiter in sed expression + for $rpm_build_root. + * mkbinutilsspec.in: Use ',' as pattern delimiter in sed + expression for $rpm_build_root. + * cpukit/mkspec.in: Cosmetical changes. + +2002-07-29 Ralf Corsepius + + * ChangeLog: Fix 2002-07-22 ChangeLog entry bogusly referring to + Joel. + * cpukit/Makefile.am: New. + * cpukit/mkspec.in: New. + * cpukit/rtems-cpukit.spec.in: New. + * cpukit/.cvsignore: New. + * configure.ac: Add cpukit. + Add RTEMS_TOP to pickup _RTEMS_VERSION (required by cpukit). + * Makefile.am: Add cpukit. Add ACLOCAL_AMFLAGS (required to pickup + RTEMS_VERSION). + * setup.def: Use %{_tmppath} as default for $rpm_build_root. + * mkbinutilsspec.in: Use ',' as pattern delimiter in sed expression + for $rpm_build_root. + * mkgccnewlibspec.in: Use ',' as pattern delimiter in sed + expression for $rpm_build_root. + * mkgcc3newlibspec.in: Use ',' as pattern delimiter in sed + expression for $rpm_build_root. + * mkgdbspec.in: Use ',' as pattern delimiter in sed expression for + $rpm_build_root. + +2002-07-22 Ralf Corsepius + + * binutils/Makefile.am: Add or32-rtems-binutils. + +2002-07-19 Joel Sherrill + + * setup.def: Updated newlib patch to get sh and hppa crt0 mods. + +2002-07-01 Joel Sherrill + + * setup.def: Update gcc3 RPMs for new patches. + +2002-06-27 Ralf Corsepius + + * autotools/automake-rtems.spec.in: Update to automake-1.6.2. + +2002-06-14 Joel Sherrill + + * mkgdbspec.in, setup.def, gcc3newlib/gccnewlib.add, gdb/gdb.add: + Updated to gcc 3.1 and gdb 5.2. + +2001-05-29 Joel Sherrill + + * setup.def: Updated to binutils 2.12.1. + * rtems/Makefile.am: Remove m68k-rtemself references. + +2002-06-15 Ralf Corsepius + + * mkgcc3newlibspec.in: Remove SETUP (bogus). + * gcc3newlib/target-c++.add: New. + * gcc3newlib/Makefile.am: Add target-c++.add. + * gcc3newlib/base-g77.add: Adapt to gcc-3.1. + Reflect having split out c++. Various minor fixes. + * gcc3newlib/base-gcc.add: Ditto. + * gcc3newlib/gccnewlib.add: Ditto. + * gcc3newlib/target-gcc.add: Ditto. + +2002-04-20 Ralf Corsepius + + * gcc3newlib/gccnewlib.add: Add gcc_update --touch to fix + timestamps. + +2001-04-16 Joel Sherrill + + * .cvsignore: Added files added by automake 1.6.1. + * setup.def: New shot at gcc 3.0.4 RPMs. + * binutils/Makefile.am, gdb/Makefile.am, rtems/Makefile.am: + Deleted m68k-rtemself. + * gcc3newlib/gccnewlib.add: Commented out host/target OS check. + +2002-04-14 Ralf Corsepius + + * autotools/automake-rtems.spec.in: Update to automake-1.6.1. + Use *.tar.bz2. + +2002-04-06 Ralf Corsepius + + * mkbinutilspec.in: Fix PATCH2. + +2002-04-04 Ralf Corsepius + + * gcc3newlib/gccnewlib.add: Add -Bgcc/ when collecting multilibs. + +2002-04-04 Ralf Corsepius + + * gcc3newlib/gccnewlib.spec.in: Removed from CVS. + + +2002-04-03 Ralf Corsepius + + * mkbinutilspec.in: Add support for empty patch-version (no patch). + * mkgcc3newlibspec.in: Ditto. + * setup: Fix gcc3*_versions handling. + * setup.def: binutils_patch_version=. + * binutils/binutils.add: Reflect changes to mkbinutilspec.in, + Use "%{_target_os}" != "%{_build_os}" to detect cross-building. + * binutils/target-binutils.add: Comment out c++filt. + * gcc3newlib/base-gcc.add: Remove duplicate libm.info. + * gcc3newlib/gccnewlib.add: Reflect changes to mkgcc3newlibspec.in. + Use "%{_target_os}" != "%{_build_os}" to detect cross-building. + Comment out gcc-2.95.x hacks. + Remove *.la from installed files. + * gcc3newlib/gccnewlib_c_only.spec.in: Remove. + +2001-04-02 Joel Sherrill + + * buildall.in: Correct logic for detecting 0 RTEMS RPMS installed. + +2001-03-29 Joel Sherrill + + * .cvsignore: Added mkgcc3newlib. + +2001-03-29 Joel Sherrill + + * gcc3newlib/.cvsignore: New file. + +2001-03-28 Joel Sherrill + + * Per PR64 added support for gcc 3.x RPMs + * Makefile.am, configure.ac, mkspec, setup, setup.def: Modified. + * mkgcc3newlibspec.in: New file. + * gcc3newlib: New subdirectory. + * base-g77.add, base-gcc.add, base-gcj.add, gccnewlib.add, + gccnewlib_c_only.spec.in, gccnewlib.spec.in, HISTORY, Makefile.am, + README, target-g77.add, target-gcc.add, target-gcj.add, + target-objc.add: New files. + +2001-03-28 Joel Sherrill + + * binutils/binutils.add: Commented out patch since binutils 2.12 + does not require one. + +2002-03-27 Ralf Corsepius + + * configure.ac: + AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). + AM_INIT_AUTOMAKE([no-define foreign 1.6]). + * autotools/Makefile.am: Remove AUTOMAKE_OPTIONS. + * Makefile.am: Remove AUTOMAKE_OPTIONS. + * binutils/Makefile.am: Remove AUTOMAKE_OPTIONS. + * gccnewlib/Makefile.am: Remove AUTOMAKE_OPTIONS. + * gdb/Makefile.am: Remove AUTOMAKE_OPTIONS. + * rtems/Makefile.am: Remove AUTOMAKE_OPTIONS. + +2002-03-06 Ralf Corsepius + + * PR151 + * autotools/automake-rtems.spec.in: New. + * autotools/automake-rtems.spec: Removed. + * configure.ac: Reflect changes above. + +2001-02-27 Joel Sherrill + + * configure.ac: Be a little more lenient in matching sparc-solaris. + +2002-01-29 Ralf Corsepius + + * mkbinutilspec.in, mkgccnewlibspec.in, gccnewlib/base-chill.add, + gccnewlib/base-g77.add, gccnewlib/base-gcc.add, + gccnewlib/base-gcj.add, gccnewlib/gccnewlib.add, + gccnewlib/target-chill.add, gccnewlib/target-g77.add, + gccnewlib/target-gcc.add, gccnewlib/target-gcj.add, + gccnewlib/target-objc.add: Added more support for Canadian Cross + building. + +2001-01-30 Joel Sherrill + + * buildall.in: Corrected logic for detecting when no RPMs are installed. + +2001-01-24 Joel Sherrill + + * README: Added Canadian Cross instructions. + +2002-01-23 Ralf Corsepius + + * configure.ac: Add AC_PREFIX_DEFAULT([/opt/rtems]). + * mkbinutilsspec.in: Add propagation of @prefix@. + * binutils/base-binutils.add: + Let %post and %unpost apply %{_prefix}. + Apply %{_prefix} instead of /opt/rtems. + * binutils/binutils.add: Update copyright notice. + Add _prefix. + Apply %{_prefix} instead of /opt/rtems. + Remove -a 0 in %setup. + Rework hack to SuSE's rpm screwing up %{_target}. + Replace ARGS with CONFIGURE_ARGS. + * binutils/target-binutils.add: + Apply %{_prefix} instead of /opt/rtems. + +2002-01-22 Ralf Corsepius + + * binutils/binutils.add: Add initial support for building + Canadian cross RPMs. It should work like this: + cd rtems/scripts + ./configure --build=`../config.guess` --host=i386-cygwin + make install + rpm --target=i386-cygwin \ + /usr/src/redhat/SPECS/-binutils-..spec. + + alien -t /usr/src/redhat/RPMS/....i386.rpm + .. and voila ... your tarball, with rpm-consistency checks etc. applied. + +2001-01-22 Joel Sherrill + + * buildalltar.in: Modified to support Canadian cross builds. + It was testing using a RedHat 7.2 host to build *-rtems tools + that run on an i386-cygwin host. + +2001-11-15 Ralf Corsepius + + * configure.ac: Fix typo to allow custom RPM_SPECSdirs. + +2001-10-16 Joel Sherrill + + * setup.def: Bumped the gdb_patch_version to account for a configuration + problem on psim where it could not be enabled for powerpc-RTEMS. + * gdb/Makefile.am: Add i386-RTEMS and powerpc-RTEMS targets. + +2001-10-15 Ralf Corsepius + + * mkbinutilsspec.in: Guard sed-pattern against autoconf. + * mkgccnewlibspec.in: Guard sed-pattern against autoconf, remove + Target_alias. + * mkgdbspec.in: Guard sed-pattern against autoconf. + * mkbspspec.in: Guard sed-pattern against autoconf. + * configure.ac: Rework check for RPM_SPECSdir. + * autotools/automake-rtems.spec: Update to automake-1.5. + +2001-10-11 Ralf Corsepius + + * .cvsignore: Add autom4te.cache for autoconf > 2.52. + * configure.in: Remove. + * configure.ac: New file, generated from configure.in by autoupdate. + +2001-09-22 Ralf Corsepius + + * gdb/Makefile.am, gccnewlib/Makefile.am, binutils/Makefile.am: + Initially setup CLEANFILES using = instead of += to make + automake-1.5 happy. + +2001-09-13 Joel Sherrill + + * setup.def, gccnewlib/gccnewlib.add, gccnewlib/target-gcc.add: + Revert changes because of gcc 2.5.x/3.0 transition and continue + to support gcc 2.95.x as primary version. + +2001-09-13 Joel Sherrill + + * mkgccnewlibspec.in, + Use Target_alias not target_alias to avoid conflicts with new autoconf. + * setup.def: Changed version numbers in attempt at building gcc 3.0.1. + Only sparc and arm built for C/C++ OK. :( + * gccnewlib/base-gcc.add: Modifications to reflect files not in gcc 3.x. + * gccnewlib/gccnewlib.add: gcc 3.x does not have "everything in the name" + * target-gcc.add: Modifications to reflect files not in gcc 3.1 + +2001-09-13 Joel Sherrill + + * autotools/.cvsignore: New file. + +2001-07-19 Ralf Corsepius + + * autotools/Makefile.am, autotools/autoconf-rtems.spec, + autotools/automake-rtems.spec: New. + * configure.in, Makefile.am: Add autotools/. + +2001-08-30 Joel Sherrill + + * .cvsignore: Add buildalltar. + +2001-08-30 Joel Sherrill + + * buildalltar.in: New file. + * configure.in, Makefile.am: Modified to reflect addition of file. + +2001-08-10 Joel Sherrill + + * mkgdbspec.in: Make list of simulators very complete. + * setup.def: Update versions. + +2001-07-03 Joel Sherrill + + * setup.def, binutils.add, gccnewlib.add: Updated to build + binutils 2.11.2 (rtems patch 20010622), gcc 2.95.3 (rtems + patch a20010622), and newlib 1.9.0 (rtems patch 10020622). + +2001-05-15 Ralf Corsepius + + * configure.in: Remove AC_EXEEXT, treat .exe manually. + * gccnewlib/base-gcc.add: Remove cpp. + * gccnewlib/gccnewlib.add: mv cpp $target_alias-cpp, update + copyright. + +2001-04-16 Joel Sherrill + + * setup.def: Modified the binutils version to 2.11 and + RPM revision 3 to reflect experimentation with new binutils release. + +2001-04-11 Joel Sherrill + + * binutils/Makefile.am: Added a29k-rtems. + * binutils/binutils.add: Switch to .bz2 extension to reflect + real way code is compressed on distribution sites now. + +2001-03-19 Joel Sherrill + + * setup.def: Updated version numbers and patches for binutils + and gdb. binutils was to get correct patch in field. gdb + was to add mipstx39-rtems configurery support. + +2001-03-14 Joel Sherrill + + * gdb/Makefile.am, mkgdbspec.in: Added mipstx39-rtems + configuration to gdb since this includes the JMR3904 simulator. + +2001-01-03 Joel Sherrill + + * setup.def, binutils/HISTORY, gccnewlib/HISTORY: Updated + binutils HISTORY to reflect new revision. Updated gcc to fix + i960 C++ problem. Updated newlib to move to newlib 1.9.0. + +2000-11-13 Ralf Corsepius + + * gccnewlib/gccnewlib.add: Fix typo in URL. + +2000-11-05 Ralf Corsepius + + * configure.in: Adapt m4-quoting to autoconf-2.49b, use $host + instead of $target to setup RPM_CPU, move chmod 755 buildall to + AC_OUTPUT's extra-cmds. + +2000-10-30 Joel Sherrill + + * buildall.in, mkgdbspec.in, setup.def, binutils/Makefile.am, + gccnewlib/HISTORY, gccnewlib/Makefile.am, gdb/Makefile.am: + Added mips-rtems, updated to include new patches and + gcc 2.95.2/newlib 1.8.2 revision 11 RPM. + +2000-10-26 Ralf Corsepius + + * configure.in: Remove trailing '/'s from setting up RPM_SPECdir. + +2000-10-18 Joel Sherrill + + * setup.def: Updating version numbers for gcc/newlib RPM release 10. + +2000-08-30 Joel Sherrill + + * setup.def: Updated gcc and newlib patches and bumped RPM revision. + Patches primarily add or16/or32 basic support to newlib and + i386 multilib improvements to gcc from Ralf Corsepius. + +2000-08-10 Joel Sherrill + + * ChangeLog: New file. Index: mkgcc3newlibspec.in =================================================================== --- mkgcc3newlibspec.in (nonexistent) +++ mkgcc3newlibspec.in (revision 1765) @@ -0,0 +1,90 @@ +#!/bin/sh +# +# Usage: mktoolspec CPU +# + +RTEMS_DIR=`dirname $0`/@top_srcdir@ + +CFG=setup.cache +dst=@RPM_SPECSdir@ +exe_ext=@EXEEXT@ + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -cfg " + echo " -o " + exit 1 ; +} + +specsrc=${RTEMS_DIR}/gcc3newlib/gccnewlib.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}-gcc-${gcc3_version}-newlib-${gcc3newlib_version}.spec + +patchn=-1 +if test -n "${gcc3_patch_version}"; then +patchn=`expr $patchn + 1` +PATCH1="Patch${patchn}: gcc-${gcc3_version}-rtems-${gcc3_patch_version}.diff" +PATCH2="%patch${patchn} -p0" +fi + +if test -n "${gcc3newlib_patch_version}"; then +patchn=`expr $patchn + 1` +PATCH3="Patch${patchn}: newlib-${gcc3newlib_version}-rtems-${gcc3newlib_patch_version}.diff" +PATCH4="%patch${patchn} -p0" +fi + +# note that the variables in the gcc3newlib directory are actually the same +sed -e "s,@PATCH1\@,${PATCH1}," \ + -e "s,@PATCH2\@,${PATCH2}," \ + -e "s,@PATCH3\@,${PATCH3}," \ + -e "s,@PATCH4\@,${PATCH4}," \ + -e "s%@Release\@%${gcc3newlib_rpm_release}%g" \ + -e "s%@target_alias\@%${target_alias}%g" \ + -e "s%@prefix\@%@prefix@%g" \ + -e "s,@rpm_build_root\@,${rpm_build_root},g" \ + -e "s%@gcc_version\@%${gcc3_version}%g" \ + -e "s%@gcc_patch_version\@%${gcc3_patch_version}%g" \ + -e "s%@newlib_version\@%${gcc3newlib_version}%g" \ + -e "s%@newlib_patch_version\@%${gcc3newlib_patch_version}%g" \ + -e "s%@exe_ext\@%${exe_ext}%g" \ +< ${specsrc} \ +> ${specfile} + +echo Generated ${specfile}. Index: mkbspspec.in =================================================================== --- mkbspspec.in (nonexistent) +++ mkbspspec.in (revision 1765) @@ -0,0 +1,62 @@ +#!/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] " + echo " options:" + echo " -cfg " + echo " -o " + 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-$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} Index: buildall.in =================================================================== --- buildall.in (nonexistent) +++ buildall.in (revision 1765) @@ -0,0 +1,210 @@ +#! /bin/sh +# +# Generate all the specs and then cycle through building them. +# + +RTEMS_DIR=`dirname $0` +CFG=./setup.cache +dst=@RPM_SPECSdir@ +target=@target@ +rpm_cpu=@RPM_CPU@ + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -b -- build binutils" + echo " -g -- build gcc/newlib" + echo " -d -- build gdb" + echo " -t -- enable test/debug mode" + echo " -cfg " + echo " -o " + exit 1 ; +} + +testing=no +do_binutils=no +do_gccnewlib=no +do_gdb=no + +while test $# -ge 1; do + case $1 in + -b) do_binutils=yes ; shift;; + -g) do_gccnewlib=yes ; shift;; + -d) do_gdb=yes ; shift;; + -t) do_test=yes ; shift;; + -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 + +if test ${do_binutils} = no -a ${do_gccnewlib} = no -a ${do_gdb} = no ; then + echo "You must request building binutils, gcc/newlib, or gdb." + usage +fi + + +# This is the full list .. hppa1.1 does not build now. +#ALL_TARGETS="hppa1.1-rtems i386-rtems i960-rtems m68k-rtems \ +# m68k-rtemself mips-rtems mips64orion-rtems \ +# powerpc-rtems sh-rtems sh-rtemself sparc-rtems" + +# This is the full buildable set. +if [ "X${TARGETS}" = "X" ] ; then + # do not include c4x or hppa primary targets + # do not include sh-elf or i960-elf secondary targets + TARGETS="arm-rtems h8300-rtems i386-rtems i960-rtems m68k-rtems \ + mips-rtems mips64orion-rtems powerpc-rtems sh-rtems sparc-rtems" +fi + +. $CFG + +binutils=${binutils_version} +gcc=${gcc_version} +gdb=${gdb_version} +newlib=${newlib_version} +# also use binutils_rpm_release +buildroot=/tmp + +# +# Now get started +# +start=`date` + +echo PATH=$PATH + +if [ ${testing} = yes ] ; then + ECHO=echo +fi + +installed_count=`rpm -q -g rtems | grep -v "auto" | grep -v "does not contain" | 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}-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/rtems + else + echo Skipping binutils for ${target} + fi + + # + # build gcc/newlib + # + + if [ ${do_gccnewlib} = yes ] ; then + # now build gcc/newlib + # NOTE: This requires having binutils installed and we immediately + # remove it once finished. + base_binutils_rpm=${dst}/../RPMS/${rpm_cpu}/rtems-base-binutils-${binutils}-${binutils_rpm_release}.${rpm_cpu}.rpm + binutils_rpm=${dst}/../RPMS/${rpm_cpu}/${target}-binutils-${binutils}-${binutils_rpm_release}.${rpm_cpu}.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}-gccnewlib + specfile=${dst}/${target}-gcc-${gcc}-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/rtems + + echo uninstalling binutils for ${target} + if [ ${testing} = no ] ; then + rpm -e `rpm -qa | grep rtems` + rm -rf /opt/rtems/* + 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}-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/rtems + else + echo Skipping gdb for ${target} + fi + +done + +# Now we are done + +stop=`date` + +echo +echo "Started: " $start +echo "Finished: " $stop +exit 0
buildall.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: README =================================================================== --- README (nonexistent) +++ README (revision 1765) @@ -0,0 +1,255 @@ + + RPM support for BSPs + ==================== + +Introduction +------------ + +Building an rpm requires to have a tar archive of the sources, and a +rpm-spec files specifying the details of building. + +To support per bsp rpms, one rpm-spec is used per BSP. +Instead of writing one rpm-spec for each BSP, I have written a shell script +(mkspec) which generates one *.spec (rtems--.spec) per BSP +bsp from an rpm-spec template (rtems.spec.in). + +A second shell script (mkrpms) is a convienience script which invokes a +sequence of building rpms for several bsps. + + +mkbinutilspec +------------- + +mkbinutilspec takes two arguments: + +$1 ... the target_alias for binutils RPMs of this toolset + +Invoking mkbinutilspec will generate a -binutils.spec either in + + /usr/src/packages/SPECS (SuSE convention) or + /usr/src/redhat/SPECS (Redhat convention) or + /usr/src/SPECS + +Eg. ./mkbinutilspec sparc-rtems generates + +On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-binutils.spec +On RedHat 6.0: /usr/src/redhat/SPECS/sparc-rtems-binutils.spec + +mkgccnewlibspec +--------------- + +mkgccnewlibspec takes two arguments: + +$1 ... the target_alias for the gcc/newlib RPMs of this toolset + +Invoking mkgccnewlibspec will generate a -gccnewlibs.spec +either in: + + /usr/src/packages/SPECS (SuSE convention) or + /usr/src/redhat/SPECS (Redhat convention) or + /usr/src/SPECS + +Eg. ./mkgccnewlibspec sparc-rtems generates + +On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec +On RedHat 6.0: /usr/src/redhat/SPECS/sparc-rtems-gcc_newlib.spec + +mkgdbspec +--------- + +mkgdbspec takes two arguments: + +$1 ... the target_alias for the gdb RPMs of this toolset + +Invoking mkgdbspec will generate a -gdb.spec +either in: + + /usr/src/packages/SPECS (SuSE convention) or + /usr/src/redhat/SPECS (Redhat convention) or + /usr/src/SPECS + +Eg. ./mkgdbspec sparc-rtems generates + +On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec +On RedHat 6.0: /usr/src/redhat/SPECS/sparc-rtems-gcc_newlib.spec + + +# XXX BSPs not tested yet by Joel +# +# mkbspspec +# --------- +# +# mkbspspec takes two arguments: +# $1 ... the target_alias this bsp belongs to +# $2 ... the bsp to be built +# +# Invoking mkbspspec will generate a rtems--.spec either in +# /usr/src/packages/SPECS (SuSE convention) or +# /usr/src/redhat/SPECS (Redhat convention) or +# /usr/src/SPECS +# +# Eg. ./mkspec gensh1 sh-rtemself generates +# /usr/src/packages/SPECS/rtems-sh-rtemself-gensh1.spec on SuSE-6.2. + +mkspec +--------- + +mkspec takes two arguments: + +$1 ... the target_alias for the RPMs composing this toolset +$2 ... the bsp to be built + +Invoking mkspec will generate a set of spec files either in: + + /usr/src/packages/SPECS (SuSE convention) or + /usr/src/redhat/SPECS (Redhat convention) or + /usr/src/SPECS + +Eg. ./mkspec sparc-rtems erc32 generates + +On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-binutils.spec + /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec + /usr/src/packages/SPECS/sparc-rtems-gdb.spec +On RedHat 6.0: /usr/src/packages/SPECS/sparc-rtems-binutils.spec + /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec + /usr/src/packages/SPECS/sparc-rtems-gdb.spec + + +Building binutils-rpms +---------------------- + +0. Login as root. + +1. Install a tarball of the various tool sources (with the +version number attached!) to /usr/src/[packages|redhat]/SOURCES + + cd /usr/src/[packages|redhat]/SOURCES + cp .../binutils- . + cp .../binutils--rtems-.diff . + +2. Generate and install the required rpm-spec file[s] + +cd rtems-/scripts/ +mkbinutilspec + +where target_alias is of the form sparc-rtems or sh-rtems-elf. + +3. Build the rpms + +Building a binary rpm: + +rpm -bb /usr/src/[packages|redhat]/SPECS/rtems--binutils.spec + +Building a source and binary rpm +rpm -ba /usr/src/[packages|redhat]/SPECS/rtems--binutils.spec + +XXX Note: a BSP's src.rpm contains its spec-file and the tar-archive of the +sources (approx. 4-5MB per BSP). + +Building TOOL-rpms +------------------ + +0. Login as root. + +1. Install a tarball of the various tool sources (with the +version number attached!) to /usr/src/[packages|redhat]/SOURCES + + cd /usr/src/[packages|redhat]/SOURCES + cp .../binutils- . + cp .../gcc- . + cp .../newlib- . + +2. Generate and install the required rpm-spec file[s] + +cd rtems-/scripts/ +mktoolspec + +3. Build the rpms + +Building a binary rpm: +rpm -bb /usr/src/[packages|redhat]/SPECS/rtems-.spec + +Building a source and binary rpm +rpm -ba /usr/src/[packages|redhat]/SPECS/rtems-.spec + +XXX Note: a BSP's src.rpm contains its spec-file and the tar-archive of the +sources (approx. 4-5MB per BSP). + +Building BSP-rpms +----------------- + +0. Login as root. + +1. Install a tarball of RTEMS's sources (with version number attached!) to +/usr/src/[packages|redhat]/SOURCES +Eg. +tar czvf /usr/src/packages/SOURCES/rtems-.tar.gz rtems- + +2. Generate and install the required rpm-spec file[s] +cd rtems-/scripts/ +mkspec + +3. Build the rpms +Building a binary rpm: +rpm -bb /usr/src/[packages|redhat]/SPECS/rtems--.spec + +Building a source and binary rpm +rpm -ba /usr/src/[packages|redhat]/SPECS/rtems--.spec + +Note: a BSP's src.rpm contains its spec-file and the tar-archive of the +sources (approx. 4-5MB per BSP). + +Canadian Cross RPMS +------------------- +Normally one uses a GNU/Linux host computer to produce RPMs that are +to be installed and run on another GNU/Linux host computer. When +building Canadian Cross RPMs, we build *-rtems tools that are to be +installed on a non-GNU/Linux host. + +To build cygwin-rpms on a GNU/Linux host, you will to have a GNU/Linux -> +i386-cygwin cross-toolset installed and in your PATH before executing the +following commands: + + cd scripts + ./configure --build=`../config.guess` --host=i386-cygwin \ + --target= + make + rpm --target= -b[b|a] binutils/-....spec + +Known Bugs/Deficiencies +----------------------- + +* All files mentioned in here are in its early infancy ;-) + +* Building for a single bsp requires an own copy of the source tree inside +rpm's build directory. +* Building inside the RTEMS source tree doesn't work. +* Dependencies on toolchain-rpms not yet supported in rtems.spec.in. +* Installing multiple binary bsp rpms for the same target can cause +warnings from rpm, because these bsp-rpms share files. +* rtems.spec.in is prepared for rpm relocation support, but RTEMS is not +relocatible (yet?) +* rtems.spec.in deserves to be extended (description, authors etc) +* The final packaging stage to build a binary rpm takes an awful lot of +time - deserves to be investigated. +* Some RTEMS's cross executables (eg. hello.exe for sparc-rtems/erc32) cause +warnings from rpm and/or objdump. AFAIS, this is a bug in rpm. +* Probably many more ... + +* Last but not least: RTEMS should be split. + +Remarks +------- +* It would make sense to split RTEMS host/cross-tools and files depending on +the target only (/make/*.cfg -- Whow, RTEMS really has files +which depend on the target only :) into separate rpms. +* Instead of using a single rpm-spec for each bsp, RTEMS could also use a +single rpm-spec for all (or at least a given subset of all) bsps of a target. +* rpm -b[b|a] leaves its built trees unpacked in +/usr/src/[packages|redhat]/BUILD. Therefore you will rather soon run out of disc +space if not removing them. (Use rpm --clean -b[a|b] for cleaning them up +automatically after building) +* The size of binary rpms can differ up to one magnitude depending on the +target/bsp (eg. sh-rtems/gensh1 ~10MB vs. sh-rtemself/gensh1 ~32MB) + +Ralf Corsepius, 1999/10/14 Index: setup.def =================================================================== --- setup.def (nonexistent) +++ setup.def (revision 1765) @@ -0,0 +1,24 @@ +# +# RTEMS tools setup +# +# setup.def,v 1.41 2002/08/06 19:18:10 joel Exp +# +binutils_version=2.12.1 +binutils_patch_version= +binutils_rpm_release=1 +newlib_version=1.10.0 +newlib_patch_version=20020322 +gcc_version=2.95.3 +gcc_patch_version=20020328 +gccnewlib_rpm_release=3 +gdb_version=5.2 +gdb_patch_version=20020612 +gdb_rpm_release=1 +rtems_version=ss-20000726 +rtems_rpm_release=1 +rpm_build_root=%{_tmppath} +gcc3newlib_version=1.10.0 +gcc3newlib_patch_version=20020801 +gcc3_version=3.1 +gcc3_patch_version=20020628 +gcc3newlib_rpm_release=6 Index: setup =================================================================== --- setup (nonexistent) +++ setup (revision 1765) @@ -0,0 +1,132 @@ +#!/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 " 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 newlib version : $newlib_version" + echo "6 newlib patch version : $newlib_patch_version" + echo "7 gcc/newlib rpm release : $gccnewlib_rpm_release" + echo "8 gdb version : $gdb_version" + echo "9 gdb patch version : $gdb_patch_version" + echo "a gdb rpm release : $gdb_rpm_release" + echo "b rtems version : $rtems_version" + echo "c rtems rpm release : $rtems_rpm_release" + echo "d rpm build root : $rpm_build_root" + echo "e gcc3 version : $gcc3_version" + echo "f gcc3 patch version : $gcc3_patch_version" + echo "g gcc3 newlib version : $gcc3newlib_version" + echo "h gcc3 newlib patch version: $gcc3newlib_patch_version" + echo "i gcc3/newlib rpm release : $gcc3newlib_rpm_release" + echo + + echo -n "[0-9a-d] 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 "NEWLIB source >" + read newlib_version ;; + 6) echo -n "NEWLIB patch version>" + read newlib_patch_version ;; + 7) echo -n "GCC/NEWLIB RPM release >" + read gccnewlib_rpm_release ;; + 8) echo -n "GDB source >" + read gdb_version ;; + 9) echo -n "GDB patch version>" + read gdb_patch_version ;; + a) echo -n "GDB RPM release >" + read gdb_rpm_release ;; + b) echo -n "RTEMS source >" + read rtems_version ;; + c) echo -n "RTEMS RPM release >" + read rtems_rpm_release ;; + d) echo -n "RPM build root >" + read rpm_build_root ;; + e) echo -n "GCC3 source >" + read gcc3_version ;; + f) echo -n "GCC3 patch version>" + read gcc3_patch_version ;; + g) echo -n "NEWLIB source >" + read gcc3newlib_version ;; + h) echo -n "NEWLIB patch version>" + read gcc3newlib_patch_version ;; + i) echo -n "GCC3/NEWLIB RPM release >" + read gcc3newlib_rpm_release ;; + *) + 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 "gccnewlib_rpm_release=$gccnewlib_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 "gcc3newlib_version=$gcc3newlib_version" >> $CFG +echo "gcc3newlib_patch_version=$gcc3newlib_patch_version" >> $CFG +echo "gcc3_version=$gcc3_version" >> $CFG +echo "gcc3_patch_version=$gcc3_patch_version" >> $CFG +echo "gcc3newlib_rpm_release=$gcc3newlib_rpm_release" >> $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
setup Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: configure.ac =================================================================== --- configure.ac (nonexistent) +++ configure.ac (revision 1765) @@ -0,0 +1,103 @@ +## configure.ac,v 1.10 2002/07/29 07:55:49 ralf Exp + +AC_PREREQ(2.52) +AC_INIT([rtems-scripts],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com]) +AC_CONFIG_SRCDIR([binutils]) +RTEMS_TOP([..]) +AC_PREFIX_DEFAULT([/opt/rtems]) +AM_INIT_AUTOMAKE([no-define foreign 1.6]) + +AC_CANONICAL_HOST + +# 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 + +AC_MSG_CHECKING(for rpm SPECS directory) +# Allow users to override RPM_SPECSdir from the environment. +if test -z "$RPM_SPECSdir" ; +then +# SuSE uses /usr/src/packages +# redhat uses /usr/src/redhat +# MDK is reported to use /usr/src/RPM +# others might use /usr/src + rpmpath="/usr:/usr/local" + rpmdirs="src/packages:src/redhat:src/RPM:src" + save_IFS="$IFS"; IFS=":" + for d in $rpmdirs; do + for p in $rpmpath; do + list="$p/$d:$list" + done + done + for d in $list; do + if test -d $d/SPECS; then + RPM_SPECSdir="$d/SPECS"; + break; + fi + done + IFS="$save_IFS" +fi + +if test x"$RPM_SPECSdir" = x"" ; then +AC_MSG_ERROR([not found]) +fi +AC_MSG_RESULT($RPM_SPECSdir) +AC_SUBST(RPM_SPECSdir) + +AC_MSG_CHECKING(for RPM CPU type) +case "$host" in + i?86-*linux*) RPM_CPU=i386 ;; + i?86-*cygwin*) RPM_CPU=i386 ;; + sparc-*solaris*) RPM_CPU=sparc ;; + *) + AC_MSG_ERROR([RPM CPU for ${host} is unknown]) + ;; +esac +AC_MSG_RESULT($RPM_CPU) + +GCCNEWLIBVERS="gcc-${gcc_version}-newlib-${newlib_version}" +AC_SUBST(GCCNEWLIBVERS) +GCC3NEWLIBVERS="gcc-${gcc3_version}-newlib-${gcc3newlib_version}" +AC_SUBST(GCC3NEWLIBVERS) +BINUTILSVERS="binutils-${binutils_version}" +AC_SUBST(BINUTILSVERS) +GDBVERS="gdb-${gdb_version}" +AC_SUBST(GDBVERS) +BSPVERS="${rtems_version}" +AC_SUBST(RTEMS_VERSION) +AC_SUBST(BSPVERS) +AC_SUBST(RPM_CPU) + +AC_CONFIG_FILES([Makefile +binutils/Makefile +gccnewlib/Makefile +gcc3newlib/Makefile +gdb/Makefile +rtems/Makefile +autotools/Makefile +autotools/automake-rtems.spec +cpukit/Makefile +]) + +AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar]) +AC_CONFIG_FILES([buildall],[chmod +x buildall]) +AC_CONFIG_FILES([mkgdbspec],[chmod +x mkgdbspec]) +AC_CONFIG_FILES([mkbinutilspec],[chmod +x mkbinutilspec]) +AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec]) +AC_CONFIG_FILES([mkgcc3newlibspec],[chmod +x mkgcc3newlibspec]) +AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec]) +AC_CONFIG_FILES([cpukit/mkspec],[chmod +x cpukit/mkspec]) + +AC_CONFIG_COMMANDS([default],[[chmod 755 buildall +chmod 755 buildalltar +]],[[]]) +AC_OUTPUT Index: mkgdbspec.in =================================================================== --- mkgdbspec.in (nonexistent) +++ mkgdbspec.in (revision 1765) @@ -0,0 +1,91 @@ +#!/bin/sh +# +# Usage: mkgdbspec CPU +# + +RTEMS_DIR=`dirname $0`/@top_srcdir@ + +CFG=setup.cache +dst=@RPM_SPECSdir@ +exe_ext=@EXEEXT@ + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -cfg " + echo " -o " + 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-gdb-${gdb_version}.spec + +case ${target_alias} in + arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | hppa1.1* | \ + i960* | m32r* | mcore* | mips* | mn10200* | mn10300* | sh* | sparc*| \ + v850* | w65* | z8k*) + extra_configure_arguments="--enable-sim" + ;; + 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 + ;; + *) + ;; +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%@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 + arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | i960* | m32r* | \ + mcore* | mips* | mn10200* | mn10300* | powerpc* | sh* | v850* | w65* | z8k*) + echo "/opt/rtems/bin/${target_alias}-run${exe_ext}" + ;; + sparc*) + echo "/opt/rtems/bin/${target_alias}-run${exe_ext}" + echo "/opt/rtems/bin/${target_alias}-sis${exe_ext}" + ;; + *) ;; +esac >> ${specfile} + +echo Generated ${specfile} Index: buildalltar.in =================================================================== --- buildalltar.in (nonexistent) +++ buildalltar.in (revision 1765) @@ -0,0 +1,342 @@ +#! /bin/sh +# +# Generate all the specs and then cycle through building them. +# + +RTEMS_DIR=`dirname $0` +CFG=./setup.cache +#dst=/usr/src/redhat/SPECS +dst=`pwd` +target=@target@ +rpm_cpu=i386 + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -b -- build binutils" + echo " -g -- build gcc/newlib" + echo " -d -- build gdb" + echo " -C HOST -- build canadian cross for HOST " + echo " -t -- enable test/debug mode" + echo " -cfg " + echo " -o " + exit 1 ; +} + +# +# Checks the status returned by executables and exits if it is non-zero. +# +check_fatal() +{ + if [ $1 -ne 0 ] ; then + shift + echo "ERROR: $*" >&2 + exit 1 + fi + #echo + #echo "End of $*" + #echo -n "Press return to continue> " + #echo + #read line +} + +testing=no +do_binutils=no +do_gccnewlib=no +do_gdb=no +cdn_cross=no + +while test $# -ge 1; do + case $1 in + -b) do_binutils=yes ; shift;; + -g) do_gccnewlib=yes ; shift;; + -d) do_gdb=yes ; shift;; + -t) do_test=yes ; shift;; + -cfg) + test $# -ge 2 || usage + shift + CFG=$1 + shift + ;; + -o) + test $# -ge 2 || usage + shift + dst=$1 + shift + ;; + -C) + test $# -ge 2 || usage + shift + build=$1 + shift + if ! test -x ${RTEMS_DIR}/../config.guess ; then + echo "Missing ${RTEMS_DIR}/../config.guess!" + exit 1 + fi + CDN_ARGS="--build=`${RTEMS_DIR}/../config.guess` --host=${build}" + cdn_cross=yes + ;; + -*) + echo "invalid option $1"; + usage + ;; + *) + TARGETS="${TARGETS} $1" + shift + ;; + esac +done + +if test ${do_binutils} = no -a ${do_gccnewlib} = no -a ${do_gdb} = no ; then + echo "You must request building binutils, gcc/newlib, or gdb." + usage +fi + + +# This is the full list .. hppa1.1 does not build now. +#ALL_TARGETS="hppa1.1-rtems i386-rtems i960-rtems m68k-rtems \ +# m68k-rtemself mips-rtems mips64orion-rtems \ +# powerpc-rtems sh-rtems sh-rtemself sparc-rtems" + +# This is the full buildable set. +if [ "X${TARGETS}" = "X" ] ; then + # do not include c4x or hppa primary targets + # do not include sh-elf or i960-elf secondary targets + TARGETS="arm-rtems h8300-rtems i386-rtems i960-rtems m68k-rtems \ + mips-rtems mips64orion-rtems powerpc-rtems sh-rtems sparc-rtems" +fi + +. $CFG + +binutils=${binutils_version} +gcc=${gcc_version} +gdb=${gdb_version} +newlib=${newlib_version} +# also use binutils_rpm_release +buildroot=/tmp + +# +# Now get started +# +start=`date` + +echo PATH=$PATH + +if [ ${testing} = yes ] ; then + ECHO=echo +fi + +#installed_count=`rpm -q -g rtems | 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 + +if [ "X${rpm_build_root}" = "X" ] ; then + echo rpm_build_root NOT set! + exit 1 +fi + +CWD=`pwd` +test -d tarballs || mkdir tarballs + +OUT=${CWD}/tarballs + +# do all the tools +for target in ${TARGETS} +do + bintarfile=${OUT}/${target}-binutils-${binutils}-${binutils_rpm_release}.tar + if [ ${do_binutils} = yes ] ; then + logfile=${CWD}/log/${target}-binutils + # this part is for tar.bz2 + cd ${CWD} + if [ ! -d binutils-${binutils} ] ; then + echo Could not find binutils-${binutils}! + exit 1 + fi + rm -rf b-${target}-bin + mkdir b-${target}-bin + cd b-${target}-bin + echo "Building binutils-${binutils} for ${target}" + ../binutils-${binutils}/configure ${CDN_ARGS} --target=${target} \ + --verbose --prefix=/opt/rtems >${logfile} 2>&1 + check_fatal $? "binutils configure" + + make all >>${logfile} 2>&1 + check_fatal $? "make all" + + make info >>${logfile} 2>&1 + check_fatal $? "make info" + + make prefix=${rpm_build_root}/opt/rtems install >>${logfile} 2>&1 + check_fatal $? "make install" + + make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1 + check_fatal $? "make install-info" + + cd ${buildroot} + tar cjf ${bintarfile}.bz2 opt + cd ${CWD} + rm -rf b-${target}-bin + ${ECHO} rm -rf ${rpm_build_root}/opt + #rm -rf ${rpm_build_root}/opt + else + echo Skipping binutils for ${target} + fi + + # + # build gcc/newlib + # + + if [ ${do_gccnewlib} = yes ] ; then + logfile=${CWD}/log/${target}-gccnewlib + # now build gcc/newlib + # this part is for tar.bz2 + + gcctarfile=${OUT}/${target}-gcc-${gcc}-newlib-${newlib}-${gccnewlib_rpm_release}.tar + if [ ${cdn_cross} = "no" ] ; then + bintarfile=${dst}/binaries/binutils-${binutils}-${binutils_rpm_release}/${target}-binutils-${binutils}-${binutils_rpm_release}.tar + cd / + rm -rf /opt/* + tar xjf ${bintarfile}.bz2 + fi + + cd ${CWD} + if [ ! -d gcc-${gcc} ] ; then + echo Could not find gcc-${gcc}! + exit 1 + fi + if [ ! -d gcc-${gcc}/newlib ] ; then + echo Could not find gcc-${gcc}/newlib! + exit 1 + fi + rm -rf b-${target}-gccnewlib + mkdir b-${target}-gccnewlib + cd b-${target}-gccnewlib + echo "Building gcc-${gcc} for ${target}" + ../gcc-${gcc}/configure ${CDN_ARGS} --target=${target} \ + --with-gnu-as --with-gnu-ld --with-newlib --verbose --enable-threads \ + --prefix=/opt/rtems '--enable-languages=c,c++' >${logfile} 2>&1 + check_fatal $? "gcc configure" + + make all >>${logfile} 2>&1 + check_fatal $? "make all" + + make info >>${logfile} 2>&1 + check_fatal $? "make info" + + make prefix=${rpm_build_root}/opt/rtems install >>${logfile} 2>&1 + check_fatal $? "make install" + + cd ${target}/newlib + make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1 + check_fatal $? "newlib make install-info" + + cd ${buildroot} + tar cjf ${gcctarfile}.bz2 opt + cd ${CWD} + rm -rf ${rpm_build_root}/opt + rm -rf ${rpm_build_root}/opt/rtems + rm -rf b-${target}-gccnewlib + else + echo Skipping gcc/newlib for ${target} + fi + + # + # build gdb + # + + if [ ${do_gdb} = yes ] ; then + # now build gdb + gdbtarfile=${OUT}/${target}-gdb-${gdb}-${gdb_rpm_release}.tar + logfile=${CWD}/log/${target}-gdb + + # this part is for tar.bz2 + + if [ ! -d gdb-${gdb} ] ; then + echo Could not find gdb-${gdb}! + exit 1 + fi + mkdir b-${target}-gdb + cd b-${target}-gdb + case ${target} in + arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | i960* | \ + m32r* | mcore* | mips* | mn10200* | mn10300* | sh* | sparc*| v850* | \ + w65* | z8k*) + extra_configure_arguments="--enable-sim" + ;; + 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 + ;; + *) + ;; +esac + echo "Building gdb-${gdb}/configure ${CDN_ARGS} --target=${target}" + ../gdb-${gdb}/configure ${CDN_ARGS} --target=${target} \ + ${extra_configure_arguments} --verbose --prefix=/opt/rtems >${logfile} 2>&1 + check_fatal $? "make info" + + make all >>${logfile} 2>&1 + check_fatal $? "make all" + + make info >>${logfile} 2>&1 + check_fatal $? "make info" + + make prefix=${rpm_build_root}/opt/rtems install >>${logfile} 2>&1 + check_fatal $? "make install" + + make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1 + check_fatal $? "make install-info" + + cd ${buildroot} + tar cjf ${gdbtarfile}.bz2 opt + cd ${CWD} + ${ECHO} rm -rf ${rpm_build_root}/opt + rm -rf ${rpm_build_root}/opt/rtems + rm -rf b-${target}-gdb + else + echo Skipping gdb for ${target} + fi + +done + +# Now we are done + +stop=`date` + +echo +echo "Started: " $start +echo "Finished: " $stop +exit 0 Index: mkgccnewlibspec.in =================================================================== --- mkgccnewlibspec.in (nonexistent) +++ mkgccnewlibspec.in (revision 1765) @@ -0,0 +1,72 @@ +#!/bin/sh +# +# Usage: mktoolspec CPU +# + +RTEMS_DIR=`dirname $0`/@top_srcdir@ + +CFG=setup.cache +dst=@RPM_SPECSdir@ +exe_ext=@EXEEXT@ + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -cfg " + echo " -o " + exit 1 ; +} + +specsrc=${RTEMS_DIR}/gccnewlib/gccnewlib.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}-gcc-${gcc_version}-newlib-${newlib_version}.spec + +sed -e "s%@Release\@%${gccnewlib_rpm_release}%g" \ + -e "s%@target_alias\@%${target_alias}%g" \ + -e "s%@prefix\@%@prefix@%g" \ + -e "s,@rpm_build_root\@,${rpm_build_root},g" \ + -e "s%@gcc_version\@%${gcc_version}%g" \ + -e "s%@gcc_patch_version\@%${gcc_patch_version}%g" \ + -e "s%@newlib_version\@%${newlib_version}%g" \ + -e "s%@newlib_patch_version\@%${newlib_patch_version}%g" \ + -e "s%@exe_ext\@%${exe_ext}%g" \ +< ${specsrc} \ +> ${specfile} + +echo Generated ${specfile}. Index: TODO =================================================================== --- TODO (nonexistent) +++ TODO (revision 1765) @@ -0,0 +1,7 @@ +# +# TODO,v 1.3 1999/10/20 19:59:00 joel Exp +# + +There is plenty left to do on this :) + + + Add GNAT/RTEMS version. Index: mkrpms =================================================================== --- mkrpms (nonexistent) +++ mkrpms (revision 1765) @@ -0,0 +1,32 @@ +#!/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 + +
mkrpms Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: Makefile.am =================================================================== --- Makefile.am (nonexistent) +++ Makefile.am (revision 1765) @@ -0,0 +1,24 @@ +## +## Makefile.am,v 1.15 2002/07/29 07:40:53 ralf Exp +## + +ACLOCAL_AMFLAGS = -I ../aclocal + +SUBDIRS = . binutils gccnewlib gcc3newlib gdb rtems autotools cpukit + +noinst_SCRIPTS = setup buildall buildalltar mkbinutilspec mkbspspec \ + mkgccnewlibspec mkgcc3newlibspec 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 Index: aclocal.m4 =================================================================== --- aclocal.m4 (nonexistent) +++ aclocal.m4 (revision 1765) @@ -0,0 +1,812 @@ +# aclocal.m4 generated automatically by aclocal 1.6.2 -*- Autoconf -*- + +# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +dnl rtems-top.m4,v 1.14 2002/03/28 13:53:19 joel Exp + +dnl +dnl RTEMS_TOP($1) +dnl +dnl $1 .. relative path from this configure.in to the toplevel configure.in +dnl +AC_DEFUN(RTEMS_TOP, +[dnl +AC_REQUIRE([RTEMS_VERSIONING]) +AC_CHECK_PROGS(MAKE, gmake make) +AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl +AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl + +AC_PREFIX_DEFAULT([/opt/rtems]) + +ENDIF=endif +AC_SUBST(ENDIF) + +RTEMS_TOPdir="$1"; +AC_SUBST(RTEMS_TOPdir) + +test -n "$with_target_subdir" || with_target_subdir="." + +if test "$with_target_subdir" = "." ; then +# Native +PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)' +else +# Cross +dots=`echo $with_target_subdir|\ +sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` +PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)' +fi +AC_SUBST(PROJECT_TOPdir) + +if test "$with_target_subdir" = "." ; then +# Native +PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" +else +# Cross +PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)" +fi +AC_SUBST(PROJECT_ROOT) + +AC_MSG_CHECKING([for RTEMS Version]) +AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"], +[], +[AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/aclocal/version.m4])]) +AC_MSG_RESULT([_RTEMS_VERSION]) +])dnl + +AC_DEFUN([RTEMS_VERSIONING], +m4_define([_RTEMS_VERSION],[ss-20020807])) + +# Do all the work for Automake. -*- Autoconf -*- + +# This macro actually does too much some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. + +# 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. + +# serial 8 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +AC_PREREQ([2.52]) + +# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow +# the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl + AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_MISSING_PROG(AMTAR, tar) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl + +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_][CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_][CC], + defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_][CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_][CXX], + defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl +]) +]) + +# Copyright 2002 Free Software Foundation, Inc. + +# 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 + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.6.2])]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright 2001, 2002 Free Software Foundation, Inc. + +# 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. + +# serial 2 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# +# Check to make sure that the build environment is sane. +# + +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. + +# 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. + +# serial 3 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# -*- Autoconf -*- + + +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. + +# 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. + +# serial 3 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# AM_AUX_DIR_EXPAND + +# Copyright 2001 Free Software Foundation, Inc. + +# 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. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +# Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50]) + +AC_DEFUN([AM_AUX_DIR_EXPAND], [ +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. + +# Copyright 2001 Free Software Foundation, Inc. + +# 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. + +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# AM_PROG_INSTALL_STRIP + +# Copyright 2001 Free Software Foundation, Inc. + +# 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. + +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# serial 4 -*- Autoconf -*- + +# Copyright 1999, 2000, 2001 Free Software Foundation, Inc. + +# 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. + + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + for depmode in $am_compiler_list; do + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + echo '#include "conftest.h"' > conftest.c + echo 'int i;' > conftest.h + echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=conftest.c object=conftest.o \ + depfile=conftest.Po tmpdepfile=conftest.TPo \ + $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[rm -f .deps 2>/dev/null +mkdir .deps 2>/dev/null +if test -d .deps; then + DEPDIR=.deps +else + # MS-DOS does not allow filenames that begin with a dot. + DEPDIR=_deps +fi +rmdir .deps 2>/dev/null +AC_SUBST([DEPDIR]) +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking Speeds up one-time builds + --enable-dependency-tracking Do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH]) +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + +# 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. + +#serial 2 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue + # Extract the definition of DEP_FILES from the Makefile without + # running `make'. + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` + test -z "$DEPDIR" && continue + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n -e '/^U = / s///p' < "$mf"` + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" + # We invoke sed twice because it is the simplest approach to + # changing $(DEPDIR) to its actual value in the expansion. + for file in `sed -n -e ' + /^DEP_FILES = .*\\\\$/ { + s/^DEP_FILES = // + :loop + s/\\\\$// + p + n + /\\\\$/ b loop + p + } + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*- + +# 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. + +# serial 2 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +doit: + @echo done +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST(am__include) +AC_SUBST(am__quote) +AC_MSG_RESULT($_am_result) +rm -f confinc confmf +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. + +# 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. + +# serial 5 + +AC_PREREQ(2.52) + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE]) +AC_SUBST([$1_FALSE]) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([conditional \"$1\" was never defined. +Usually this means the macro was only invoked conditionally.]) +fi])]) + Index: mkbinutilspec.in =================================================================== --- mkbinutilspec.in (nonexistent) +++ mkbinutilspec.in (revision 1765) @@ -0,0 +1,70 @@ +#!/bin/sh +# +# Usage: mkbinutilspec CPU +# + +RTEMS_DIR=`dirname $0`/@top_srcdir@ + +CFG=setup.cache +dst=@RPM_SPECSdir@ +exe_ext=@EXEEXT@ + +usage() +{ + echo "$0 [options] " + echo " options:" + echo " -cfg " + echo " -o " + 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-binutils-${binutils_version}.spec + +if test -n "${binutils_patch_version}"; then +PATCH1="Patch0: binutils-${binutils_version}-rtems-${binutils_patch_version}.diff" +PATCH2="%patch0 -p0" +fi + +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%@prefix\@%@prefix@%g" \ + -e "s%@binutils_version\@%${binutils_version}%g" \ + -e "s%@binutils_patch_version\@%${binutils_patch_version}%g" \ + -e "s%@exe_ext\@%${exe_ext}%g" \ + -e "s,@PATCH1\@,${PATCH1}," \ + -e "s,@PATCH2\@,${PATCH2}," \ +< ${RTEMS_DIR}/binutils/binutils.spec.in \ +> ${specfile} + +echo Generated ${specfile} Index: . =================================================================== --- . (nonexistent) +++ . (revision 1765)
. Property changes : Added: svn:ignore ## -0,0 +1,22 ## +Makefile +Makefile.in +aclocal.m4 +autom4te.cache +buildall +buildalltar +config.cache +config.guess +config.log +config.status +config.sub +configure +depcomp +install-sh +missing +mkbinutilspec +mkbspspec +mkgccnewlibspec +mkgcc3newlibspec +mkgdbspec +mkinstalldirs +setup.cache

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.