Commit cb431928 authored by bradnelson@google.com's avatar bradnelson@google.com

Adding a special toolchain that will work with chromeos.

BUG=http://code.google.com/p/chromium-os/issues/detail?id=19719
TEST=None
R=noelallen@google.com,zelidrag@google.com
Review URL: http://codereview.chromium.org/7761004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98492 0039d316-1c4b-4281-b951-d872f2087c98
parent 1d4ecf49
...@@ -7,7 +7,7 @@ vars = { ...@@ -7,7 +7,7 @@ vars = {
"webkit_revision": "93861", "webkit_revision": "93861",
"chromium_git": "http://git.chromium.org/git", "chromium_git": "http://git.chromium.org/git",
"swig_revision": "69281", "swig_revision": "69281",
"nacl_revision": "6539", "nacl_revision": "6562",
# After changing nacl_revision, run 'glient sync' and check native_client/DEPS # After changing nacl_revision, run 'glient sync' and check native_client/DEPS
# to update other nacl_*_revision's. # to update other nacl_*_revision's.
# TODO(brettw) We should use the "From" syntax to avoid hardcoding the # TODO(brettw) We should use the "From" syntax to avoid hardcoding the
......
...@@ -9,7 +9,17 @@ import os ...@@ -9,7 +9,17 @@ import os
import sys import sys
def Main(): def Main(args):
# Handle chromeos=1 specially (until its building its own toolchain).
if 'chromeos=1' in os.environ.get('GYP_DEFINES', ''):
args = [
'--nacl-newlib-only',
'--file-hash', 'linux_x86_newlib',
'8337d5ec327d857a49b500723ec9b792f4973abc',
'--base-url', ('https://commondatastorage.googleapis.com/'
'nativeclient-archive2/special_chromeos'),
'--x86-version', '6561',
]
script_dir = os.path.dirname(os.path.abspath(__file__)) script_dir = os.path.dirname(os.path.abspath(__file__))
src_dir = os.path.dirname(script_dir) src_dir = os.path.dirname(script_dir)
nacl_dir = os.path.join(src_dir, 'native_client') nacl_dir = os.path.join(src_dir, 'native_client')
...@@ -22,8 +32,8 @@ def Main(): ...@@ -22,8 +32,8 @@ def Main():
sys.exit(0) sys.exit(0)
sys.path.insert(0, nacl_build_dir) sys.path.insert(0, nacl_build_dir)
import download_toolchains import download_toolchains
download_toolchains.Main() download_toolchains.Main(args)
if __name__ == '__main__': if __name__ == '__main__':
Main() Main(sys.argv[1:])
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
}, },
], ],
}], }],
['OS!="win" and target_arch=="ia32" and chromeos==0', { ['OS!="win" and target_arch=="ia32"', {
# Linux-x86-32 and OSX need only the x86-32 IRT. # Linux-x86-32 and OSX need only the x86-32 IRT.
'actions': [ 'actions': [
{ {
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
}, },
], ],
}], }],
['OS!="win" and target_arch=="x64" and chromeos==0', { ['OS!="win" and target_arch=="x64"', {
# Linux-x86-64 needs only the x86-64 IRT. # Linux-x86-64 needs only the x86-64 IRT.
'actions': [ 'actions': [
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment