forked from Imagelibrary/rtems
Changes from Ralf with script-19991021-0. He fixed the %files
issue and has mkbspspec in a better state. user.cfg is now gone. There are some miscellaneous changes to buildall done by Joel to clean up the build process.
This commit is contained in:
@@ -27,5 +27,3 @@ setup.cache: setup.def
|
|||||||
cp setup.def $@
|
cp setup.def $@
|
||||||
|
|
||||||
DISTCLEANFILES = setup.cache
|
DISTCLEANFILES = setup.cache
|
||||||
|
|
||||||
CLEANFILES = buildall
|
|
||||||
|
|||||||
@@ -1,32 +1,35 @@
|
|||||||
|
## $Id$
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
MKBINUTILSSPEC = $(SHELL) $(top_srcdir)/mkbinutilspec
|
MKBINUTILSSPEC = $(SHELL) $(top_builddir)/mkbinutilspec
|
||||||
|
|
||||||
MKBINUTILSSPEC_DEPS = ../mkbinutilspec binutils.spec.in ../setup.cache
|
MKBINUTILSSPEC_DEPS = \
|
||||||
|
$(top_builddir)/mkbinutilspec binutils.spec.in $(top_builddir)/setup.cache
|
||||||
|
|
||||||
i386-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
i386-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . i386-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems
|
||||||
|
|
||||||
sh-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
sh-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems
|
||||||
|
|
||||||
powerpc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
powerpc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
sparc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
sparc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . sparc-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
||||||
|
|
||||||
m68k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
m68k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems
|
||||||
|
|
||||||
mips64orion-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
mips64orion-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems
|
||||||
|
|
||||||
i960-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
i960-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . i960-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems
|
||||||
|
|
||||||
hppa1.1-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
hppa1.1-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . hppa1.1-rtems
|
$(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems
|
||||||
|
|
||||||
TEMPLATES = \
|
TEMPLATES = \
|
||||||
binutils.spec.in
|
binutils.spec.in
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ MKBINUTILSSPEC_DEPS = ../mkbinutilspec binutils.spec.in ../setup.cache
|
|||||||
TEMPLATES = binutils.spec.in
|
TEMPLATES = binutils.spec.in
|
||||||
|
|
||||||
|
|
||||||
RPM_SPECS_DATA = i386-rtems-$(BINUTILSVERS).spec sh-rtems-$(BINUTILSVERS).spec powerpc-rtems-$(BINUTILSVERS).spec sparc-rtems-$(BINUTILSVERS).spec m68k-rtems-$(BINUTILSVERS).spec mips64orion-rtems-$(BINUTILSVERS).spec i960-rtems-$(BINUTILSVERS).spec hppa1.1-rtems-$(BINUTILSVERS).spec
|
RPM_SPECS_DATA = i386-rtems-$(BINUTILSVERS).spec sh-rtems-$(BINUTILSVERS).spec sh-rtemself-$(BINUTILSVERS).spec powerpc-rtems-$(BINUTILSVERS).spec sparc-rtems-$(BINUTILSVERS).spec m68k-rtems-$(BINUTILSVERS).spec m68k-rtemself-$(BINUTILSVERS).spec mips64orion-rtems-$(BINUTILSVERS).spec i960-rtems-$(BINUTILSVERS).spec hppa1.1-rtems-$(BINUTILSVERS).spec
|
||||||
|
|
||||||
|
|
||||||
noinst_DATA = $(TEMPLATES)
|
noinst_DATA = $(TEMPLATES)
|
||||||
@@ -218,6 +218,9 @@ i386-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
|||||||
sh-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
sh-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . sh-rtems
|
||||||
|
|
||||||
|
sh-rtemself-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
|
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . sh-rtemself
|
||||||
|
|
||||||
powerpc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
powerpc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
@@ -227,6 +230,9 @@ sparc-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
|||||||
m68k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
m68k-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . m68k-rtems
|
||||||
|
|
||||||
|
m68k-rtemself-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
|
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . m68k-rtemself
|
||||||
|
|
||||||
mips64orion-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
mips64orion-rtems-$(BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)
|
||||||
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKBINUTILSSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files -f files
|
%files -f files
|
||||||
%dir /opt/rtems/info
|
%docdir /opt/rtems/info
|
||||||
%doc /opt/rtems/info/dir
|
%doc /opt/rtems/info/dir
|
||||||
%doc /opt/rtems/info/as.info.gz
|
%doc /opt/rtems/info/as.info.gz
|
||||||
%doc /opt/rtems/info/as.info-?.gz
|
%doc /opt/rtems/info/as.info-?.gz
|
||||||
@@ -106,8 +106,8 @@ echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
|
|||||||
%doc /opt/rtems/info/gasp.info.gz
|
%doc /opt/rtems/info/gasp.info.gz
|
||||||
%doc /opt/rtems/info/standards.info.gz
|
%doc /opt/rtems/info/standards.info.gz
|
||||||
|
|
||||||
%dir /opt/rtems/man
|
%docdir /opt/rtems/man
|
||||||
%dir /opt/rtems/man/man1
|
%docdir /opt/rtems/man/man1
|
||||||
%doc /opt/rtems/man/man1/@target_alias@-*.1
|
%doc /opt/rtems/man/man1/@target_alias@-*.1
|
||||||
|
|
||||||
%dir /opt/rtems/bin
|
%dir /opt/rtems/bin
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
RTEMS_DIR=`dirname $0`
|
RTEMS_DIR=`dirname $0`
|
||||||
CFG=./user.cfg
|
CFG=./setup.cache
|
||||||
dst=@RPM_SPECSdir@
|
dst=@RPM_SPECSdir@
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "$0 [options] <target_alias>"
|
echo "$0 [options] <target_alias>"
|
||||||
echo " options:"
|
echo " options:"
|
||||||
echo " -cfg <user.cfg>"
|
echo " -cfg <setup.cache>"
|
||||||
echo " -o <rpm-spec-dir>"
|
echo " -o <rpm-spec-dir>"
|
||||||
exit 1 ;
|
exit 1 ;
|
||||||
}
|
}
|
||||||
@@ -60,12 +60,12 @@ gcc=${gcc_version}
|
|||||||
gdb=${gdb_version}
|
gdb=${gdb_version}
|
||||||
newlib=${newlib_version}
|
newlib=${newlib_version}
|
||||||
# also use binutils_rpm_release
|
# also use binutils_rpm_release
|
||||||
buildroot=/opt/tmp
|
buildroot=/tmp
|
||||||
|
|
||||||
testing=no
|
testing=no
|
||||||
do_binutils=yes
|
do_binutils=no
|
||||||
do_gdb=yes
|
do_gdb=no
|
||||||
do_gccnewlib=yes
|
do_gccnewlib=no
|
||||||
|
|
||||||
#
|
#
|
||||||
# Now get started
|
# Now get started
|
||||||
@@ -100,6 +100,10 @@ if [ ${testing} = no ] ; then
|
|||||||
for target in ${TARGETS}
|
for target in ${TARGETS}
|
||||||
do
|
do
|
||||||
tspecs=`find . -name "${target}*"`
|
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}
|
${ECHO} cp -r ${tspecs} ${dst}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@@ -119,7 +123,7 @@ do
|
|||||||
rpm -ba ${specfile} >${logfile} 2>&1
|
rpm -ba ${specfile} >${logfile} 2>&1
|
||||||
fi
|
fi
|
||||||
${ECHO} rm -rf ${dst}/../BUILD/${target}-binutils*
|
${ECHO} rm -rf ${dst}/../BUILD/${target}-binutils*
|
||||||
${ECHO} rm -rf ${buildroot}/opt
|
${ECHO} rm -rf ${buildroot}/opt/rtems
|
||||||
else
|
else
|
||||||
echo Skipping binutils for ${target}
|
echo Skipping binutils for ${target}
|
||||||
fi
|
fi
|
||||||
@@ -144,9 +148,10 @@ do
|
|||||||
echo "rpm -ba ${specfile} >${logfile} 2>&1"
|
echo "rpm -ba ${specfile} >${logfile} 2>&1"
|
||||||
if [ ${testing} = no ] ; then
|
if [ ${testing} = no ] ; then
|
||||||
rpm -ba ${specfile} >${logfile} 2>&1
|
rpm -ba ${specfile} >${logfile} 2>&1
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
|
${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
|
||||||
${ECHO} rm -rf ${buildroot}/opt
|
${ECHO} rm -rf ${buildroot}/opt/rtems
|
||||||
|
|
||||||
echo uninstalling binutils for ${target}
|
echo uninstalling binutils for ${target}
|
||||||
if [ ${testing} = no ] ; then
|
if [ ${testing} = no ] ; then
|
||||||
@@ -169,7 +174,7 @@ do
|
|||||||
rpm -ba ${specfile} >${logfile} 2>&1
|
rpm -ba ${specfile} >${logfile} 2>&1
|
||||||
fi
|
fi
|
||||||
${ECHO} rm -rf ${dst}/../BUILD/${target}-gdb*
|
${ECHO} rm -rf ${dst}/../BUILD/${target}-gdb*
|
||||||
${ECHO} rm -rf ${buildroot}/opt
|
${ECHO} rm -rf ${buildroot}/opt/rtems
|
||||||
else
|
else
|
||||||
echo Skipping gdb for ${target}
|
echo Skipping gdb for ${target}
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
AC_INIT(binutils)
|
## $Id$
|
||||||
AM_INIT_AUTOMAKE(scripts,19991020-1,no)
|
|
||||||
|
|
||||||
test -f ./setup.cache || cp ./setup.def ./setup.cache
|
AC_INIT(binutils)
|
||||||
|
AM_INIT_AUTOMAKE(scripts,19991021-0,no)
|
||||||
|
|
||||||
|
RTEMS_CHECK_VERSION(..)
|
||||||
|
|
||||||
|
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
||||||
. ./setup.cache
|
. ./setup.cache
|
||||||
|
|
||||||
# Some linux distributions use /usr/src/packages
|
# Some linux distributions use /usr/src/packages
|
||||||
@@ -18,7 +22,7 @@ elif test -d /usr/src/SPECS/;
|
|||||||
then
|
then
|
||||||
RPM_SPECSdir=/usr/src/SPECS;
|
RPM_SPECSdir=/usr/src/SPECS;
|
||||||
fi
|
fi
|
||||||
if test x"$RPM_SPECSdir" = x; then
|
if test x"$RPM_SPECSdir" = x"" ; then
|
||||||
AC_MSG_ERROR(not found)
|
AC_MSG_ERROR(not found)
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($RPM_SPECSdir)
|
AC_MSG_RESULT($RPM_SPECSdir)
|
||||||
@@ -30,7 +34,7 @@ BINUTILSVERS="binutils-${binutils_version}"
|
|||||||
AC_SUBST(BINUTILSVERS)
|
AC_SUBST(BINUTILSVERS)
|
||||||
GDBVERS="gdb-${gdb_version}"
|
GDBVERS="gdb-${gdb_version}"
|
||||||
AC_SUBST(GDBVERS)
|
AC_SUBST(GDBVERS)
|
||||||
BSPVERS="RTEMS-no_version_yet"
|
BSPVERS="${RTEMS_VERSION}"
|
||||||
AC_SUBST(BSPVERS)
|
AC_SUBST(BSPVERS)
|
||||||
|
|
||||||
AC_OUTPUT(
|
AC_OUTPUT(
|
||||||
|
|||||||
@@ -1,33 +1,35 @@
|
|||||||
|
## $Id$
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
MKGCCNEWLIBSPEC = $(SHELL) ../mkgccnewlibspec
|
MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgccnewlibspec
|
||||||
|
|
||||||
MKGCCNEWLIBSPEC_DEPS = \
|
MKGCCNEWLIBSPEC_DEPS = \
|
||||||
../mkgccnewlibspec gccnewlib.spec.in ../setup.cache
|
$(top_builddir)/mkgccnewlibspec gccnewlib.spec.in $(top_builddir)/setup.cache
|
||||||
|
|
||||||
i386-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
i386-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . i386-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems
|
||||||
|
|
||||||
sh-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
sh-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems
|
||||||
|
|
||||||
powerpc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
powerpc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
sparc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
sparc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . sparc-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
||||||
|
|
||||||
m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems
|
||||||
|
|
||||||
mips64orion-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
mips64orion-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems
|
||||||
|
|
||||||
i960-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
i960-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . i960-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems
|
||||||
|
|
||||||
hppa1.1-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
hppa1.1-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . hppa1.1-rtems
|
$(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems
|
||||||
|
|
||||||
TEMPLATES = \
|
TEMPLATES = \
|
||||||
gccnewlib.spec.in
|
gccnewlib.spec.in
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ MKGCCNEWLIBSPEC_DEPS = ../mkgccnewlibspec gccnewlib.spec.in ../setup.cache
|
|||||||
TEMPLATES = gccnewlib.spec.in
|
TEMPLATES = gccnewlib.spec.in
|
||||||
|
|
||||||
|
|
||||||
RPM_SPECS_DATA = i386-rtems-$(GCCNEWLIBVERS).spec sh-rtems-$(GCCNEWLIBVERS).spec powerpc-rtems-$(GCCNEWLIBVERS).spec sparc-rtems-$(GCCNEWLIBVERS).spec m68k-rtems-$(GCCNEWLIBVERS).spec mips64orion-rtems-$(GCCNEWLIBVERS).spec i960-rtems-$(GCCNEWLIBVERS).spec hppa1.1-rtems-$(GCCNEWLIBVERS).spec
|
RPM_SPECS_DATA = i386-rtems-$(GCCNEWLIBVERS).spec sh-rtems-$(GCCNEWLIBVERS).spec sh-rtemself-$(GCCNEWLIBVERS).spec powerpc-rtems-$(GCCNEWLIBVERS).spec sparc-rtems-$(GCCNEWLIBVERS).spec m68k-rtems-$(GCCNEWLIBVERS).spec m68k-rtemself-$(GCCNEWLIBVERS).spec mips64orion-rtems-$(GCCNEWLIBVERS).spec i960-rtems-$(GCCNEWLIBVERS).spec hppa1.1-rtems-$(GCCNEWLIBVERS).spec
|
||||||
|
|
||||||
|
|
||||||
noinst_DATA = $(TEMPLATES)
|
noinst_DATA = $(TEMPLATES)
|
||||||
@@ -219,6 +219,9 @@ i386-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
|||||||
sh-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
sh-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . sh-rtems
|
||||||
|
|
||||||
|
sh-rtemself-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
|
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . sh-rtemself
|
||||||
|
|
||||||
powerpc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
powerpc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
@@ -228,6 +231,9 @@ sparc-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
|||||||
m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . m68k-rtems
|
||||||
|
|
||||||
|
m68k-rtemself-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
|
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . m68k-rtemself
|
||||||
|
|
||||||
mips64orion-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
mips64orion-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
|
||||||
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKGCCNEWLIBSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
||||||
|
|
||||||
|
|||||||
@@ -74,17 +74,46 @@ echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
|
|||||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install
|
make prefix=$RPM_BUILD_ROOT/opt/rtems install
|
||||||
cd @target_alias@/newlib
|
cd @target_alias@/newlib
|
||||||
make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
|
make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
|
||||||
|
|
||||||
|
# cd back to build/
|
||||||
|
cd ../..
|
||||||
|
|
||||||
# gzip info files
|
# 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
|
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
|
||||||
|
|
||||||
|
rm -f files
|
||||||
|
|
||||||
|
# collect c++ headers
|
||||||
|
if test -d $RPM_BUILD_ROOT/opt/rtems/include/g++-3; then
|
||||||
|
find $RPM_BUILD_ROOT/opt/rtems/include/g++-3 \
|
||||||
|
-type d | \
|
||||||
|
sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" >> files
|
||||||
|
find $RPM_BUILD_ROOT/opt/rtems/include/g++-3 \
|
||||||
|
\( -type f -o -type l \) | \
|
||||||
|
sed -e "s,^$RPM_BUILD_ROOT,,g" >> files
|
||||||
|
fi
|
||||||
|
|
||||||
|
# collect target gcc-lib
|
||||||
if test -d "$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"; \
|
if test -d "$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@"; \
|
||||||
then
|
then
|
||||||
find "$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@" -type d | \
|
find "$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@" \
|
||||||
sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" > files.gcc-lib
|
-type d | sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" >> files
|
||||||
find "$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@" -type f | \
|
find "$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@" \
|
||||||
sed -e "s,^$RPM_BUILD_ROOT,,g" >> files.gcc-lib
|
\( -type f -o -type l \) \
|
||||||
|
| sed -e "s,^$RPM_BUILD_ROOT,,g" >> files
|
||||||
|
fi
|
||||||
|
|
||||||
|
# collect target files
|
||||||
|
if test -d "$RPM_BUILD_ROOT/opt/rtems/@target_alias@"; \
|
||||||
|
then
|
||||||
|
find "$RPM_BUILD_ROOT/opt/rtems/@target_alias@" \
|
||||||
|
-type d | \
|
||||||
|
sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" >> files
|
||||||
|
find "$RPM_BUILD_ROOT/opt/rtems/@target_alias@" \
|
||||||
|
\( -type f -o -type l \) | \
|
||||||
|
sed -e "s,^$RPM_BUILD_ROOT,,g" >> files
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@@ -107,7 +136,7 @@ echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files -f files.g++ -f files.gcc-lib
|
%files -f build/files
|
||||||
%docdir /opt/rtems/info
|
%docdir /opt/rtems/info
|
||||||
%doc /opt/rtems/info/dir
|
%doc /opt/rtems/info/dir
|
||||||
%doc /opt/rtems/info/chill.info*
|
%doc /opt/rtems/info/chill.info*
|
||||||
@@ -126,18 +155,23 @@ echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
|
|||||||
|
|
||||||
%dir /opt/rtems/bin
|
%dir /opt/rtems/bin
|
||||||
/opt/rtems/bin/cpp
|
/opt/rtems/bin/cpp
|
||||||
|
/opt/rtems/bin/jv-scan
|
||||||
|
/opt/rtems/bin/gcov
|
||||||
|
/opt/rtems/bin/jcf-dump
|
||||||
|
/opt/rtems/bin/gcjh
|
||||||
/opt/rtems/bin/@target_alias@-c++
|
/opt/rtems/bin/@target_alias@-c++
|
||||||
/opt/rtems/bin/@target_alias@-g++
|
/opt/rtems/bin/@target_alias@-g++
|
||||||
/opt/rtems/bin/@target_alias@-gcc
|
/opt/rtems/bin/@target_alias@-gcc
|
||||||
/opt/rtems/bin/@target_alias@-gcj
|
/opt/rtems/bin/@target_alias@-gcj
|
||||||
|
/opt/rtems/bin/@target_alias@-chill
|
||||||
|
/opt/rtems/bin/@target_alias@-g77
|
||||||
|
/opt/rtems/bin/@target_alias@-protoize
|
||||||
|
/opt/rtems/bin/@target_alias@-unprotoize
|
||||||
|
|
||||||
%dir /opt/rtems/lib
|
%dir /opt/rtems/lib
|
||||||
/opt/rtems/lib/libiberty*
|
/opt/rtems/lib/libiberty*
|
||||||
%dir /opt/rtems/lib/include
|
%dir /opt/rtems/include
|
||||||
|
|
||||||
%dir /opt/rtems/lib/gcc-lib
|
%dir /opt/rtems/lib/gcc-lib
|
||||||
%dir /opt/rtems/lib/gcc-lib/@target_alias@
|
%dir /opt/rtems/lib/gcc-lib/@target_alias@
|
||||||
# /opt/rtems/@target_alias@/include
|
|
||||||
# /opt/rtems/@target_alias@/sys-include
|
|
||||||
/opt/rtems/@target_alias@/lib
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,32 +1,33 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
MKGDBSPEC = $(SHELL) $(top_srcdir)/mkgdbspec
|
MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec
|
||||||
|
|
||||||
MKGDBSPEC_DEPS = ../mkgdbspec gdb.spec.in ../setup.cache
|
MKGDBSPEC_DEPS = \
|
||||||
|
$(top_builddir)/mkgdbspec gdb.spec.in $(top_builddir)/setup.cache
|
||||||
|
|
||||||
i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . i386-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems
|
||||||
|
|
||||||
sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems
|
||||||
|
|
||||||
powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . sparc-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
||||||
|
|
||||||
m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems
|
||||||
|
|
||||||
mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems
|
||||||
|
|
||||||
i960-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
i960-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . i960-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems
|
||||||
|
|
||||||
hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . hppa1.1-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems
|
||||||
|
|
||||||
TEMPLATES = \
|
TEMPLATES = \
|
||||||
gdb.spec.in
|
gdb.spec.in
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ MKGDBSPEC_DEPS = ../mkgdbspec gdb.spec.in ../setup.cache
|
|||||||
TEMPLATES = gdb.spec.in
|
TEMPLATES = gdb.spec.in
|
||||||
|
|
||||||
|
|
||||||
RPM_SPECS_DATA = i386-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec powerpc-rtems-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec m68k-rtems-$(GDBVERS).spec mips64orion-rtems-$(GDBVERS).spec i960-rtems-$(GDBVERS).spec hppa1.1-rtems-$(GDBVERS).spec
|
RPM_SPECS_DATA = i386-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec sh-rtemself-$(GDBVERS).spec powerpc-rtems-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec m68k-rtems-$(GDBVERS).spec m68k-rtemself-$(GDBVERS).spec mips64orion-rtems-$(GDBVERS).spec i960-rtems-$(GDBVERS).spec hppa1.1-rtems-$(GDBVERS).spec
|
||||||
|
|
||||||
|
|
||||||
noinst_DATA = $(TEMPLATES)
|
noinst_DATA = $(TEMPLATES)
|
||||||
@@ -218,6 +218,9 @@ i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
|||||||
sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKGDBSPEC) -cfg ../setup.cache -o . sh-rtems
|
||||||
|
|
||||||
|
sh-rtemself-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
|
$(MKGDBSPEC) -cfg ../setup.cache -o . sh-rtemself
|
||||||
|
|
||||||
powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKGDBSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
@@ -227,6 +230,9 @@ sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
|||||||
m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKGDBSPEC) -cfg ../setup.cache -o . m68k-rtems
|
||||||
|
|
||||||
|
m68k-rtemself-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
|
$(MKGDBSPEC) -cfg ../setup.cache -o . m68k-rtemself
|
||||||
|
|
||||||
mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKGDBSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
||||||
|
|
||||||
|
|||||||
@@ -49,11 +49,6 @@ test -d build || mkdir build
|
|||||||
../gdb-@gdb_version@/configure --target=@target_alias@ \
|
../gdb-@gdb_version@/configure --target=@target_alias@ \
|
||||||
--verbose --prefix=/opt/rtems
|
--verbose --prefix=/opt/rtems
|
||||||
|
|
||||||
test -d $RPM_BUILD_ROOT/opt \
|
|
||||||
|| mkdir $RPM_BUILD_ROOT/opt
|
|
||||||
test -d $RPM_BUILD_ROOT/opt/rtems \
|
|
||||||
|| mkdir $RPM_BUILD_ROOT/opt/rtems
|
|
||||||
|
|
||||||
make all
|
make all
|
||||||
make info
|
make info
|
||||||
|
|
||||||
@@ -83,22 +78,25 @@ test -d build || mkdir build
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir /opt/rtems/info
|
%docdir /opt/rtems/info
|
||||||
%doc /opt/rtems/info/gdb.info*
|
%doc /opt/rtems/info/gdb.info*
|
||||||
%doc /opt/rtems/info/mmalloc.info*
|
%doc /opt/rtems/info/mmalloc.info*
|
||||||
%doc /opt/rtems/info/readline.info*
|
%doc /opt/rtems/info/readline.info*
|
||||||
|
|
||||||
%dir /opt/rtems/man
|
%docdir /opt/rtems/man
|
||||||
%dir /opt/rtems/man/man1
|
%docdir /opt/rtems/man/man1
|
||||||
%doc /opt/rtems/man/man1/@target_alias@-gdb.1
|
%doc /opt/rtems/man/man1/@target_alias@-gdb.1
|
||||||
|
|
||||||
%dir /opt/rtems/include
|
%dir /opt/rtems/include
|
||||||
/opt/rtems/include/bfd.h
|
# We install libbfd from binutils
|
||||||
/opt/rtems/include/bfdlink.h
|
# /opt/rtems/include/bfd.h
|
||||||
|
# /opt/rtems/include/bfdlink.h
|
||||||
|
|
||||||
%dir /opt/rtems/lib
|
%dir /opt/rtems/lib
|
||||||
/opt/rtems/lib/libbfd*
|
# We install libbfd from binutils
|
||||||
/opt/rtems/lib/libiberty*
|
# /opt/rtems/lib/libbfd*
|
||||||
|
# We use libiberty from gcc
|
||||||
|
# /opt/rtems/lib/libiberty*
|
||||||
|
|
||||||
%dir /opt/rtems/bin
|
%dir /opt/rtems/bin
|
||||||
/opt/rtems/bin/@target_alias@-gdb
|
/opt/rtems/bin/@target_alias@-gdb
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ echo "Summary: binutils for RTEMS"
|
|||||||
echo "Source0: binutils-990901.tar.gz"
|
echo "Source0: binutils-990901.tar.gz"
|
||||||
echo "Patch0: binutils-990901-rtems-19991015.diff"
|
echo "Patch0: binutils-990901-rtems-19991015.diff"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Buildroot: /opt/tmp"
|
echo "Buildroot: /tmp"
|
||||||
echo "# Patch:"
|
echo "# Patch:"
|
||||||
echo "%description"
|
echo "%description"
|
||||||
echo "RTEMS is an open source operating system for embedded systems."
|
echo "RTEMS is an open source operating system for embedded systems."
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
# Usage: mkbinutilspec CPU
|
# Usage: mkbinutilspec CPU
|
||||||
#
|
#
|
||||||
|
|
||||||
RTEMS_DIR=`dirname $0`
|
RTEMS_DIR=`dirname $0`/@top_srcdir@
|
||||||
|
|
||||||
CFG=user.cfg
|
CFG=setup.cache
|
||||||
dst=@RPM_SPECSdir@
|
dst=@RPM_SPECSdir@
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "$0 [options] <target_alias>"
|
echo "$0 [options] <target_alias>"
|
||||||
echo " options:"
|
echo " options:"
|
||||||
echo " -cfg <user.cfg>"
|
echo " -cfg <setup.cache>"
|
||||||
echo " -o <rpm-spec-dir>"
|
echo " -o <rpm-spec-dir>"
|
||||||
exit 1 ;
|
exit 1 ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,59 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
|
||||||
RTEMS_DIR=`dirname $0`
|
RTEMS_DIR=`dirname $0`/@top_srcdir@
|
||||||
RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
|
RTEMS_VERSION=@RTEMS_VERSION@
|
||||||
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
|
||||||
|
|
||||||
bsp=$1
|
CFG=setup.cache
|
||||||
target_alias=$2
|
dst=@RPM_SPECSdir@
|
||||||
release=0
|
|
||||||
|
|
||||||
# Some linux distributions use /usr/src/packages
|
usage()
|
||||||
# redhat uses /usr/src/redhat
|
{
|
||||||
# others might use /usr/src
|
echo "$0 [options] <target_alias> <bsp>"
|
||||||
if test -d /usr/src/packages/SPECS;
|
echo " options:"
|
||||||
|
echo " -cfg <setup.cache>"
|
||||||
|
echo " -o <rpm-spec-dir>"
|
||||||
|
exit 1 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
while test $# -ge 3; do
|
||||||
|
case $1 in
|
||||||
|
-cfg)
|
||||||
|
shift
|
||||||
|
CFG=$1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
dst=$1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-*)
|
||||||
|
echo "invalid option $1";
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test ! $# -eq 2;
|
||||||
then
|
then
|
||||||
dst=/usr/src/packages/SPECS;
|
echo "Invalid number of arguments"
|
||||||
elif test -d /usr/src/redhat/SPECS;
|
usage
|
||||||
then
|
|
||||||
dst=/usr/src/redhat/SPECS;
|
|
||||||
elif test -d /usr/src/SPECS/;
|
|
||||||
then
|
|
||||||
dst=/usr/src/SPECS;
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# target to build for
|
||||||
|
target_alias=$1
|
||||||
|
bsp=$2
|
||||||
|
|
||||||
|
. ./$CFG
|
||||||
|
|
||||||
|
specfile=${dst}/$target_alias-$bsp-$RTEMS_VERSION.spec
|
||||||
|
|
||||||
sed -e "s%@Version@%${RTEMS_VERSION}%g" \
|
sed -e "s%@Version@%${RTEMS_VERSION}%g" \
|
||||||
-e "s%@bsp@%${bsp}%g" \
|
-e "s%@bsp@%${bsp}%g" \
|
||||||
-e "s%@Release@%${release}%g" \
|
-e "s%@Release@%${rtems_release}%g" \
|
||||||
-e "s%@target_alias@%${target_alias}%g" \
|
-e "s%@target_alias@%${target_alias}%g" \
|
||||||
< ${RTEMS_DIR}/rtems.spec.in \
|
< ${RTEMS_DIR}/rtems/rtems.spec.in \
|
||||||
> ${dst}/rtems-$target_alias-$bsp.spec
|
> ${specfile}
|
||||||
|
|
||||||
|
echo Generated ${specfile}
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
# Usage: mktoolspec CPU
|
# Usage: mktoolspec CPU
|
||||||
#
|
#
|
||||||
|
|
||||||
RTEMS_DIR=`dirname $0`
|
RTEMS_DIR=`dirname $0`/@top_srcdir@
|
||||||
|
|
||||||
CFG=user.cfg
|
CFG=setup.cache
|
||||||
dst=@RPM_SPECSdir@
|
dst=@RPM_SPECSdir@
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "$0 [options] <target_alias>"
|
echo "$0 [options] <target_alias>"
|
||||||
echo " options:"
|
echo " options:"
|
||||||
echo " -cfg <user.cfg>"
|
echo " -cfg <setup.cache>"
|
||||||
echo " -o <rpm-spec-dir>"
|
echo " -o <rpm-spec-dir>"
|
||||||
exit 1 ;
|
exit 1 ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,15 +3,16 @@
|
|||||||
# Usage: mkgdbspec CPU
|
# Usage: mkgdbspec CPU
|
||||||
#
|
#
|
||||||
|
|
||||||
RTEMS_DIR=`dirname $0`
|
RTEMS_DIR=`dirname $0`/@top_srcdir@
|
||||||
CFG=user.cfg
|
|
||||||
|
CFG=setup.cache
|
||||||
dst=@RPM_SPECSdir@
|
dst=@RPM_SPECSdir@
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "$0 [options] <target_alias>"
|
echo "$0 [options] <target_alias>"
|
||||||
echo " options:"
|
echo " options:"
|
||||||
echo " -cfg <user.cfg>"
|
echo " -cfg <setup.cache>"
|
||||||
echo " -o <rpm-spec-dir>"
|
echo " -o <rpm-spec-dir>"
|
||||||
exit 1 ;
|
exit 1 ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,46 +1,45 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
# MKBSPSPEC = $(SHELL) $(top_srcdir)/mkbspspec
|
MKBSPSPEC = $(SHELL) $(top_builddir)/mkbspspec
|
||||||
MKBSPSPEC = @echo $(top_srcdir)/mkbspspec
|
|
||||||
|
|
||||||
MKBSPSPEC_DEPS = ../mkbspspec rtems.spec.in ../setup.cache
|
MKBSPSPEC_DEPS = $(top_builddir)/mkbspspec rtems.spec.in $(top_builddir)/setup.cache
|
||||||
|
|
||||||
i386-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
i386-rtems-pc386-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . i386-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems pc386
|
||||||
|
|
||||||
sh-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
sh-rtems-gensh1-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . sh-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems gensh1
|
||||||
|
|
||||||
powerpc-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
powerpc-rtems-mcp750-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . powerpc-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems mcp750
|
||||||
|
|
||||||
sparc-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
sparc-rtems-erc32-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . sparc-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems erc32
|
||||||
|
|
||||||
m68k-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
m68k-rtems-gen68360-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . m68k-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems gen68360
|
||||||
|
|
||||||
mips64orion-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
mips64orion-rtems-p4600-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . mips64orion-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems p4600
|
||||||
|
|
||||||
i960-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
i960-rtems-cvme961-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . i960-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems cvme961
|
||||||
|
|
||||||
hppa1.1-rtems-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
hppa1.1-rtems-simhppa-$(BSPVERS).spec: $(MKBSPSPEC_DEPS)
|
||||||
$(MKBSPSPEC) -cfg ../setup.cache -o . hppa1.1-rtems
|
$(MKBSPSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems simhppa
|
||||||
|
|
||||||
TEMPLATES = \
|
TEMPLATES = \
|
||||||
rtems.spec.in
|
rtems.spec.in
|
||||||
|
|
||||||
RPM_SPECS_DATA = \
|
RPM_SPECS_DATA = \
|
||||||
i386-rtems-$(BSPVERS).spec \
|
i386-rtems-pc386-$(BSPVERS).spec \
|
||||||
sh-rtems-$(BSPVERS).spec \
|
sh-rtems-gensh1-$(BSPVERS).spec \
|
||||||
powerpc-rtems-$(BSPVERS).spec \
|
powerpc-rtems-mcp750-$(BSPVERS).spec \
|
||||||
sparc-rtems-$(BSPVERS).spec \
|
sparc-rtems-erc32-$(BSPVERS).spec \
|
||||||
m68k-rtems-$(BSPVERS).spec \
|
m68k-rtems-gen68360-$(BSPVERS).spec \
|
||||||
mips64orion-rtems-$(BSPVERS).spec \
|
mips64orion-rtems-p4600-$(BSPVERS).spec \
|
||||||
i960-rtems-$(BSPVERS).spec \
|
i960-rtems-cvme961-$(BSPVERS).spec \
|
||||||
hppa1.1-rtems-$(BSPVERS).spec
|
hppa1.1-rtems-simhppa-$(BSPVERS).spec
|
||||||
|
|
||||||
noinst_DATA = \
|
noinst_DATA = \
|
||||||
$(TEMPLATES)
|
$(TEMPLATES)
|
||||||
|
|||||||
@@ -4,7 +4,12 @@ CFG=setup.cache
|
|||||||
|
|
||||||
# RTEMS tools setup
|
# RTEMS tools setup
|
||||||
|
|
||||||
test -f ./CFG || echo "restoring default setup.cache" && cp ./setup.def ./$CFG
|
if test ! -f ./$CFG;
|
||||||
|
then
|
||||||
|
echo -n "restoring default setup.cache .."
|
||||||
|
cp ./setup.def ./$CFG
|
||||||
|
echo " done"
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n "loading setup from ./$CFG .."
|
echo -n "loading setup from ./$CFG .."
|
||||||
. ./$CFG
|
. ./$CFG
|
||||||
|
|||||||
Reference in New Issue
Block a user