summaryrefslogtreecommitdiffstats
path: root/recipes-containers/kubernetes/go-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/kubernetes/go-common.inc')
-rw-r--r--recipes-containers/kubernetes/go-common.inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-containers/kubernetes/go-common.inc b/recipes-containers/kubernetes/go-common.inc
new file mode 100644
index 00000000..93a3d3b5
--- /dev/null
+++ b/recipes-containers/kubernetes/go-common.inc
@@ -0,0 +1,32 @@
1SUMMARY = "Go programming language compiler"
2DESCRIPTION = " The Go programming language is an open source project to make \
3 programmers more productive. Go is expressive, concise, clean, and\
4 efficient. Its concurrency mechanisms make it easy to write programs\
5 that get the most out of multicore and networked machines, while its\
6 novel type system enables flexible and modular program construction.\
7 Go compiles quickly to machine code yet has the convenience of\
8 garbage collection and the power of run-time reflection. It's a\
9 fast, statically typed, compiled language that feels like a\
10 dynamically typed, interpreted language."
11
12HOMEPAGE = " http://golang.org/"
13LICENSE = "BSD-3-Clause"
14
15inherit goarch
16
17SRC_URI = "http://golang.org/dl/go${PV}.src.tar.gz;name=main"
18S = "${WORKDIR}/go"
19B = "${S}"
20UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.src\.tar"
21
22INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
23SSTATE_SCAN_CMD = "true"
24
25export GOROOT_OVERRIDE = "1"
26export GOTMPDIR ?= "${WORKDIR}/go-tmp"
27GOTMPDIR[vardepvalue] = ""
28export CGO_ENABLED = "1"
29
30do_compile_prepend() {
31 BUILD_CC=${BUILD_CC}
32}