Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(984)

Side by Side Diff: pnacl/build.sh

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Minor style changes. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 sysinfo=0 \ 1815 sysinfo=0 \
1816 arm-ncval-core 1816 arm-ncval-core
1817 rm -rf "${INSTALL_ROOT}/tools-x86" 1817 rm -rf "${INSTALL_ROOT}/tools-x86"
1818 mkdir "${INSTALL_ROOT}/tools-x86" 1818 mkdir "${INSTALL_ROOT}/tools-x86"
1819 cp ${SCONS_OUT}/opt-linux-x86-32-to-arm/obj/src/trusted/validator_arm/\ 1819 cp ${SCONS_OUT}/opt-linux-x86-32-to-arm/obj/src/trusted/validator_arm/\
1820 arm-ncval-core ${INSTALL_ROOT}/tools-x86 1820 arm-ncval-core ${INSTALL_ROOT}/tools-x86
1821 spopd 1821 spopd
1822 else 1822 else
1823 StepBanner "MISC-ARM" "Skipping ARM validator (Not yet supported on Mac)" 1823 StepBanner "MISC-ARM" "Skipping ARM validator (Not yet supported on Mac)"
1824 fi 1824 fi
1825
1826 if ${BUILD_PLATFORM_LINUX} ; then
1827 StepBanner "MISC-MIPS" "Building validator (MIPS32)"
1828 spushd "${NACL_ROOT}"
1829 RunWithLog mips_ncval_core \
1830 ./scons MODE=opt-host \
1831 targetplatform=mips32 \
1832 sysinfo=0 \
1833 mips-ncval-core
1834 cp scons-out/opt-linux-x86-32-to-mips32/obj/src/trusted/validator_mips/\
Brad Chen 2012/05/04 20:16:11 ${SCONS-OUT}, as in the clause above for ARM? Also
robertm 2012/05/04 20:52:44 I think it would be good to factor the code into a
petarj 2012/05/08 14:54:19 Ok, we will refactor it this way.
1835 mips-ncval-core ${INSTALL_ROOT}/tools-x86/mips-ncval-core
1836 spopd
1837 else
1838 StepBanner "MISC-MIPS" "Skipping MIPS validator (Not yet supported on Mac)"
1839 fi
1825 } 1840 }
1826 1841
1827 ######################################################################### 1842 #########################################################################
1828 # < LIBELF > 1843 # < LIBELF >
1829 ######################################################################### 1844 #########################################################################
1830 #+ libelf-host - Build and install libelf (using the host CC) 1845 #+ libelf-host - Build and install libelf (using the host CC)
1831 libelf-host() { 1846 libelf-host() {
1832 StepBanner "LIBELF-HOST" "Building and installing libelf" 1847 StepBanner "LIBELF-HOST" "Building and installing libelf"
1833 1848
1834 local extra_headers=false 1849 local extra_headers=false
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
4020 #Usage 4035 #Usage
4021 echo "ERROR: unknown function '$1'." >&2 4036 echo "ERROR: unknown function '$1'." >&2
4022 echo "For help, try:" 4037 echo "For help, try:"
4023 echo " $0 help" 4038 echo " $0 help"
4024 exit 1 4039 exit 1
4025 fi 4040 fi
4026 4041
4027 hg-migrate 4042 hg-migrate
4028 4043
4029 "$@" 4044 "$@"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698