summaryrefslogtreecommitdiffstats
path: root/build/download_nacl_toolchains.py
diff options
context:
space:
mode:
authordyen@chromium.org <dyen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-02 01:04:00 +0000
committerdyen@chromium.org <dyen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-02 01:04:00 +0000
commiteaf21101b4e9f66f42b780f9220d80888fe542ad (patch)
treeaebea29f71f321223603080261ce7674c3c678d3 /build/download_nacl_toolchains.py
parenta6221f97ac8736bbc05f36499751f673c87b748e (diff)
downloadchromium_src-eaf21101b4e9f66f42b780f9220d80888fe542ad.zip
chromium_src-eaf21101b4e9f66f42b780f9220d80888fe542ad.tar.gz
chromium_src-eaf21101b4e9f66f42b780f9220d80888fe542ad.tar.bz2
Chromium NaCl scripts now uses package_version to extract.
Updates NaCl revision from 13106 -> 13115 This CL reverts revision 266284. Now that we have split up the toolchain into multiple tars, we should use the package versioning script to manage which tars to extract. Unfortunately, currently the SDK uses different directory names compared to what the NaCl toolchain directories normally use, so we also must map and move the toolchain directories to the SDK ones. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3839 Review URL: https://codereview.chromium.org/261773002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/download_nacl_toolchains.py')
-rwxr-xr-xbuild/download_nacl_toolchains.py28
1 files changed, 12 insertions, 16 deletions
diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py
index 3a4cb1b..4895c1a 100755
--- a/build/download_nacl_toolchains.py
+++ b/build/download_nacl_toolchains.py
@@ -17,16 +17,16 @@ def Main(args):
src_dir = os.path.dirname(script_dir)
nacl_dir = os.path.join(src_dir, 'native_client')
nacl_build_dir = os.path.join(nacl_dir, 'build')
- download_script = os.path.join(nacl_build_dir, 'download_toolchains.py')
- if not os.path.exists(download_script):
- print "Can't find '%s'" % download_script
+ package_version_dir = os.path.join(nacl_build_dir, 'package_version')
+ package_version = os.path.join(package_version_dir, 'package_version.py')
+ if not os.path.exists(package_version):
+ print "Can't find '%s'" % package_version
print 'Presumably you are intentionally building without NativeClient.'
print 'Skipping NativeClient toolchain download.'
sys.exit(0)
- sys.path.insert(0, nacl_build_dir)
- import download_toolchains
+ sys.path.insert(0, package_version_dir)
+ import package_version
- # TODO (robertm): Finish getting PNaCl ready for prime time.
# BUG:
# We remove this --optional-pnacl argument, and instead replace it with
# --no-pnacl for most cases. However, if the bot name is an sdk
@@ -41,21 +41,17 @@ def Main(args):
if use_pnacl:
print '\n*** DOWNLOADING PNACL TOOLCHAIN ***\n'
else:
- args.append('--no-pnacl')
+ args.extend(['--exclude', 'pnacl_newlib'])
# Only download the ARM gcc toolchain if we are building for ARM
# TODO(olonho): we need to invent more reliable way to get build
# configuration info, to know if we're building for ARM.
- if 'target_arch=arm' in os.environ.get('GYP_DEFINES', ''):
- args.append('--arm-untrusted')
+ if 'target_arch=arm' not in os.environ.get('GYP_DEFINES', ''):
+ args.extend(['--exclude', 'nacl_arm_newlib'])
- # Append the name of the file to use as a version and hash source.
- # NOTE: While not recommended, it is possible to redirect this file to
- # a chrome location to avoid branching NaCl if just a toolchain needs
- # to be bumped.
- args.append(os.path.join(nacl_dir, 'TOOL_REVISIONS'))
-
- download_toolchains.main(args)
+ args.append('sync')
+ args.append('--extract')
+ package_version.main(args)
return 0