summaryrefslogtreecommitdiffstats
path: root/scripts/buildalltar.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-27 16:38:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-27 16:38:54 +0000
commit180a2ebdea4956032fd1532561cb3b43e971d72e (patch)
tree7d18f3441c96df32ed17c06181da58a87b72fcf2 /scripts/buildalltar.in
parent2003-01-27 Till Straumann <strauman@SLAC.Stanford.edu> (diff)
downloadrtems-180a2ebdea4956032fd1532561cb3b43e971d72e.tar.bz2
2003-01-27 RTEMS
* buildalltar.in, setup.def: Tool update including binaries for Cygwin with a special RTEMS user account.
Diffstat (limited to 'scripts/buildalltar.in')
-rw-r--r--scripts/buildalltar.in36
1 files changed, 21 insertions, 15 deletions
diff --git a/scripts/buildalltar.in b/scripts/buildalltar.in
index 5ee08a7307..dd3e85143c 100644
--- a/scripts/buildalltar.in
+++ b/scripts/buildalltar.in
@@ -95,26 +95,30 @@ 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"
+#ALL_TARGETS="arm-rtems h8300-rtems hppa1.1-rtems i386-rtems i960-rtems \
+# m68k-rtems mips64orion-rtems mips-rtems or32-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"
+ TARGETS="arm-rtems h8300-rtems hppa1.1-rtems i386-rtems \
+ m68k-rtems mips64orion-rtems mips-rtems powerpc-rtems \
+ sh-rtems sh-rtemself sparc-rtems"
fi
. $CFG
+# override the one from $CFG since it likely has a % in it to use the
+# .rpmrc setting which we can't use
+rpm_build_root=${HOME}/tmp
+
binutils=${binutils_version}
-gcc=${gcc_version}
+gcc=${gcc3_version}
gdb=${gdb_version}
-newlib=${newlib_version}
+newlib=${gcc3newlib_version}
# also use binutils_rpm_release
-buildroot=/tmp
#
# Now get started
@@ -203,12 +207,12 @@ do
make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1
check_fatal $? "make install-info"
- cd ${buildroot}
+ cd ${rpm_build_root}
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
+ rm -rf ${rpm_build_root}/opt
else
echo Skipping binutils for ${target}
fi
@@ -225,8 +229,7 @@ do
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/*
+ rm -rf ${rpm_build_root}/opt/*
tar xjf ${bintarfile}.bz2
fi
@@ -244,7 +247,10 @@ do
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 \
+ --with-gnu-as --with-gnu-ld --with-newlib --verbose \
+ --with-system-zlib --disable-nls \
+ --enable-version-specific-runtime-libs \
+ --enable-threads=rtems \
--prefix=/opt/rtems '--enable-languages=c,c++' >${logfile} 2>&1
check_fatal $? "gcc configure"
@@ -261,7 +267,7 @@ do
make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1
check_fatal $? "newlib make install-info"
- cd ${buildroot}
+ cd ${rpm_build_root}
tar cjf ${gcctarfile}.bz2 opt
cd ${CWD}
rm -rf ${rpm_build_root}/opt
@@ -320,7 +326,7 @@ esac
make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1
check_fatal $? "make install-info"
- cd ${buildroot}
+ cd ${rpm_build_root}
tar cjf ${gdbtarfile}.bz2 opt
cd ${CWD}
${ECHO} rm -rf ${rpm_build_root}/opt