diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-02-20 23:08:39 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-02-20 23:08:44 +0100 |
commit | ee4fdb76d5fc14ce338d67314c58a757235a6fd0 (patch) | |
tree | c42cb92b942bfbca4fc0324e6142dc123a1fe95c /mk | |
parent | 6eac6fcd18e2d6adc52ad323ffd485fc3f37d6dc (diff) |
add new package hugo, this requires google go. logic mostly from buildroot
Diffstat (limited to 'mk')
-rw-r--r-- | mk/go.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mk/go.mk b/mk/go.mk new file mode 100644 index 000000000..8b980b8a2 --- /dev/null +++ b/mk/go.mk @@ -0,0 +1,34 @@ +ifeq ($(ADK_TARGET_ARCH_ARM),y) +ADK_GO_ARCH:= aarch64 +endif +ifeq ($(ADK_TARGET_ARCH_ARM),y) +ADK_GO_ARCH:= arm +endif +ifeq ($(ADK_TARGET_ARCH_MIPS),y) +ADK_GO_ARCH:= mips +endif +ifeq ($(ADK_TARGET_ARCH_MIPS64),y) +ADK_GO_ARCH:= mips64 +endif +ifeq ($(ADK_TARGET_ARCH_PPC64),y) +ADK_GO_ARCH:= ppc64 +endif +ifeq ($(ADK_TARGET_ARCH_X86),y) +ADK_GO_ARCH:= i386 +endif +ifeq ($(ADK_TARGET_ARCH_X86_64),y) +ADK_GO_ARCH:= amd64 +endif +ADK_GO_ROOT:= $(STAGING_HOST_DIR)/usr/lib/go +ADK_GO_PATH:= $(STAGING_HOST_DIR)/usr/lib/gopath +ADK_GO_BINPATH:= $(ADK_GO_PATH)/bin/linux_$(ADK_GO_ARCH) +ADK_GO_TOOLDIR:= $(ADK_GO_ROOT)/pkg/tool/linux_$(ADK_GO_ARCH) +ADK_GO:= $(ADK_GO_ROOT)/bin/go +ADK_GO_TARGET_ENV:= CGO_ENABLED=1 \ + GOARCH=$(ADK_GO_ARCH) \ + GOROOT="$(ADK_GO_ROOT)" \ + GOPATH="$(ADK_GO_PATH)" \ + CC="$(TARGET_CC)" \ + CXX="$(TARGET_CXX)" \ + GOTOOLDIR="$(ADK_GO_TOOLDIR)" + |