| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 set -o nounset | 7 set -o nounset |
| 8 set -o errexit | 8 set -o errexit |
| 9 | 9 |
| 10 # The script is located in "native_client/tests/spec2k" | 10 # The script is located in "native_client/tests/spec2k" |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 CheckFileBuilt "IRT image" "${IRT_IMAGE}" | 498 CheckFileBuilt "IRT image" "${IRT_IMAGE}" |
| 499 | 499 |
| 500 local validator_bin="ncval" | 500 local validator_bin="ncval" |
| 501 if [[ ${arch} = "arm" ]]; then | 501 if [[ ${arch} = "arm" ]]; then |
| 502 validator_bin="arm-ncval-core" | 502 validator_bin="arm-ncval-core" |
| 503 fi | 503 fi |
| 504 VALIDATOR="${staging}/${validator_bin}" | 504 VALIDATOR="${staging}/${validator_bin}" |
| 505 # We don't CheckFileBuilt for VALIDATOR because we currently don't build | 505 # We don't CheckFileBuilt for VALIDATOR because we currently don't build |
| 506 # or use it on x86 | 506 # or use it on x86 |
| 507 | 507 |
| 508 TEMPLATE_DIGITS="XXXXXXXXXXXXXXXX" |
| 508 PREFIX="${prefix} ${SEL_LDR_BOOTSTRAP} \ | 509 PREFIX="${prefix} ${SEL_LDR_BOOTSTRAP} \ |
| 509 ${SEL_LDR} --r_debug=0xXXXXXXXXXXXXXXXX \ | 510 ${SEL_LDR} --r_debug=0x${TEMPLATE_DIGITS} \ |
| 510 --reserved_at_zero=0xXXXXXXXX -B ${IRT_IMAGE} \ | 511 --reserved_at_zero=0x${TEMPLATE_DIGITS} -B ${IRT_IMAGE} \ |
| 511 -a ${extra_flags} -f ${preload}" | 512 -a ${extra_flags} -f ${preload}" |
| 512 DASHDASH="--" | 513 DASHDASH="--" |
| 513 } | 514 } |
| 514 | 515 |
| 515 SCONS_COMMON="./scons --mode=opt-host,nacl -j8 --verbose" | 516 SCONS_COMMON="./scons --mode=opt-host,nacl -j8 --verbose" |
| 516 | 517 |
| 517 build-runtime() { | 518 build-runtime() { |
| 518 local platforms=$1 | 519 local platforms=$1 |
| 519 local runtime_pieces=$2 | 520 local runtime_pieces=$2 |
| 520 for platform in ${platforms} ; do | 521 for platform in ${platforms} ; do |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 | 833 |
| 833 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. | 834 [ $# = 0 ] && set -- help # Avoid reference to undefined $1. |
| 834 | 835 |
| 835 if [ "$(type -t $1)" != "function" ]; then | 836 if [ "$(type -t $1)" != "function" ]; then |
| 836 Usage | 837 Usage |
| 837 echo "ERROR: unknown mode '$1'." >&2 | 838 echo "ERROR: unknown mode '$1'." >&2 |
| 838 exit 1 | 839 exit 1 |
| 839 fi | 840 fi |
| 840 | 841 |
| 841 "$@" | 842 "$@" |
| OLD | NEW |