aboutsummaryrefslogtreecommitdiffstats
path: root/docs/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-10-10 19:38:02 +0200
committerGitHub <noreply@github.com>2018-10-10 19:38:02 +0200
commit700f14a4ab9f27e16c542d6a60a5ffa6a24b706c (patch)
tree0879497feacd6bb6e1509250ada2bb05b756dbf2 /docs/linux
parent724151015756780b9b79d5c384a3af96c41ac209 (diff)
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.
Diffstat (limited to 'docs/linux')
-rw-r--r--docs/linux/setup.md14
1 files changed, 6 insertions, 8 deletions
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.