aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDokyung Song <dokyungs@google.com>2018-08-24 16:28:05 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-08-27 14:01:34 -0700
commit7ef1de9ea4b02a8799b3a7f4b1d7b06a586b3f37 (patch)
tree6fe7dc7ff37464455243f7ea6ecebc00bfa4fa4a /docs
parent758cd203cb82b2fd04496478a05650321520c099 (diff)
sys/fuchsia: description for fuchsia.io FIDL interfaces
Diffstat (limited to 'docs')
-rw-r--r--docs/fuchsia.md15
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
+```