Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: build/install-build-deps.sh

Issue 11417041: Teach install-build-deps.sh --arm how to install the arm root image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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."
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698