| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 readonly LIBMODE_GLIBC | 69 readonly LIBMODE_GLIBC |
| 70 | 70 |
| 71 readonly SB_JIT=${SB_JIT:-false} | 71 readonly SB_JIT=${SB_JIT:-false} |
| 72 | 72 |
| 73 # TODO(pdox): Decide what the target should really permanently be | 73 # TODO(pdox): Decide what the target should really permanently be |
| 74 readonly CROSS_TARGET_ARM=arm-none-linux-gnueabi | 74 readonly CROSS_TARGET_ARM=arm-none-linux-gnueabi |
| 75 readonly BINUTILS_TARGET=arm-pc-nacl | 75 readonly BINUTILS_TARGET=arm-pc-nacl |
| 76 readonly REAL_CROSS_TARGET=pnacl | 76 readonly REAL_CROSS_TARGET=pnacl |
| 77 readonly NACL64_TARGET=x86_64-nacl | 77 readonly NACL64_TARGET=x86_64-nacl |
| 78 | 78 |
| 79 readonly DRIVER_DIR="${NACL_ROOT}/tools/llvm/driver" | 79 readonly DRIVER_DIR="${NACL_ROOT}/pnacl/driver" |
| 80 readonly ARM_ARCH=armv7-a | 80 readonly ARM_ARCH=armv7-a |
| 81 readonly ARM_FPU=vfp | 81 readonly ARM_FPU=vfp |
| 82 | 82 |
| 83 | 83 |
| 84 readonly NNACL_BASE="${NACL_ROOT}/toolchain/${SCONS_BUILD_PLATFORM}_x86" | 84 readonly NNACL_BASE="${NACL_ROOT}/toolchain/${SCONS_BUILD_PLATFORM}_x86" |
| 85 readonly NNACL_NEWLIB_ROOT="${NNACL_BASE}_newlib" | 85 readonly NNACL_NEWLIB_ROOT="${NNACL_BASE}_newlib" |
| 86 readonly NNACL_GLIBC_ROOT="${NNACL_BASE}" | 86 readonly NNACL_GLIBC_ROOT="${NNACL_BASE}" |
| 87 | 87 |
| 88 readonly MAKE_OPTS="-j${UTMAN_CONCURRENCY} VERBOSE=1" | 88 readonly MAKE_OPTS="-j${UTMAN_CONCURRENCY} VERBOSE=1" |
| 89 | 89 |
| (...skipping 3843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3933 | 3933 |
| 3934 if [ "$(type -t $1)" != "function" ]; then | 3934 if [ "$(type -t $1)" != "function" ]; then |
| 3935 #Usage | 3935 #Usage |
| 3936 echo "ERROR: unknown function '$1'." >&2 | 3936 echo "ERROR: unknown function '$1'." >&2 |
| 3937 echo "For help, try:" | 3937 echo "For help, try:" |
| 3938 echo " $0 help" | 3938 echo " $0 help" |
| 3939 exit 1 | 3939 exit 1 |
| 3940 fi | 3940 fi |
| 3941 | 3941 |
| 3942 "$@" | 3942 "$@" |
| OLD | NEW |