Run the following command:
./fuchsia-build/build.sh
Run the following command:
./fuchsia-build/build.sh --upload
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
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