aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/go_elm32
diff options
context:
space:
mode:
Diffstat (limited to 'go/chromeos/go_elm32')
-rwxr-xr-xgo/chromeos/go_elm3211
1 files changed, 11 insertions, 0 deletions
diff --git a/go/chromeos/go_elm32 b/go/chromeos/go_elm32
new file mode 100755
index 00000000..2bcb3f3b
--- /dev/null
+++ b/go/chromeos/go_elm32
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Invoke the Go cross compiler for elm32.
+# Uses ../go_target to add PIE flags.
+#
+# This is just an example for an arm board.
+
+GOOS="linux" GOARCH="arm" CGO_ENABLED="1" \
+ CC="armv7a-cros-linux-gnueabi-clang" \
+ CXX="armv7a-cros-linux-gnueabi-clang++" \
+ exec go_target "$@"