aboutsummaryrefslogtreecommitdiffstats
path: root/utils/crosstool/ARM
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-06-12 02:04:47 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-06-12 02:04:47 +0000
commit00c1073012553348528c783cb63508d19da898e6 (patch)
treed42ed791b9abe0a59b63ce8b0c31c1175cc49b00 /utils/crosstool/ARM
parentcb6f9c8aae59e64372335fc197e94839e5d14761 (diff)
downloadexternal_llvm-00c1073012553348528c783cb63508d19da898e6.zip
external_llvm-00c1073012553348528c783cb63508d19da898e6.tar.gz
external_llvm-00c1073012553348528c783cb63508d19da898e6.tar.bz2
Update script to tell the user where to get the CodeSourcery crosstool, if it's
not found. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/crosstool/ARM')
-rwxr-xr-xutils/crosstool/ARM/build-install-linux.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/utils/crosstool/ARM/build-install-linux.sh b/utils/crosstool/ARM/build-install-linux.sh
index efa97a1..33833b5 100755
--- a/utils/crosstool/ARM/build-install-linux.sh
+++ b/utils/crosstool/ARM/build-install-linux.sh
@@ -20,6 +20,7 @@ readonly CROSS_TARGET="arm-none-linux-gnueabi"
readonly CODE_SOURCERY="${INSTALL_ROOT}/codesourcery"
readonly CODE_SOURCERY_PKG_PATH="${CODE_SOURCERY_PKG_PATH:-${HOME}/codesourcery}"
+readonly CODE_SOURCERY_HTTP="http://www.codesourcery.com/sgpp/lite/arm/portal/package1787/public"
readonly CODE_SOURCERY_PKG="arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2"
readonly CODE_SOURCERY_ROOT="${CODE_SOURCERY}/arm-2007q3"
readonly CODE_SOURCERY_BIN="${CODE_SOURCERY_ROOT}/bin"
@@ -110,8 +111,16 @@ installCodeSourcery() {
# Unpack the tarball.
if [[ ! -d ${CODE_SOURCERY_ROOT} ]]; then
cd ${CODE_SOURCERY}
- runCommand "Unpacking CodeSourcery in ${CODE_SOURCERY}" \
- tar jxf ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}
+ if [[ -e ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG} ]]; then
+ runCommand "Unpacking CodeSourcery in ${CODE_SOURCERY}" \
+ tar jxf ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}
+ else
+ echo -n "CodeSourcery tarball not found in "
+ echo "${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}"
+ echo -n "Fix the path or download it from "
+ echo "${CODE_SOURCERY_HTTP}/${CROSS_TARGET}/${CODE_SOURCERY_PKG}"
+ exit
+ fi
else
echo "CodeSourcery install dir already exists."
fi