summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hope <michael.hope@linaro.org>2010-09-11 21:33:00 +1200
committerMichael Hope <michael.hope@linaro.org>2010-09-11 21:33:00 +1200
commit74191d48cafb6a3995999b019764607eb1608cbb (patch)
treec54434344eac24c42b756476e0987f28c0e654c7
parent32295df2b482209718ed3dbdc335c6357ce283ab (diff)
Changed stamp files to go into a directory for easy toasting
-rwxr-xr-xsummon-arm-toolchain25
1 files changed, 12 insertions, 13 deletions
diff --git a/summon-arm-toolchain b/summon-arm-toolchain
index d77ac17..9dc59a4 100755
--- a/summon-arm-toolchain
+++ b/summon-arm-toolchain
@@ -27,6 +27,7 @@ LIBOPENSTM32_EN=0
SUMMON_DIR=$(pwd)
SOURCES=${SUMMON_DIR}/sources
+STAMPS=${SUMMON_DIR}/stamps
export PATH="${PREFIX}/bin:${PATH}"
@@ -51,9 +52,7 @@ case "$(uname)" in
;;
esac
-if [ ! -e ${SOURCES} ]; then
- mkdir ${SOURCES}
-fi
+mkdir -p ${STAMPS} ${SOURCES}
cd ${SOURCES}
@@ -119,7 +118,7 @@ if [ ! -e build ]; then
mkdir build
fi
-if [ ! -e .${BINUTILS}.build ]; then
+if [ ! -e ${STAMPS}/${BINUTILS}.build ]; then
echo "******************************************************************"
echo "* Unpacking ${BINUTILS}"
echo "******************************************************************"
@@ -149,11 +148,11 @@ if [ ! -e .${BINUTILS}.build ]; then
echo "******************************************************************"
echo "* Cleaning up ${BINUTILS}"
echo "******************************************************************"
- touch .${BINUTILS}.build
+ touch ${STAMPS}/${BINUTILS}.build
rm -rf build/* ${BINUTILS}
fi
-if [ ! -e .${GCC}-boot.build ]; then
+if [ ! -e ${STAMPS}/${GCC}-boot.build ]; then
echo "******************************************************************"
echo "* Unpacking ${GCC}-boot"
echo "******************************************************************"
@@ -187,11 +186,11 @@ if [ ! -e .${GCC}-boot.build ]; then
echo "******************************************************************"
echo "* Cleaning up ${GCC}-boot"
echo "******************************************************************"
- touch .${GCC}-boot.build
+ touch ${STAMPS}/${GCC}-boot.build
rm -rf build/* ${GCC}
fi
-if [ ! -e .${NEWLIB}.build ]; then
+if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then
echo "******************************************************************"
echo "* Unpacking ${NEWLIB}"
echo "******************************************************************"
@@ -221,12 +220,12 @@ if [ ! -e .${NEWLIB}.build ]; then
echo "******************************************************************"
echo "* Cleaning up ${NEWLIB}"
echo "******************************************************************"
- touch .${NEWLIB}.build
+ touch ${STAMPS}/${NEWLIB}.build
rm -rf build/* ${NEWLIB}
fi
# Yes, you need to build gcc again!
-if [ ! -e .${GCC}.build ]; then
+if [ ! -e ${STAMPS}/${GCC}.build ]; then
echo "******************************************************************"
echo "* Unpacking ${GCC}"
echo "******************************************************************"
@@ -259,11 +258,11 @@ if [ ! -e .${GCC}.build ]; then
echo "******************************************************************"
echo "* Cleaning up ${GCC}"
echo "******************************************************************"
- touch .${GCC}.build
+ touch ${STAMPS}/${GCC}.build
rm -rf build/* ${GCC}
fi
-if [ ! -e .${GDB}.build ]; then
+if [ ! -e ${STAMPS}/${GDB}.build ]; then
echo "******************************************************************"
echo "* Unpacking ${GDB}"
echo "******************************************************************"
@@ -290,7 +289,7 @@ if [ ! -e .${GDB}.build ]; then
echo "******************************************************************"
echo "* Cleaning up ${GDB}"
echo "******************************************************************"
- touch .${GDB}.build
+ touch ${STAMPS}/${GDB}.build
rm -rf build/* ${GDB}
fi