From 62114d6064c895ae34f1ac232b2fdc94e7329dae Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 19 Sep 2017 11:00:40 +0200 Subject: Makefile: build target binaries into separate dirs We currently build binaries for all targets into bin. This makes mess in bin/ and does not allow testing of different archs. Build target binaries into bin/OS_ARCH/ subdirs. Host binaries are still built into bin/. Update #333 Update #324 Update #191 --- docs/setup_generic.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/setup_generic.md') diff --git a/docs/setup_generic.md b/docs/setup_generic.md index 39b77d761..1655c8a63 100644 --- a/docs/setup_generic.md +++ b/docs/setup_generic.md @@ -63,8 +63,8 @@ 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`. -Then, run `go get -u -d github.com/google/syzkaller/...` to checkout syzkaller sources with all dependencies. +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. - -To build additional syzkaller tools run `make all-tools`. +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