From 5386cb24d9320c6fbf0a3ac111c23532838520f2 Mon Sep 17 00:00:00 2001 From: "olonho@google.com" Date: Tue, 3 Apr 2012 16:14:52 +0000 Subject: Support for ARM NaCl untrusted runtime build. This one depends on https://chromiumcodereview.appspot.com/9816003/ on NaCl side and indeed produces working untrusted runtime. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2687 TEST=Compile for ARM with "GYP_DEFINES="target_arch=arm sysroot=~/rootfs/" and run DOSBox with produced untrusted runtime. Review URL: https://chromiumcodereview.appspot.com/9838005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130386 0039d316-1c4b-4281-b951-d872f2087c98 --- build/download_nacl_toolchains.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build/download_nacl_toolchains.py') diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py index 2fdfa00..6b00841 100755 --- a/build/download_nacl_toolchains.py +++ b/build/download_nacl_toolchains.py @@ -34,8 +34,18 @@ def Main(args): # gclient sync time for developers, or standard Chrome bots. if '--optional-pnacl' in args: args.remove('--optional-pnacl') + # By default we don't use PNaCl toolchain yet, unless on ARM, where + # there is no other toolchain to build untrusted code at the moment. + # So analyze if we're building for ARM, or on SDK buildbot. + # TODO(olonho): we need to invent more reliable way to get build + # configuration info, to know if we're building for ARM. + use_pnacl = False + if 'target_arch=arm' in os.environ.get('GYP_DEFINES', ''): + use_pnacl = True buildbot_name = os.environ.get('BUILDBOT_BUILDERNAME', '') if buildbot_name.find('pnacl') >= 0 and buildbot_name.find('sdk') >= 0: + use_pnacl = True + if use_pnacl: print '\n*** DOWNLOADING PNACL TOOLCHAIN ***\n' else: args.append('--no-pnacl') @@ -46,4 +56,3 @@ def Main(args): if __name__ == '__main__': sys.exit(Main(sys.argv[1:])) - -- cgit v1.1