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 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2740 | 2740 |
2741 feature-version-file-install() { | 2741 feature-version-file-install() { |
2742 # Scons tests can check this version number to decide whether to | 2742 # Scons tests can check this version number to decide whether to |
2743 # enable tests for toolchain bug fixes or new features. This allows | 2743 # enable tests for toolchain bug fixes or new features. This allows |
2744 # tests to be enabled on the toolchain buildbots/trybots before the | 2744 # tests to be enabled on the toolchain buildbots/trybots before the |
2745 # new toolchain version is rolled into TOOL_REVISIONS (i.e. before | 2745 # new toolchain version is rolled into TOOL_REVISIONS (i.e. before |
2746 # the tests would pass on the main NaCl buildbots/trybots). | 2746 # the tests would pass on the main NaCl buildbots/trybots). |
2747 # | 2747 # |
2748 # If you are adding a test that depends on a toolchain change, you | 2748 # If you are adding a test that depends on a toolchain change, you |
2749 # can increment this version number manually. | 2749 # can increment this version number manually. |
2750 echo 4 > "${INSTALL_ROOT}/FEATURE_VERSION" | 2750 echo 5 > "${INSTALL_ROOT}/FEATURE_VERSION" |
2751 } | 2751 } |
2752 | 2752 |
2753 # The driver is a simple python script which changes its behavior | 2753 # The driver is a simple python script which changes its behavior |
2754 # depending on the name it is invoked as. | 2754 # depending on the name it is invoked as. |
2755 driver-install() { | 2755 driver-install() { |
2756 local bindir=bin | 2756 local bindir=bin |
2757 # On Linux we ship a fat toolchain with 2 sets of binaries defaulting to | 2757 # On Linux we ship a fat toolchain with 2 sets of binaries defaulting to |
2758 # x86-32 (mostly because of the 32 bit chrome bots). So the default | 2758 # x86-32 (mostly because of the 32 bit chrome bots). So the default |
2759 # bin dir is 32, and the bin64 driver runs the 64 bit binaries | 2759 # bin dir is 32, and the bin64 driver runs the 64 bit binaries |
2760 if ${HOST_ARCH_X8664} && ${BUILD_PLATFORM_LINUX}; then | 2760 if ${HOST_ARCH_X8664} && ${BUILD_PLATFORM_LINUX}; then |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3351 | 3351 |
3352 if [ "$(type -t $1)" != "function" ]; then | 3352 if [ "$(type -t $1)" != "function" ]; then |
3353 #Usage | 3353 #Usage |
3354 echo "ERROR: unknown function '$1'." >&2 | 3354 echo "ERROR: unknown function '$1'." >&2 |
3355 echo "For help, try:" | 3355 echo "For help, try:" |
3356 echo " $0 help" | 3356 echo " $0 help" |
3357 exit 1 | 3357 exit 1 |
3358 fi | 3358 fi |
3359 | 3359 |
3360 "$@" | 3360 "$@" |
OLD | NEW |