diff options
| author | Marco Vanotti <mvanotti@google.com> | 2019-11-01 14:06:45 -0700 |
|---|---|---|
| committer | Marco Vanotti <mvanotti@users.noreply.github.com> | 2019-12-09 15:13:49 -0800 |
| commit | 06ff1e48eece6065d24cc1f6dfa18ae42562e605 (patch) | |
| tree | b879aea4097bac69393b1f02eaa12a99849d514b /docs | |
| parent | 607350e438a212477ce42ba3e85e82bc570d459a (diff) | |
docs/fuchsia: Build syz-executor inside fuchsia.
This commit documents how to build syz-executor as part of fuchsia.
Basically you just need to add two flags to the fx set command: one for
adding syz-executor, and one for telling fuchsia to use your local
syzkaller repository instead of the one in third_party.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/fuchsia/README.md | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/fuchsia/README.md b/docs/fuchsia/README.md index 5c65ea405..62e878914 100644 --- a/docs/fuchsia/README.md +++ b/docs/fuchsia/README.md @@ -19,14 +19,20 @@ The rest of the document will use the following environment variables: To build fuchsia run: ```shell -$ fx --dir "out/arm64" set core.arm64 --with-base "//bundles:tools" +$ fx --dir "out/arm64" set core.arm64 \ + --with-base "//bundles:tools" \ + --with-base "//src/testing/fuzzing/syzkaller" \ + --args=syzkaller_dir='"/full/path/to/syzkaller"' $ fx clean-build ``` And ```shell -$ fx --dir "out/x64" set core.x64 --with-base "//bundles:tools" +$ fx --dir "out/x64" set core.x64 \ + --with-base "//bundles:tools" \ + --with-base "//src/testing/fuzzing/syzkaller" \ + --args=syzkaller_dir='"/full/path/to/syzkaller"' $ fx clean-build ``` @@ -109,7 +115,6 @@ $SOURCEDIR/out/x64/host_x64/fidlgen -generators syzkaller -json /tmp/io.json -ou To run `syz-ci` locally for Fuchsia, you need: -- Go 1.12 toolchain (in `/go1.12` dir in the example below) - bootstrapped Fuchsia checkout (in `/bootstrap/fuchsia` dir in the example below) - bootstrap `syz-ci` binary (in the current dir, build with `make ci`) - `syz-ci` config similar to the one below (in `ci.cfg` file in the current dir) @@ -119,7 +124,6 @@ To run `syz-ci` locally for Fuchsia, you need: "name": "testci", "http": ":50000", "manager_port_start": 50001, - "goroot": "/go1.12", "syzkaller_repo": "https://github.com/google/syzkaller.git", "managers": [ { |
