xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/go/go-common.inc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Go programming language compiler"
2*4882a593SmuzhiyunDESCRIPTION = " The Go programming language is an open source project to make \
3*4882a593Smuzhiyun programmers more productive. Go is expressive, concise, clean, and\
4*4882a593Smuzhiyun efficient. Its concurrency mechanisms make it easy to write programs\
5*4882a593Smuzhiyun that get the most out of multicore and networked machines, while its\
6*4882a593Smuzhiyun novel type system enables flexible and modular program construction.\
7*4882a593Smuzhiyun Go compiles quickly to machine code yet has the convenience of\
8*4882a593Smuzhiyun garbage collection and the power of run-time reflection. It's a\
9*4882a593Smuzhiyun fast, statically typed, compiled language that feels like a\
10*4882a593Smuzhiyun dynamically typed, interpreted language."
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunHOMEPAGE = " http://golang.org/"
13*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyuninherit goarch
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunSRC_URI = "https://golang.org/dl/go${PV}.src.tar.gz;name=main"
18*4882a593SmuzhiyunS = "${WORKDIR}/go"
19*4882a593SmuzhiyunB = "${S}"
20*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.src\.tar"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunINHIBIT_PACKAGE_DEBUG_SPLIT = "1"
23*4882a593SmuzhiyunSSTATE_SCAN_CMD = "true"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunexport GOROOT_OVERRIDE = "1"
26*4882a593Smuzhiyunexport GOTMPDIR ?= "${WORKDIR}/build-tmp"
27*4882a593SmuzhiyunGOTMPDIR[vardepvalue] = ""
28*4882a593Smuzhiyunexport CGO_ENABLED = "1"
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunexport GOHOSTOS ?= "${BUILD_GOOS}"
31*4882a593Smuzhiyunexport GOHOSTARCH ?= "${BUILD_GOARCH}"
32*4882a593Smuzhiyunexport GOROOT_BOOTSTRAP ?= "${STAGING_LIBDIR_NATIVE}/go"
33*4882a593Smuzhiyunexport GOOS ?= "${TARGET_GOOS}"
34*4882a593Smuzhiyunexport GOARCH ?= "${TARGET_GOARCH}"
35*4882a593Smuzhiyunexport GOARM ?= "${TARGET_GOARM}"
36*4882a593Smuzhiyunexport GO386 ?= "${TARGET_GO386}"
37*4882a593Smuzhiyunexport GOMIPS ?= "${TARGET_GOMIPS}"
38*4882a593Smuzhiyunexport GOROOT_FINAL ?= "${libdir}/go"
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunexport GODEBUG = "gocachehash=1"
41*4882a593Smuzhiyun
42*4882a593Smuzhiyundo_compile:prepend() {
43*4882a593Smuzhiyun	BUILD_CC=${BUILD_CC}
44*4882a593Smuzhiyun}
45