Skip to content

Commit

Permalink
Merge ea21f36 into 8753139
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz authored Feb 16, 2024
2 parents 8753139 + ea21f36 commit 2344289
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions docs/guides/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,27 @@ permanently, you need to make the following changes:
## Installing ZAP tool
`bootstrap.sh` will download a compatible ZAP tool version and set it up in
`$PATH`. If you want to install or use a different version of the tool, you may
download one from the ZAP project's
[Releases](https://github.com/project-chip/zap/releases) page.
For platforms defined in [`scripts/setup/zap.json`](/scripts/setup/zap.json),
`bootstrap.sh` will download a compatible ZAP tool version from CIPD and set it
up in `$PATH`.
### Linux ARM
ZAP releases are copied to CIPD by an automated bot. You can check if a release
was copied by looking at tags created at
[here](https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/zap) in
various platforms.
### Custom ZAP
Zap does not provide binary releases for arm. Rosetta solves this for Darwin,
however for linux arm you will have to use a local ZAP, generally through
setting `$ZAP_DEVELOPMENT_PATH` (see the section `Which zap to use` below).
If you want to install or use a different version of the tool, you may download
one from the ZAP project's
[Releases](https://github.com/project-chip/zap/releases) page or build it from
source.
The file `scripts/setup/zap.json` contains the version that CIPD would download,
so you can download a compatible version from the zap project
[Releases](https://github.com/project-chip/zap/releases). To checkout as source
code the corresponding tag should exist in the zap
so you can refer to it to find a compatible version. The version is also
maintained at [`scripts/setup/zap.version`](/scripts/setup/zap.version).
To checkout as source code, the corresponding tag should exist in the zap
[repository tags](https://github.com/project-chip/zap/tags) list.
Example commands:
Expand All @@ -188,7 +194,7 @@ RUN set -x \
ENV ZAP_DEVELOPMENT_PATH=/opt/zap-${ZAP_VERSION}
```

### Which ZAP to use
### ZAP environment variables

The ZAP tool scripting uses the following detection, in order of importance:

Expand Down

0 comments on commit 2344289

Please sign in to comment.