commit | c1408453246f0475547b6fe634c2f3dad71c6457 | [log] [tgz] |
---|---|---|
author | Petr Hosek <phosek@google.com> | Thu Aug 30 17:51:36 2018 -0700 |
committer | Petr Hosek <phosek@google.com> | Thu Aug 30 17:51:36 2018 -0700 |
tree | 2ea695e058e78a15efd1137c5ce222de37763df7 | |
parent | 8431b186768f4ea694631e0099f6413f84b6fdd3 [diff] |
[prebuilt] Roll GN 106b8238 Write pools for all targets in all toolchains 75eb3c72 Escape < and > in non-code markdown output. e49cb725 Minor help text consistency fixes. 94ca73e2 Make diagnostics colored when compiling gn. c4b86551 Update GN documentation. e134e493 Support specifying target and host platform in gen.py dd6a3831 Switch to libc++ on Linux c218b836 Don't use -- in exec_script 27ef6b4e Fix gn_unittests f8f395ac Remove sarcastic error message. Change-Id: Ide1e90dbbca5edbeb1e85276d171d4a4e7012327
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 ...