| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 #@ Untrusted Toolchain Manager | 6 #@ Untrusted Toolchain Manager |
| 7 #@------------------------------------------------------------------- | 7 #@------------------------------------------------------------------- |
| 8 #@ This script builds the ARM and PNaCl untrusted toolchains. | 8 #@ This script builds the ARM and PNaCl untrusted toolchains. |
| 9 #@ It MUST be run from the native_client/ directory. | 9 #@ It MUST be run from the native_client/ directory. |
| 10 ###################################################################### | 10 ###################################################################### |
| (...skipping 2673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2684 # (with ac_cv_prog_cc_g). | 2684 # (with ac_cv_prog_cc_g). |
| 2685 | 2685 |
| 2686 # There's no point in setting the correct path as sysroot, because we | 2686 # There's no point in setting the correct path as sysroot, because we |
| 2687 # want the toolchain to be relocatable. The driver will use ld command-line | 2687 # want the toolchain to be relocatable. The driver will use ld command-line |
| 2688 # option --sysroot= to override this value and set it to the correct path. | 2688 # option --sysroot= to override this value and set it to the correct path. |
| 2689 # However, we need to include --with-sysroot during configure to get this | 2689 # However, we need to include --with-sysroot during configure to get this |
| 2690 # option. So fill in a non-sense, non-existent path. | 2690 # option. So fill in a non-sense, non-existent path. |
| 2691 spopd | 2691 spopd |
| 2692 } | 2692 } |
| 2693 | 2693 |
| 2694 # binutils-gold-sb-make - Make binutils (unsandboxed) | 2694 # binutils-gold-sb-make - Make binutils (sandboxed) |
| 2695 binutils-gold-sb-make() { | 2695 binutils-gold-sb-make() { |
| 2696 local arch=${arch} | 2696 local arch=${1} |
| 2697 local objdir="$(GetTranslatorBuildDir ${arch})/binutils-gold-sb" | 2697 local objdir="$(GetTranslatorBuildDir ${arch})/binutils-gold-sb" |
| 2698 ts-touch-open "${objdir}/" | 2698 ts-touch-open "${objdir}/" |
| 2699 | 2699 |
| 2700 StepBanner "GOLD-NATIVE-SB" "Make (liberty) ${arch}" | 2700 StepBanner "GOLD-NATIVE-SB" "Make (liberty) ${arch}" |
| 2701 spushd "${objdir}/libiberty" | 2701 spushd "${objdir}/libiberty" |
| 2702 | 2702 |
| 2703 local log_prefix="binutils-gold.sb.${arch}" | 2703 local log_prefix="binutils-gold.sb.${arch}" |
| 2704 RunWithLog "${log_prefix}".make \ | 2704 RunWithLog "${log_prefix}".make \ |
| 2705 env -i PATH="/usr/bin:/bin" \ | 2705 env -i PATH="/usr/bin:/bin" \ |
| 2706 make ${MAKE_OPTS} | 2706 make ${MAKE_OPTS} |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3909 #Usage | 3909 #Usage |
| 3910 echo "ERROR: unknown function '$1'." >&2 | 3910 echo "ERROR: unknown function '$1'." >&2 |
| 3911 echo "For help, try:" | 3911 echo "For help, try:" |
| 3912 echo " $0 help" | 3912 echo " $0 help" |
| 3913 exit 1 | 3913 exit 1 |
| 3914 fi | 3914 fi |
| 3915 | 3915 |
| 3916 hg-migrate | 3916 hg-migrate |
| 3917 | 3917 |
| 3918 "$@" | 3918 "$@" |
| OLD | NEW |