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

Side by Side Diff: third_party/binutils/build-all.sh

Issue 1537083003: Gold: Patch linker to implement --long-plt flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « third_party/binutils/README.chromium ('k') | third_party/binutils/long-plt.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Script to build binutils for both i386 and AMD64 Linux architectures. 6 # Script to build binutils for both i386 and AMD64 Linux architectures.
7 # Must be run on an AMD64 supporting machine which has debootstrap and sudo 7 # Must be run on an AMD64 supporting machine which has debootstrap and sudo
8 # installed. 8 # installed.
9 # Uses Ubuntu Lucid chroots as build environment. 9 # Uses Ubuntu Lucid chroots as build environment.
10 10
(...skipping 18 matching lines...) Expand all
29 wget -c -q http://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.bz2.sig 29 wget -c -q http://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.bz2.sig
30 if ! gpg --verify binutils-$VERSION.tar.bz2.sig; then 30 if ! gpg --verify binutils-$VERSION.tar.bz2.sig; then
31 echo "GPG Signature failed to verify." 31 echo "GPG Signature failed to verify."
32 echo "" 32 echo ""
33 echo "You may need to import the vendor GPG key with:" 33 echo "You may need to import the vendor GPG key with:"
34 echo "# gpg --keyserver pgp.mit.edu --recv-key 4AE55E93" 34 echo "# gpg --keyserver pgp.mit.edu --recv-key 4AE55E93"
35 exit 1 35 exit 1
36 fi 36 fi
37 37
38 38
39 if [ ! -d binutils-$VERSION ]; then 39 # Extract the source
40 # Extract the source 40 rm -rf binutils-$VERSION
41 tar jxf binutils-$VERSION.tar.bz2 41 tar jxf binutils-$VERSION.tar.bz2
42 42
43 # Patch the source 43 # Patch the source
44 ( 44 (
45 cd binutils-$VERSION 45 cd binutils-$VERSION
46 echo "unlock-thin.patch" 46 echo "unlock-thin.patch"
47 echo "==================================" 47 echo "=================================="
48 patch -p1 < ../unlock-thin.patch 48 patch -p1 < ../unlock-thin.patch
49 echo "----------------------------------" 49 echo "----------------------------------"
50 echo 50 echo
51 echo "plugin-dso-fix.patch" 51 echo "plugin-dso-fix.patch"
52 echo "==================================" 52 echo "=================================="
53 patch -p1 < ../plugin-dso-fix.patch 53 patch -p1 < ../plugin-dso-fix.patch
54 echo "----------------------------------" 54 echo "----------------------------------"
55 echo 55 echo
56 ) 56 echo "long-plt.patch"
57 fi 57 echo "=================================="
58 patch -p1 < ../long-plt.patch
59 echo "----------------------------------"
60 echo
61 )
58 62
59 for ARCH in i386 amd64; do 63 for ARCH in i386 amd64; do
60 if [ ! -d precise-chroot-$ARCH ]; then 64 if [ ! -d precise-chroot-$ARCH ]; then
61 # Refresh sudo credentials 65 # Refresh sudo credentials
62 sudo -v 66 sudo -v
63 67
64 # Create the chroot 68 # Create the chroot
65 echo "" 69 echo ""
66 echo "Building chroot for $ARCH" 70 echo "Building chroot for $ARCH"
67 echo "=============================" 71 echo "============================="
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 125
122 # Clean up chroot 126 # Clean up chroot
123 sudo rm -rf "$BUILDDIR" 127 sudo rm -rf "$BUILDDIR"
124 done 128 done
125 129
126 echo "Check you are happy with the binaries in" 130 echo "Check you are happy with the binaries in"
127 echo " $OUTPUTDIR" 131 echo " $OUTPUTDIR"
128 echo "Then" 132 echo "Then"
129 echo " * upload to Google Storage using the upload.sh script" 133 echo " * upload to Google Storage using the upload.sh script"
130 echo " * roll dependencies" 134 echo " * roll dependencies"
OLDNEW
« no previous file with comments | « third_party/binutils/README.chromium ('k') | third_party/binutils/long-plt.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698