Commit 30c384ab authored by James Robinson's avatar James Robinson Committed by Commit Bot

[tools/fuchsia] Update local-sdk.py for upstream changes

The Fuchsia build reshuffled to unify architecture naming between
internal components, so this updates local-sdk.py to reflect those
changes.

Change-Id: I7534d0a339b99cc0baeeeb5734e3edb63fe97d96
Reviewed-on: https://chromium-review.googlesource.com/951637Reviewed-by: default avatarWez <wez@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541268}
parent 07861913
......@@ -31,8 +31,8 @@ def EnsureEmptyDir(path):
os.makedirs(path)
def BuildForArch(project, arch):
Run('scripts/build-zircon.sh', '-p', project)
def BuildForArch(arch):
Run('scripts/build-zircon.sh', '-t', arch)
Run('build/gn/gen.py', '--target_cpu=' + arch,
'--packages=garnet/packages/sdk', '--release')
Run('buildtools/ninja', '-C', 'out/release-' + arch)
......@@ -58,8 +58,8 @@ def main(args):
# Switch to the Fuchsia tree and build an SDK.
os.chdir(fuchsia_root)
BuildForArch('x86', 'x86-64')
BuildForArch('arm64', 'aarch64')
BuildForArch('x64')
BuildForArch('arm64')
tempdir = tempfile.mkdtemp()
sdk_tar = os.path.join(tempdir, 'fuchsia-sdk.tgz')
......
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