Sync zbi-rs implementation.

Bump zerocopy usage to v0.8

Bug: 383783832
Bug: 372549215
Change-Id: I5b6c7312dc834d490de0ff54703e289f3295e2c6
5 files changed
tree: 29849d201198e1e1b13d71a28a7cd866f09cbe03
  1. pkg/
  2. src/
  3. BUILD
  4. BUILD.zbi.bazel
  5. README.md
  6. TEST_MAPPING
README.md

Fuchsia SDK

This directory contains a subset of the Fuchsia Integrator Development Kit (IDK) downloaded from the public CIPD artifacts.

Currently the only need is for some definitions in the pkg/ subdirectory, so to save a few GiB of storage that's all we include here. If necessary this could be expanded to include the full IDK.

Updating

Example command to download the f22 version:

# Replace "f22" below with the desired CIPD version.
$ echo "fuchsia/sdk/core/linux-amd64 f22" | cipd ensure -ensure-file - -root download/

# Copy out the files we need and delete the rest.
$ mv download/pkg pkg
$ rm -rf download/

Getting zbi-rs library sources:

$ git clone -n --filter=tree:0 https://fuchsia.googlesource.com/fuchsia
$ cd fuchsia/
$ git sparse-checkout set src/firmware/lib/zbi-rs
$ git checkout origin/releases/f22
$ mv src/ ../
$ cd ..
$ rm -rf ./fuchsia/