commit | 4d172a17a966f7d4b3923ed07692df6818135560 | [log] [tgz] |
---|---|---|
author | Brett Wilson <brettw@chromium.org> | Tue Apr 10 16:02:05 2018 -0700 |
committer | Brett Wilson <brettw@chromium.org> | Tue Apr 10 16:02:53 2018 -0700 |
tree | 4590a9515126ca003a9bf4a14d40e4f3151e6d05 | |
parent | 7a24cd8c6afbbaf86acedc33fd59ffad9ae7ca4d [diff] |
[prebuilt] Update GN to version 549249 12bd7ed6ad77 [gn] Updating args --list to make the comment padding optional 743a7a884c8d Fix grammar-o in gn's help. 28f3c4987aac Implement "friend" for GN header checking. f7ccdc763eb5 GN: Use source root as base for gn gen filters 73b7854e6d4c GN: Improve bootstrap for Windows Change-Id: I059e20f5031a3a21c6096ff506437e1ebe27f29c
This repository contains the hashes of a number of prebuilt tools that are used to build Fuchsia-related projects. The actual tools themselves are located in Google Storage.
In most cases, the jiri
tool will download the build tools automatically during its update
step. To download the tools manually, run update.sh
.
NOTE: These instructions are for Googlers only.
The tarballs are uploaded with the “gsutil” program. See https://cloud.google.com/storage/docs/gsutil
There's a link there to download and install the Google Cloud SDK: https://cloud.google.com/sdk/docs/
After installing the SDK you need to initialize/authenticate: https://cloud.google.com/storage/docs/gsutil_install#authenticate
One of the steps will ask you for a cloud project. Choose loas-fuchsia-team.
At this point you can use gsutil to upload/download tarballs, view cloud directory contents, and so on.
Tarballs must have the tool name as the top level directory. E.g.,
bash$ tar tvf qemu.tar.bz2 drwxr-xr-x ... qemu/ drwxr-xr-x ... qemu/libexec/ ...
The uploaded file name is the sha1 hash of the tarball. It could also be a sha1 hash of the tarball contents, avoiding unnecessary spurious differences in uploads.
To compute the latter, one can do something like:
bash$ LC_ALL=POSIX cat $(find qemu/ -type f | sort) | shasum -a1
The sha1 hash is checked into the buildtools repo and supports adding new tarballs or rolling back to a previous one. See the *.sha1 files in buildtools/{mac,linux64}.
There are separate directories for mac and linux tarballs. E.g.,
bash$ ./bin/gsutil ls gs://fuchsia-build/fuchsia/qemu/mac gs://fuchsia-build/fuchsia/qemu/mac/ gs://fuchsia-build/fuchsia/qemu/mac/10d77d7df5b39440148ac3aab1a401ff42337a76 ... bash$ ./bin/gsutil ls gs://fuchsia-build/fuchsia/qemu/linux64 gs://fuchsia-build/fuchsia/qemu/linux64/ gs://fuchsia-build/fuchsia/qemu/linux64/10d77d7df5b39440148ac3aab1a401ff42337a76 ...