aboutsummaryrefslogtreecommitdiffstats
path: root/docs/part-2
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-12 16:18:11 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-12 16:18:14 +0200
commit2b376fa3b7635a457daa176096ccc434b6e160e1 (patch)
tree6dfda4d65e369c7b5e85ec2927639630c11b5754 /docs/part-2
parentd785f11d117ab731d93d438d52cfd92476e0a870 (diff)
Update cross-build steps.
Diffstat (limited to 'docs/part-2')
-rw-r--r--docs/part-2/2_xds-agent.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/docs/part-2/2_xds-agent.md b/docs/part-2/2_xds-agent.md
index fa58c35..c66d50f 100644
--- a/docs/part-2/2_xds-agent.md
+++ b/docs/part-2/2_xds-agent.md
@@ -69,6 +69,8 @@ You can now use XDS dashboard and check that connection with `xds-agent` is up.
Install and setup [Go](https://golang.org/doc/install) version 1.8 or
higher to compile this tool.
+>**NOTE:** for Ubuntu, you can use a PPA, see [https://github.com/golang/go/wiki/Ubuntu](https://github.com/golang/go/wiki/Ubuntu)
+
### Building
Clone this repo into your `$GOPATH/src/github.com/iotbzh` and use delivered Makefile:
@@ -94,7 +96,20 @@ make install
#### Cross build
-For example on a Linux machine to cross-build for Windows, just execute:
+For example on a Linux machine to cross-build for Windows, just follow these steps.
+
+The first time you need to install all the windows-amd64 standard packages on
+your system with
+
+```bash
+# List all supported OS / ARCH
+go tool dist list
+
+# Install all standard packages for another OS/ARCH (eg. windows amd64)
+GOOS=windows GOARCH=amd64 go install -v -a std
+```
+
+Then compile and package xds-agent using provided makefile
```bash
export GOOS=windows