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

Side by Side Diff: src/trusted/validator_arm/testdata-thumb/compile_tests.sh

Issue 7799013: Intial Thumb2 Sandbox (naclrev 6680) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix comma Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
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 set -eu 6 set -eu
7 7
8 # Get the path to the ARM cross-compiler. 8 # Get the path to the ARM cross-compiler.
9 # We use the trusted compiler because llvm-fake.py (used in the
10 # untrusted compiler) doesn't support -nodefaultlibs.
11 dir=$(pwd) 9 dir=$(pwd)
12 cd ../../../.. 10 cd ../../../..
13 eval "$(tools/llvm/setup_arm_trusted_toolchain.py)"
14 topdir=$(pwd) 11 topdir=$(pwd)
15 cd $dir 12 cd $dir
16 13
17 ldscript=$topdir/toolchain/pnacl_linux_x86_64/ldscripts/ld_script_arm_untrusted 14 tools="$topdir/toolchain/pnacl_linux_x86_64/arm-none-linux-gnueabi/bin"
sehr (please use chromium) 2011/09/20 18:24:15 I believe this path has changed to: $topdir/toolch
jasonwkim 2011/09/26 21:35:52 \domne
18 15 ldscript=ld_script_arm_thumb2_untrusted
19 readonly ARM_CROSS_COMPILER="${ARM_CC}" 16 readonly ARM_LD="$tools/arm-pc-nacl-ld"
17 readonly ARM_AS="$tools/arm-pc-nacl-as"
20 for test_file in *.S ; do 18 for test_file in *.S ; do
21 object_file=${test_file%.*}.o 19 object_file=${test_file%.*}.o
22 nexe_file=${test_file%.*}.nexe 20 nexe_file=${test_file%.*}.nexe
23 21 pre_file=${test_file%.*}.s
24 echo "compiling $test_file -> $nexe_file" 22 echo "compiling $test_file -> $nexe_file"
25 ${ARM_CROSS_COMPILER} \ 23 cpp $test_file -o $pre_file
26 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -c $test_file -o $object_file 24 ${ARM_AS} -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mthumb $pre_file \
25 -o $object_file
27 ${ARM_LD} -static -nodefaultlibs -nostdlib -T $ldscript \ 26 ${ARM_LD} -static -nodefaultlibs -nostdlib -T $ldscript \
28 $object_file -o $nexe_file 27 $object_file -o $nexe_file
28 rm $pre_file $object_file
29 done 29 done
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698