From 05817b7b91baa0f3c9c5772667b67da37f8e8ebe Mon Sep 17 00:00:00 2001 From: Marco Vanotti Date: Tue, 20 Nov 2018 19:11:16 -0800 Subject: docs: Add fuchsia syscall update process. This commits describes the steps required to update the syscall descriptions in syzkaller. --- docs/fuchsia.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/fuchsia.md b/docs/fuchsia.md index c5db3e26d..12483d2a6 100644 --- a/docs/fuchsia.md +++ b/docs/fuchsia.md @@ -16,7 +16,10 @@ fx set arm64 --packages garnet/packages/products/sshd fx full-build ``` -To update descriptions run: +Syscall descriptions live in the `sys/fuchsia` folder. To update a syscall, you need to modify the `.txt` file that contains it, make sure your new definition matches the one in zircon's [syscalls.abigen](https://fuchsia.googlesource.com/zircon/+/HEAD/system/public/zircon/syscalls.abigen) file. **If the syscall was used in `executor/common_fuchsia.h`, you need to update the usages there as well**. FIDL definitions do not need manual updating because they are extracted automatically with the commands below. + +Once you updated the syscalls definitions, everything can be regenerated by running: + ``` make extract TARGETOS=fuchsia SOURCEDIR=/path/to/fuchsia/checkout make generate -- cgit mrf-deployment