mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 03:19:41 +01:00
Go has its own system for creating temporary build sub-directories with randomized names, and setting up debug-prefix-map on the fly to prevent those directories leaking into target binaries. OE's own settings were clashing with it, so this change carefully avoids the two stepping on each other. Additionally, the top level build directory cannot be named 'go-something'. (From OE-Core rev: 9985b17a30bb9b9f1bc82a44662687db5cead66e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
45 lines
1.4 KiB
PHP
45 lines
1.4 KiB
PHP
SUMMARY = "Go programming language compiler"
|
|
DESCRIPTION = " The Go programming language is an open source project to make \
|
|
programmers more productive. Go is expressive, concise, clean, and\
|
|
efficient. Its concurrency mechanisms make it easy to write programs\
|
|
that get the most out of multicore and networked machines, while its\
|
|
novel type system enables flexible and modular program construction.\
|
|
Go compiles quickly to machine code yet has the convenience of\
|
|
garbage collection and the power of run-time reflection. It's a\
|
|
fast, statically typed, compiled language that feels like a\
|
|
dynamically typed, interpreted language."
|
|
|
|
HOMEPAGE = " http://golang.org/"
|
|
LICENSE = "BSD-3-Clause"
|
|
|
|
inherit goarch
|
|
|
|
SRC_URI = "https://golang.org/dl/go${PV}.src.tar.gz;name=main"
|
|
S = "${WORKDIR}/go"
|
|
B = "${S}"
|
|
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.src\.tar"
|
|
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
SSTATE_SCAN_CMD = "true"
|
|
|
|
export GOROOT_OVERRIDE = "1"
|
|
export GOTMPDIR ?= "${WORKDIR}/build-tmp"
|
|
GOTMPDIR[vardepvalue] = ""
|
|
export CGO_ENABLED = "1"
|
|
|
|
export GOHOSTOS ?= "${BUILD_GOOS}"
|
|
export GOHOSTARCH ?= "${BUILD_GOARCH}"
|
|
export GOROOT_BOOTSTRAP ?= "${STAGING_LIBDIR_NATIVE}/go"
|
|
export GOOS ?= "${TARGET_GOOS}"
|
|
export GOARCH ?= "${TARGET_GOARCH}"
|
|
export GOARM ?= "${TARGET_GOARM}"
|
|
export GO386 ?= "${TARGET_GO386}"
|
|
export GOMIPS ?= "${TARGET_GOMIPS}"
|
|
export GOROOT_FINAL ?= "${libdir}/go"
|
|
|
|
export GODEBUG = "gocachehash=1"
|
|
|
|
do_compile:prepend() {
|
|
BUILD_CC=${BUILD_CC}
|
|
}
|