From 06ff1e48eece6065d24cc1f6dfa18ae42562e605 Mon Sep 17 00:00:00 2001 From: Marco Vanotti Date: Fri, 1 Nov 2019 14:06:45 -0700 Subject: 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. --- docs/fuchsia/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs/fuchsia/README.md') 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": [ { -- cgit mrf-deployment