From 700f14a4ab9f27e16c542d6a60a5ffa6a24b706c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 10 Oct 2018 19:38:02 +0200 Subject: Update setup.md Update Go instructions for newer toolchain. GOPATH and GOROOT are now optional, and we also need to add GOPATH/bin to PATH. --- docs/linux/setup.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'docs/linux') diff --git a/docs/linux/setup.md b/docs/linux/setup.md index 0b484e485..4f18157cf 100644 --- a/docs/linux/setup.md +++ b/docs/linux/setup.md @@ -66,16 +66,14 @@ For some details on fuzzing the kernel on an Android device check out [this page ### Syzkaller -The syzkaller tools are written in [Go](https://golang.org), so a Go compiler (>= 1.8) is needed -to build them. +`syzkaller` is written in [Go](https://golang.org), a `Go 1.9+` toolchain is required for build. Go distribution can be downloaded from https://golang.org/dl/. -Unpack Go into a directory, say, `$HOME/go`. -Then, set `GOROOT=$HOME/go` env var. -Then, add Go binaries to `PATH`, `PATH=$HOME/go/bin:$PATH`. -Then, set `GOPATH` env var to some empty dir, say `GOPATH=$HOME/gopath`. +Unpack Go into a directory, say, `$HOME/goroot`. +Then, add Go binaries to `PATH`, `PATH=$HOME/goroot/bin:$HOME/go/bin:$PATH`. Then, run `go get -u -d github.com/google/syzkaller/...` to checkout syzkaller sources. -Then, `cd $GOPATH/src/github.com/google/syzkaller` and -build with `make`, which generates compiled binaries in the `bin/` folder. +Then, `cd $HOME/go/src/github.com/google/syzkaller` and build with `make`, +which generates compiled binaries in the `bin/` dir. +See [Go Getting Started](https://golang.org/doc/install) for details. Note: if you want to do cross-OS/arch testing, you need to specify `TARGETOS`, `TARGETVMARCH` and `TARGETARCH` arguments to `make`. See the [Makefile](/Makefile) for details. -- cgit mrf-deployment