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 #@ PNaCl toolchain build script | 6 #@ PNaCl toolchain build script |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 # PNaCl client-translators (sandboxed) binary locations | 141 # PNaCl client-translators (sandboxed) binary locations |
142 readonly INSTALL_TRANSLATOR="${TOOLCHAIN_BASE}/pnacl_translator" | 142 readonly INSTALL_TRANSLATOR="${TOOLCHAIN_BASE}/pnacl_translator" |
143 | 143 |
144 | 144 |
145 # The INSTALL_HOST directory has host binaries and libs which | 145 # The INSTALL_HOST directory has host binaries and libs which |
146 # are part of the toolchain (e.g. llvm and binutils). | 146 # are part of the toolchain (e.g. llvm and binutils). |
147 # There are also tools-x86 and tools-arm which have host binaries which | 147 # There are also tools-x86 and tools-arm which have host binaries which |
148 # are not part of the toolchain but might be useful in the SDK, e.g. | 148 # are not part of the toolchain but might be useful in the SDK, e.g. |
149 # arm sel_ldr and x86-hosted arm/mips validators. | 149 # arm sel_ldr and x86-hosted arm/mips validators. |
150 readonly INSTALL_HOST="${INSTALL_ROOT}/host_${HOST_ARCH}" | 150 readonly INSTALL_HOST="${INSTALL_ROOT}" |
151 | 151 |
152 # Component installation directories | 152 # Component installation directories |
153 readonly LLVM_INSTALL_DIR="${INSTALL_HOST}" | 153 readonly LLVM_INSTALL_DIR="${INSTALL_HOST}" |
154 readonly BINUTILS_INSTALL_DIR="${INSTALL_HOST}" | 154 readonly BINUTILS_INSTALL_DIR="${INSTALL_HOST}" |
155 readonly BFD_PLUGIN_DIR="${BINUTILS_INSTALL_DIR}/lib/bfd-plugins" | 155 readonly BFD_PLUGIN_DIR="${BINUTILS_INSTALL_DIR}/lib/bfd-plugins" |
156 readonly FAKE_INSTALL_DIR="${INSTALL_HOST}/fake" | 156 readonly FAKE_INSTALL_DIR="${INSTALL_HOST}/fake" |
157 NEWLIB_INSTALL_DIR="${INSTALL_ROOT}/usr" | 157 NEWLIB_INSTALL_DIR="${INSTALL_ROOT}/usr" |
158 | 158 |
159 # Location of the PNaCl tools defined for configure invocations. | 159 # Location of the PNaCl tools defined for configure invocations. |
160 readonly PNACL_CC="${INSTALL_BIN}/pnacl-clang" | 160 readonly PNACL_CC="${INSTALL_BIN}/pnacl-clang" |
(...skipping 3207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3368 | 3368 |
3369 if [ "$(type -t $1)" != "function" ]; then | 3369 if [ "$(type -t $1)" != "function" ]; then |
3370 #Usage | 3370 #Usage |
3371 echo "ERROR: unknown function '$1'." >&2 | 3371 echo "ERROR: unknown function '$1'." >&2 |
3372 echo "For help, try:" | 3372 echo "For help, try:" |
3373 echo " $0 help" | 3373 echo " $0 help" |
3374 exit 1 | 3374 exit 1 |
3375 fi | 3375 fi |
3376 | 3376 |
3377 "$@" | 3377 "$@" |
OLD | NEW |