mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-07 12:26:40 +00:00
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.
This commit is contained in:
parent
607350e438
commit
06ff1e48ee
@ -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": [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user