summaryrefslogtreecommitdiff
path: root/gcc/test_driver
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-13 13:18:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-13 13:18:20 +0000
commita27c3419ca30f1d0c0be0525d273843117342a3b (patch)
treedb6426139015b9b80f66d12078638fd08d4c375c /gcc/test_driver
parente694e5e10db7dafc97f35a515f9464ad05b9e106 (diff)
2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* rundeja, test_driver: Add lm32. Do not attempt to update gcc source if update will ask for passphrase.
Diffstat (limited to 'gcc/test_driver')
-rwxr-xr-xgcc/test_driver25
1 files changed, 17 insertions, 8 deletions
diff --git a/gcc/test_driver b/gcc/test_driver
index 5ab3fd2..c8df1a4 100755
--- a/gcc/test_driver
+++ b/gcc/test_driver
@@ -116,20 +116,25 @@ update_gcc()
{
cd ${GCCDIR}
if [ -d .svn ] ; then
- ./contrib/gcc_update
- if [ $? -ne 0 ] ; then
- echo "Update of GCC Failed."
- exit 1
- fi
+ grep "svn+ssh" .svn/entries >/dev/null
+ if [ $? -eq 0 ] ; then
+ echo "Skipping gcc update -- ssh keyed check out"
+ else
+ echo "Updating gcc -- anonymous check out"
+ ./contrib/gcc_update
+ if [ $? -ne 0 ] ; then
+ echo "Update of GCC Failed."
+ exit 1
+ fi
+ fi
fi
+ return 0
}
# HELPER - Remove all the installed previous builds
clean_up()
{
- rm -rf ${INSTALL}/* &
- rm -rf ${BSP_INSTALL}/* &
- wait
+ rm -rf ${INSTALL}/* ${BSP_INSTALL}/*
}
install_auto()
@@ -175,6 +180,7 @@ do_cpus()
bfin) bsp=eZKit533 ;;
h8300) bsp=h8sim ;;
i386) bsp=pc386 ;;
+ lm32) bsp=lm32_evr ;;
m32c) bsp=m32csim ;;
m32r) bsp=m32rsim ;;
m68k) bsp=uC5282 ;;
@@ -207,6 +213,9 @@ do_cpus()
echo Stopped at: ${stopped}
}
+update_gcc
+exit 0
+
if [ ${doCleanInstallPoint} = "yes" ] ; then
# Clean the install point
clean_up