tree: 371be85576b6d7c8519c2bba1e45a0c1c2a38fe9 [path history] [tgz]
  1. manifests/
  2. package/
  3. sdk/
  4. sysroot_extra/
  5. toolchain/
  6. tools/
  7. build.sh
  8. README.md
fuchsia-build/README.md

Build

Run the following command:

./fuchsia-build/build.sh

Upload

Run the following command:

./fuchsia-build/build.sh --upload

Manual Setup

Fetch submodule:

NOTE: git submodule not used because AOSP doesn't allow it.

git clone https://fuchsia.googlesource.com/fuchsia-infra-bazel-rules fuchsia-build/third_party/fuchsia-infra-bazel-rules

Bootstrap:

fuchsia-build/third_party/fuchsia-infra-bazel-rules/scripts/bootstrap.sh

Fetch the toolchain (separately from the SDK):

./.cipd_client ensure -root fuchsia-build/toolchain/clang -ensure-file fuchsia-build/manifests/clang.ensure

Building with a local SDK

If you are iterating on changes within fuchsia you can include the local SDK with the following steps.

Add the sdk to your fuchsia build rules:

fx add-test //sdk:final_fuchsia_sdk_head_only

Build the fuchsia sdk:

fx build //sdk:final_fuchsia_sdk

Build this repository with -override:

./fuchsia-build/build.sh --override