Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries
@ 2018-11-07 20:12 Christian Stewart
  2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
  2018-11-07 22:27 ` [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Stewart @ 2018-11-07 20:12 UTC (permalink / raw)
  To: buildroot

Currently, GOARM is not specified correctly when compiling target binaries. This
results in incompatibility / illegal instruction issues on some ARM devices.

Signed-off-by: Christian Stewart <christian@paral.in>
---
 package/go/go.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/go/go.mk b/package/go/go.mk
index ec74ba397c..8423dc7eea 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -43,6 +43,7 @@ HOST_GO_ROOT = $(HOST_DIR)/lib/go
 HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH)
 HOST_GO_TARGET_ENV = \
 	GOARCH=$(GO_GOARCH) \
+	$(if $(GO_GOARM),GOARM=$(GO_GOARM)) \
 	GOROOT="$(HOST_GO_ROOT)" \
 	CC="$(TARGET_CC)" \
 	CXX="$(TARGET_CXX)" \
-- 
2.18.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-08 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-07 20:12 [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart
2018-11-07 20:12 ` [Buildroot] [PATCH 2/2] DEVELOPERS: add Christian Stewart for go Christian Stewart
2018-11-08 14:17   ` Anisse Astier
2018-11-08 20:01   ` Thomas Petazzoni
2018-11-07 22:27 ` [Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries Christian Stewart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox