blob: db165792dcb1d647d06f0b01553d1675a7c1e52f [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "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
William A. Kennington IIIac69b482021-06-02 12:28:27 -070017SRC_URI = "https://golang.org/dl/go${PV}.src.tar.gz;name=main"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018S = "${WORKDIR}/go"
19B = "${S}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040020UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.src\.tar"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050022# all recipe variants are created from the same product
Patrick Williams169d7bc2024-01-05 11:33:25 -060023CVE_PRODUCT = "golang:go"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050024
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
26SSTATE_SCAN_CMD = "true"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027
Brad Bishop316dfdd2018-06-25 12:45:53 -040028export GOROOT_OVERRIDE = "1"
Andrew Geissler595f6302022-01-24 19:11:47 +000029export GOTMPDIR ?= "${WORKDIR}/build-tmp"
Brad Bishop316dfdd2018-06-25 12:45:53 -040030GOTMPDIR[vardepvalue] = ""
Brad Bishop316dfdd2018-06-25 12:45:53 -040031export CGO_ENABLED = "1"
32
Andrew Geissler82c905d2020-04-13 13:39:40 -050033export GOHOSTOS ?= "${BUILD_GOOS}"
34export GOHOSTARCH ?= "${BUILD_GOARCH}"
35export GOROOT_BOOTSTRAP ?= "${STAGING_LIBDIR_NATIVE}/go"
36export GOOS ?= "${TARGET_GOOS}"
37export GOARCH ?= "${TARGET_GOARCH}"
38export GOARM ?= "${TARGET_GOARM}"
39export GO386 ?= "${TARGET_GO386}"
40export GOMIPS ?= "${TARGET_GOMIPS}"
41export GOROOT_FINAL ?= "${libdir}/go"
42
Andrew Geissler595f6302022-01-24 19:11:47 +000043export GODEBUG = "gocachehash=1"
44
Patrick Williams213cb262021-08-07 19:21:33 -050045do_compile:prepend() {
Brad Bishopd7bf8c12018-02-25 22:55:05 -050046 BUILD_CC=${BUILD_CC}
47}