projects
/
summon-arm-toolchain.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use core package for FSF GCC
[summon-arm-toolchain.git]
/
summon-arm-toolchain
diff --git
a/summon-arm-toolchain
b/summon-arm-toolchain
index 7665da6c336dbf687b047ae46ac7174628ef2cdd..80435c40810825daac2cb3593ae4f9b4f6c973a1 100755
(executable)
--- a/
summon-arm-toolchain
+++ b/
summon-arm-toolchain
@@
-37,10
+37,10
@@
DEFAULT_TO_CORTEX_M3=1
##############################################################################
if [ ${USE_LINARO} == 0 ] ; then
# For FSF GCC:
##############################################################################
if [ ${USE_LINARO} == 0 ] ; then
# For FSF GCC:
- GCCVERSION=4.
5
.1
- GCC=gcc-${GCCVERSION}
- GCCDIR=
${GCC
}
- GCCURL=http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.gz
+ GCCVERSION=4.
6
.1
+ GCC=gcc-
core-
${GCCVERSION}
+ GCCDIR=
gcc-${GCCVERSION
}
+ GCCURL=http://ftp.gnu.org/gnu/gcc/${GCC
DIR
}/${GCC}.tar.gz
else
# For the Linaro GCC:
GCCRELEASE=4.6-2011.07
else
# For the Linaro GCC:
GCCRELEASE=4.6-2011.07
@@
-96,7
+96,7
@@
fi
export PATH="${PREFIX}/bin:${PATH}"
export PATH="${PREFIX}/bin:${PATH}"
-SUMMON_DIR=$
(pwd)
+SUMMON_DIR=$
{WORKDIR}
SOURCES=${SUMMON_DIR}/sources
STAMPS=${SUMMON_DIR}/stamps
SOURCES=${SUMMON_DIR}/sources
STAMPS=${SUMMON_DIR}/stamps
@@
-199,7
+199,12
@@
function install {
${SUDO} make ${MAKEFLAGS} $2 $3 $4 $5 $6 $7 $8
}
${SUDO} make ${MAKEFLAGS} $2 $3 $4 $5 $6 $7 $8
}
-
+if [ ! -d $SUMMON_DIR ]; then
+ mkdir -p ${SUMMON_DIR}
+ SUMMON_DIR_CREATED=1
+else
+ SUMMON_DIR_CREATED=0
+fi
mkdir -p ${STAMPS} ${SOURCES}
cd ${SOURCES}
mkdir -p ${STAMPS} ${SOURCES}
cd ${SOURCES}
@@
-477,3
+482,8
@@
if [ ! -e ${STAMPS}/libopenstm32-${LIBOPENSTM32}.build ]; then
rm -rf libopenstm32-${LIBOPENSTM32}
fi
fi
rm -rf libopenstm32-${LIBOPENSTM32}
fi
fi
+
+if [ ${SUMMON_DIR_CREATED} == 1 ]; then
+ log "Removing work directory"
+ rm -rf ${SUMMON_DIR}
+fi