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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -e 1 #!/bin/bash -e
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to install everything needed to build chromium (well, ideally, anyway) 7 # Script to install everything needed to build chromium (well, ideally, anyway)
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 fi 188 fi
189 if test "$do_inst_syms" = "1"; then 189 if test "$do_inst_syms" = "1"; then
190 echo "Installing debugging symbols." 190 echo "Installing debugging symbols."
191 else 191 else
192 echo "Skipping installation of debugging symbols." 192 echo "Skipping installation of debugging symbols."
193 dbg_list= 193 dbg_list=
194 fi 194 fi
195 195
196 if test "$do_inst_arm" = "1"; then 196 if test "$do_inst_arm" = "1"; then
197 . /etc/lsb-release 197 . /etc/lsb-release
198 if test "$DISTRIB_CODENAME" != "precise"; then 198 if [ "$DISTRIB_CODENAME" != "precise" ]; then
199 echo "ERROR: Installing the ARM cross toolchain is only available on" \ 199 echo "ERROR: Installing the ARM cross toolchain is only available on" \
200 "Ubuntu precise." >&2 200 "Ubuntu precise." >&2
201 exit 1 201 exit 1
202 fi 202 fi
203
204 ROOT="$(dirname ${BASH_SOURCE[0]})"
205 ROOT="$(dirname ${ROOT})"
206 SYSROOT="${ROOT}/out/arm_root"
207 if [ ! -d ${SYSROOT} ]; then
208 echo "Installing ARM root image."
209 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.
210 TC_URL_PREFIX=https://commondatastorage.googleapis.com/nativeclient-archive2 /toolchain
211 TC_REV=8000
212
213 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.
214 ${TC_URL_PREFIX}/${TC_REV}/naclsdk_linux_arm-trusted.tgz \
215 -o ${tarball}
216
217 mkdir -p ${SYSROOT}
218 tar zxf ${tarball} -C ${SYSROOT}
219 fi
203 echo "Installing ARM cross toolchain." 220 echo "Installing ARM cross toolchain."
204 else 221 else
205 echo "Skipping installation of ARM cross toolchain." 222 echo "Skipping installation of ARM cross toolchain."
206 arm_list= 223 arm_list=
207 fi 224 fi
208 225
209 sudo apt-get update 226 sudo apt-get update
210 227
211 # We initially run "apt-get" with the --reinstall option and parse its output. 228 # We initially run "apt-get" with the --reinstall option and parse its output.
212 # This way, we can find all the packages that need to be newly installed 229 # This way, we can find all the packages that need to be newly installed
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 sed -e 's/[.]so[.][0-9].*/.so/' | 452 sed -e 's/[.]so[.][0-9].*/.so/' |
436 sort -u); do 453 sort -u); do
437 [ "x${i##*/}" = "xld-linux.so" ] && continue 454 [ "x${i##*/}" = "xld-linux.so" ] && continue
438 [ -r "$i" ] && continue 455 [ -r "$i" ] && continue
439 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 456 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
440 sort -n | tail -n 1)" 457 sort -n | tail -n 1)"
441 [ -r "$i.$j" ] || continue 458 [ -r "$i.$j" ] || continue
442 sudo ln -s "${i##*/}.$j" "$i" 459 sudo ln -s "${i##*/}.$j" "$i"
443 done 460 done
444 fi 461 fi
OLDNEW
« 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