python3: update to 3.11.10
[openadk.git] / mk / go.mk
blob8b980b8a2525d1c722aff2def8109d62bfef2b0d
1 ifeq ($(ADK_TARGET_ARCH_ARM),y)
2 ADK_GO_ARCH:= aarch64
3 endif
4 ifeq ($(ADK_TARGET_ARCH_ARM),y)
5 ADK_GO_ARCH:= arm
6 endif
7 ifeq ($(ADK_TARGET_ARCH_MIPS),y)
8 ADK_GO_ARCH:= mips
9 endif
10 ifeq ($(ADK_TARGET_ARCH_MIPS64),y)
11 ADK_GO_ARCH:= mips64
12 endif
13 ifeq ($(ADK_TARGET_ARCH_PPC64),y)
14 ADK_GO_ARCH:= ppc64
15 endif
16 ifeq ($(ADK_TARGET_ARCH_X86),y)
17 ADK_GO_ARCH:= i386
18 endif
19 ifeq ($(ADK_TARGET_ARCH_X86_64),y)
20 ADK_GO_ARCH:= amd64
21 endif
22 ADK_GO_ROOT:= $(STAGING_HOST_DIR)/usr/lib/go
23 ADK_GO_PATH:= $(STAGING_HOST_DIR)/usr/lib/gopath
24 ADK_GO_BINPATH:= $(ADK_GO_PATH)/bin/linux_$(ADK_GO_ARCH)
25 ADK_GO_TOOLDIR:= $(ADK_GO_ROOT)/pkg/tool/linux_$(ADK_GO_ARCH)
26 ADK_GO:= $(ADK_GO_ROOT)/bin/go
27 ADK_GO_TARGET_ENV:= CGO_ENABLED=1 \
28 GOARCH=$(ADK_GO_ARCH) \
29 GOROOT="$(ADK_GO_ROOT)" \
30 GOPATH="$(ADK_GO_PATH)" \
31 CC="$(TARGET_CC)" \
32 CXX="$(TARGET_CXX)" \
33 GOTOOLDIR="$(ADK_GO_TOOLDIR)"