Index: build/install-build-deps.sh |
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh |
index fb3833e67a1e8d4359cd2d791516167b0bf17ece..5d0fafaba58ac9590ad2f6c0f6dbd69581d70e15 100755 |
--- a/build/install-build-deps.sh |
+++ b/build/install-build-deps.sh |
@@ -195,11 +195,28 @@ fi |
if test "$do_inst_arm" = "1"; then |
. /etc/lsb-release |
- if test "$DISTRIB_CODENAME" != "precise"; then |
+ if [ "$DISTRIB_CODENAME" != "precise" ]; then |
echo "ERROR: Installing the ARM cross toolchain is only available on" \ |
"Ubuntu precise." >&2 |
exit 1 |
fi |
+ |
+ ROOT="$(dirname ${BASH_SOURCE[0]})" |
+ ROOT="$(dirname ${ROOT})" |
+ SYSROOT="${ROOT}/out/arm_root" |
+ if [ ! -d ${SYSROOT} ]; then |
+ echo "Installing ARM root image." |
+ tarball=$(pwd)/out/naclsdk_linux_arm-trusted.tgz |
Lei Zhang
2012/11/16 23:43:38
Do you need to keep the tarball afterwards? Can yo
Sam Clegg
2012/12/05 23:18:07
Done.
|
+ TC_URL_PREFIX=https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain |
+ TC_REV=8000 |
+ |
+ curl -L \ |
tony
2012/11/16 23:50:06
It seems like at this point, curl hasn't been inst
Sam Clegg
2012/12/05 23:18:07
Done.
|
+ ${TC_URL_PREFIX}/${TC_REV}/naclsdk_linux_arm-trusted.tgz \ |
+ -o ${tarball} |
+ |
+ mkdir -p ${SYSROOT} |
+ tar zxf ${tarball} -C ${SYSROOT} |
+ fi |
echo "Installing ARM cross toolchain." |
else |
echo "Skipping installation of ARM cross toolchain." |