diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/fuchsia.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/fuchsia.md b/docs/fuchsia.md index 69f106070..44b6eeaff 100644 --- a/docs/fuchsia.md +++ b/docs/fuchsia.md @@ -44,3 +44,18 @@ Run `syz-manager` with a config along the lines of: } } ``` + + +## How to generate syscall description for FIDL + +FIDL files should first be compiled into FIDL intermediate representation (JSON) files using `fidlc`: + +```bash +/fuchsia/out/x64/host_x64/fidlc --json /tmp/io.json --files /fuchsia/zircon/system/fidl/fuchsia-io/io.fidl +``` + +Then run FIDL compiler backend `fidlgen` with syzkaller generator, which compiles a FIDL IR file into a syscall description file: + +```bash +/fuchsia/out/x64/host_x64/fidlgen -generators syzkaller -json /tmp/io.json -output-base fidl_io -include-base fidl_io +``` |
