| 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 25 matching lines...) Expand all Loading... |
| 36 fi | 36 fi |
| 37 | 37 |
| 38 | 38 |
| 39 if [ ! -d binutils-$VERSION ]; then | 39 if [ ! -d binutils-$VERSION ]; then |
| 40 # Extract the source | 40 # Extract the source |
| 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 patch -p1 < ../ehframe.patch | 46 patch -p1 < ../ehframe-race.patch |
| 47 ) | 47 ) |
| 48 fi | 48 fi |
| 49 | 49 |
| 50 for ARCH in i386 amd64; do | 50 for ARCH in i386 amd64; do |
| 51 if [ ! -d lucid-chroot-$ARCH ]; then | 51 if [ ! -d lucid-chroot-$ARCH ]; then |
| 52 # Refresh sudo credentials | 52 # Refresh sudo credentials |
| 53 sudo -v | 53 sudo -v |
| 54 | 54 |
| 55 # Create the chroot | 55 # Create the chroot |
| 56 echo "" | 56 echo "" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 # Clean up chroot | 109 # Clean up chroot |
| 110 sudo rm -rf "$BUILDDIR" | 110 sudo rm -rf "$BUILDDIR" |
| 111 done | 111 done |
| 112 | 112 |
| 113 echo "Check you are happy with the binaries in" | 113 echo "Check you are happy with the binaries in" |
| 114 echo " $OUTPUTDIR" | 114 echo " $OUTPUTDIR" |
| 115 echo "Then" | 115 echo "Then" |
| 116 echo " * upload to Google Storage using the upload.sh script" | 116 echo " * upload to Google Storage using the upload.sh script" |
| 117 echo " * roll dependencies" | 117 echo " * roll dependencies" |
| OLD | NEW |