| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 | 597 |
| 598 download-toolchains() { | 598 download-toolchains() { |
| 599 ${GCLIENT} runhooks --force --verbose | 599 ${GCLIENT} runhooks --force --verbose |
| 600 } | 600 } |
| 601 | 601 |
| 602 #@ libs - install native libs and build bitcode libs | 602 #@ libs - install native libs and build bitcode libs |
| 603 libs() { | 603 libs() { |
| 604 libs-clean | 604 libs-clean |
| 605 libs-support newlib | 605 libs-support newlib |
| 606 newlib | 606 newlib |
| 607 for arch in arm x86-32 x86-64; do | 607 for arch in arm x86-32 x86-64 mips32; do |
| 608 dummy-irt-shim ${arch} | 608 dummy-irt-shim ${arch} |
| 609 done | 609 done |
| 610 compiler-rt-all | 610 compiler-rt-all |
| 611 libgcc_eh-newlib | 611 libgcc_eh-newlib |
| 612 libstdcpp newlib | 612 libstdcpp newlib |
| 613 } | 613 } |
| 614 | 614 |
| 615 #@ everything - Build and install untrusted SDK. no translator | 615 #@ everything - Build and install untrusted SDK. no translator |
| 616 everything() { | 616 everything() { |
| 617 sync-sources | 617 sync-sources |
| (...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2846 } | 2846 } |
| 2847 | 2847 |
| 2848 libs-support() { | 2848 libs-support() { |
| 2849 local libmode=$1 | 2849 local libmode=$1 |
| 2850 StepBanner "LIBS-SUPPORT" | 2850 StepBanner "LIBS-SUPPORT" |
| 2851 if [ ${libmode} == "newlib" ]; then | 2851 if [ ${libmode} == "newlib" ]; then |
| 2852 libs-support-newlib-crt1 | 2852 libs-support-newlib-crt1 |
| 2853 fi | 2853 fi |
| 2854 libs-support-bitcode $libmode | 2854 libs-support-bitcode $libmode |
| 2855 local arch | 2855 local arch |
| 2856 for arch in arm x86-32 x86-64; do | 2856 for arch in arm x86-32 x86-64 mips32; do |
| 2857 libs-support-native ${arch} | 2857 libs-support-native ${arch} |
| 2858 done | 2858 done |
| 2859 } | 2859 } |
| 2860 | 2860 |
| 2861 libs-support-newlib-crt1() { | 2861 libs-support-newlib-crt1() { |
| 2862 mkdir -p "${INSTALL_LIB_NEWLIB}" | 2862 mkdir -p "${INSTALL_LIB_NEWLIB}" |
| 2863 spushd "${PNACL_SUPPORT}" | 2863 spushd "${PNACL_SUPPORT}" |
| 2864 # Install crt1.x (linker script). | 2864 # Install crt1.x (linker script). |
| 2865 StepBanner "LIBS-SUPPORT-NEWLIB" "Install crt1.x (linker script)" | 2865 StepBanner "LIBS-SUPPORT-NEWLIB" "Install crt1.x (linker script)" |
| 2866 cp crt1.x "${INSTALL_LIB_NEWLIB}"/crt1.x | 2866 cp crt1.x "${INSTALL_LIB_NEWLIB}"/crt1.x |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3834 #Usage | 3834 #Usage |
| 3835 echo "ERROR: unknown function '$1'." >&2 | 3835 echo "ERROR: unknown function '$1'." >&2 |
| 3836 echo "For help, try:" | 3836 echo "For help, try:" |
| 3837 echo " $0 help" | 3837 echo " $0 help" |
| 3838 exit 1 | 3838 exit 1 |
| 3839 fi | 3839 fi |
| 3840 | 3840 |
| 3841 hg-migrate | 3841 hg-migrate |
| 3842 | 3842 |
| 3843 "$@" | 3843 "$@" |
| OLD | NEW |