From 7ef1de9ea4b02a8799b3a7f4b1d7b06a586b3f37 Mon Sep 17 00:00:00 2001 From: Dokyung Song Date: Fri, 24 Aug 2018 16:28:05 -0700 Subject: sys/fuchsia: description for fuchsia.io FIDL interfaces --- docs/fuchsia.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs') 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 +``` -- cgit mrf-deployment