OLD | NEW |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 echo "long-plt.patch" | 49 echo "long-plt.patch" |
50 echo "==================================" | 50 echo "==================================" |
51 patch -p1 < ../long-plt.patch | 51 patch -p1 < ../long-plt.patch |
52 echo "----------------------------------" | 52 echo "----------------------------------" |
53 echo | 53 echo |
54 echo "icf-rel.patch" | 54 echo "icf-rel.patch" |
55 echo "==================================" | 55 echo "==================================" |
56 patch -p1 < ../icf-rel.patch | 56 patch -p1 < ../icf-rel.patch |
57 echo "----------------------------------" | 57 echo "----------------------------------" |
58 echo | 58 echo |
| 59 echo "icf-align.patch" |
| 60 echo "==================================" |
| 61 patch -p1 < ../icf-align.patch |
| 62 echo "----------------------------------" |
| 63 echo |
59 ) | 64 ) |
60 | 65 |
61 for ARCH in i386 amd64; do | 66 for ARCH in i386 amd64; do |
62 if [ ! -d precise-chroot-$ARCH ]; then | 67 if [ ! -d precise-chroot-$ARCH ]; then |
63 # Refresh sudo credentials | 68 # Refresh sudo credentials |
64 sudo -v | 69 sudo -v |
65 | 70 |
66 # Create the chroot | 71 # Create the chroot |
67 echo "" | 72 echo "" |
68 echo "Building chroot for $ARCH" | 73 echo "Building chroot for $ARCH" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 128 |
124 # Clean up chroot | 129 # Clean up chroot |
125 sudo rm -rf "$BUILDDIR" | 130 sudo rm -rf "$BUILDDIR" |
126 done | 131 done |
127 | 132 |
128 echo "Check you are happy with the binaries in" | 133 echo "Check you are happy with the binaries in" |
129 echo " $OUTPUTDIR" | 134 echo " $OUTPUTDIR" |
130 echo "Then" | 135 echo "Then" |
131 echo " * upload to Google Storage using the upload.sh script" | 136 echo " * upload to Google Storage using the upload.sh script" |
132 echo " * roll dependencies" | 137 echo " * roll dependencies" |
OLD | NEW |