summaryrefslogtreecommitdiff
diff options
authorMichael Vogt <mvo@ubuntu.com>2016-02-24 17:21:03 +0100
committerMichael Vogt <mvo@ubuntu.com>2016-02-24 17:21:03 +0100
commit676f02f24f296f20c3359c718bc4d2047673fb47 (patch)
tree2b3ea684b458bbfd743f5f2a9e643753d7543e4b
parent6305a9c4c41cff9420a435655a9e771533eb01ea (diff)
add docs for arm64 cross buildingfeature/arm64-crossbuild
-rw-r--r--docs/cross-build.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/cross-build.md b/docs/cross-build.md
index 317cf23a73..e2fe272f6c 100644
--- a/docs/cross-build.md
+++ b/docs/cross-build.md
@@ -1,3 +1,5 @@
+= armhf =
+
To cross build for arm you need to install:
sudo apt-get install golang-go-linux-arm
@@ -16,3 +18,18 @@ As usual, for one-off commands you can simply prepend the environment
to the command, e.g.
GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -o snappy_armhf github.com/ubuntu-core/snappy/cmd/snappy
+
+
+= arm64 =
+
+Install:
+
+ sudo apt-get install gcc-aarch64-linux-gnu
+
+Setup the environment:
+
+ export GOARCH=arm64 CC=aarch64-linux-gnu-gcc CGO_ENABLED=1
+
+And then run:
+
+ go build -o snappy_arm64 github.com/ubuntu-core/snappy/cmd/snappy