aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/go_daisy
diff options
context:
space:
mode:
Diffstat (limited to 'go/chromeos/go_daisy')
-rwxr-xr-xgo/chromeos/go_daisy11
1 files changed, 11 insertions, 0 deletions
diff --git a/go/chromeos/go_daisy b/go/chromeos/go_daisy
new file mode 100755
index 00000000..db4a95ac
--- /dev/null
+++ b/go/chromeos/go_daisy
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Invoke the Go cross compiler for daisy.
+# 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-gcc" \
+ CXX="armv7a-cros-linux-gnueabi-g++" \
+ exec go_target "$@"