URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [web_uploads/] [ats/] [or32-rtems/] [or1k_ats_rtems.txt] - Rev 1765
Compare with Previous | Blame | View Log
#!/bin/bash## Some common variables#OR1K_WEB=../../www/cores/or1k/ats/or32-rtemsOR1K_WEB_LAST=$OR1K_WEB/last_okOK_STR="<font color=#00bf00>Test Passed</font>"FAIL_STR="<font color=#af0000>Test Failed</font>"ALL_STABLE=1## Allocate test pool directory#mkdir or1kcd or1k## Copy script for web visitors' reference#cp ../or1k_ats_rtems.sh $OR1K_WEB/or1k_ats_rtems.txt## Start with binutils#date > checkout_binutils.txt 2>&1nice /usr/bin/cvs -d :pserver:cvs@cvs.opencores.org:/home/oc/cvs -z9 co -d binutils or1k/binutils >> checkout_binutils.txt 2>&1mkdir b-bcd b-bdate > ../build_binutils.txt 2>&1../binutils/configure --target=or32-rtems --prefix=/home/oc/testpool/or1k/or32-rtems >> ../build_binutils.txt 2>&1nice /usr/bin/make all install >> ../build_binutils.txt 2>&1BUILD_BINUTILS_STATUS=$?export PATH=/home/oc/testpool/or1k/or32-rtems/bin:$PATHcd ..rm -rf binutils## Copy all log files into or1k web directory#cp checkout_binutils.txt $OR1K_WEBcp build_binutils.txt $OR1K_WEB## Check if binutils was built and installed correctly#if [ $BUILD_BINUTILS_STATUS = 0 ]; thenecho "$OK_STR (`date`)" > $OR1K_WEB/build_binutils.statuscp $OR1K_WEB/build_binutils.status $OR1K_WEB_LASTcp $OR1K_WEB/checkout_binutils.txt $OR1K_WEB_LASTcp $OR1K_WEB/build_binutils.txt $OR1K_WEB_LASTelse../notice_developers.sh or1k/binutils $OR1K_WEB_LAST/build_binutils.status < build_binutils.txtecho "$FAIL_STR (`date`)" > $OR1K_WEB/build_binutils.statusALL_STABLE=0fi## Start with gcc#date > checkout_newlib_gcc.txt 2>&1nice /usr/bin/cvs -d :pserver:cvs@cvs.opencores.org:/home/oc/cvs -z9 co -d newlib or1k/newlib-1.10.0 >> checkout_newlib_gcc.txt 2>&1nice /usr/bin/cvs -d :pserver:cvs@cvs.opencores.org:/home/oc/cvs -z9 co -d gcc or1k/gcc >> checkout_newlib_gcc.txt 2>&1cd gcc./contrib/egcs_update --touch > /dev/nullln -s ../newlib/newlib .cd ..mkdir b-gcccd b-gccdate > ../build_newlib_gcc.txt 2>&1nice ../gcc/configure --target=or32-rtems \--with-gnu-as --with-gnu-ld --with-newlib --verbose \--enable-threads --prefix=/home/oc/testpool/or1k/or32-rtems --enable-languages="c" >> ../build_newlib_gcc.txt 2>&1nice /usr/bin/make all install >> ../build_newlib_gcc.txt 2>&1BUILD_GCC_STATUS=$?cd ..rm -rf gcc## Copy all log files into or1k web directory#cp checkout_newlib_gcc.txt $OR1K_WEBcp build_newlib_gcc.txt $OR1K_WEB## Check if newlib/gcc was built and installed correctly#if [ $BUILD_GCC_STATUS = 0 ]; thenecho "$OK_STR (`date`)" > $OR1K_WEB/build_newlib_gcc.statuscp $OR1K_WEB/build_newlib_gcc.status $OR1K_WEB_LASTcp $OR1K_WEB/checkout_newlib_gcc.txt $OR1K_WEB_LASTcp $OR1K_WEB/build_newlib_gcc.txt $OR1K_WEB_LASTelse../notice_developers.sh or1k/newlib $OR1K_WEB_LAST/build_newlib_gcc.status < build_newlib_gcc.txtecho "$FAIL_STR (`date`)"> $OR1K_WEB/build_newlib_gcc.statusALL_STABLE=0fi## Start with gdb#date > checkout_gdb.txt 2>&1nice /usr/bin/cvs -d :pserver:cvs@cvs.opencores.org:/home/oc/cvs -z9 co -d gdb or1k/gdb-5.0 >> checkout_gdb.txt 2>&1mkdir b-gdbcd b-gdbdate > ../build_gdb.txt 2>&1../gdb/configure --target=or32-rtems --prefix=/home/oc/testpool/or1k/or32-rtems >> ../build_gdb.txt 2>&1nice /usr/bin/make all install >> ../build_gdb.txt 2>&1BUILD_GDB_STATUS=$?cd ..rm -rf gdb## Copy all log files into or1k web directory#cp checkout_gdb.txt $OR1K_WEBcp build_gdb.txt $OR1K_WEB## Check if gdb was built and installed correctly#if [ $BUILD_GDB_STATUS = 0 ]; thenecho "$OK_STR (`date`)" > $OR1K_WEB/build_gdb.statuscp $OR1K_WEB/build_gdb.status $OR1K_WEB_LASTcp $OR1K_WEB/checkout_gdb.txt $OR1K_WEB_LASTcp $OR1K_WEB/build_gdb.txt $OR1K_WEB_LASTelse../notice_developers.sh or1k/gdb-5.0 $OR1K_WEB_LAST/build_gdb.status < build_gdb.txtecho "$FAIL_STR (`date`)"> $OR1K_WEB/build_gdb.statusALL_STABLE=0fi## Start with or1ksim#date > checkout_or1ksim.txt 2>&1nice /usr/bin/cvs -d :pserver:cvs@cvs.opencores.org:/home/oc/cvs -z9 co -d or1ksim or1k/or1ksim >> checkout_or1ksim.txt 2>&1cd or1ksimdate > ../build_or1ksim.txt 2>&1../or1ksim/configure --target=or32-rtems --prefix=/home/oc/testpool/or1k/or32-rtems >> ../build_or1ksim.txt 2>&1nice /usr/bin/make all install >> ../build_or1ksim.txt 2>&1BUILD_OR1KSIM_STATUS=$?cd ..rm -rf or1ksim## Copy all log files into or1k web directory#cp checkout_or1ksim.txt $OR1K_WEBcp build_or1ksim.txt $OR1K_WEB## Check if or1ksim was built and installed correctly#if [ $BUILD_OR1KSIM_STATUS = 0 ]; thenecho "$OK_STR (`date`)" > $OR1K_WEB/build_or1ksim.statuscp $OR1K_WEB/build_or1ksim.status $OR1K_WEB_LASTcp $OR1K_WEB/checkout_or1ksim.txt $OR1K_WEB_LASTcp $OR1K_WEB/build_or1ksim.txt $OR1K_WEB_LASTelse../notice_developers.sh or1k/or1ksim $OR1K_WEB_LAST/build_or1ksim.status < build_or1ksim.txtecho "$FAIL_STR (`date`)"> $OR1K_WEB/build_or1ksim.statusALL_STABLE=0fi## rtag sources as ats-stable if everything worked#cd ..if [ "$1" == "ats" ]; thenif [ $ALL_STABLE = 1 ]; thennice cvs -d :pserver:ats@cvs.opencores.org:/home/oc/cvs -z9 rtag -FR ats-stable or1k/binutils > /dev/null 2>&1nice cvs -d :pserver:ats@cvs.opencores.org:/home/oc/cvs -z9 rtag -FR ats-stable or1k/newlib-1.10.0 > /dev/null 2>&1nice cvs -d :pserver:ats@cvs.opencores.org:/home/oc/cvs -z9 rtag -FR ats-stable or1k/gcc > /dev/null 2>&1nice cvs -d :pserver:ats@cvs.opencores.org:/home/oc/cvs -z9 rtag -FR ats-stable or1k/gdb-5.0 > /dev/null 2>&1nice cvs -d :pserver:ats@cvs.opencores.org:/home/oc/cvs -z9 rtag -FR ats-stable or1k/or1ksim > /dev/null 2>&1fifi## Clean testpool#rm -rf or1k
