diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-01-01 12:29:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-05 17:18:15 +0000 |
commit | a44ba6ae65ce2e9096d7374c02dad4c3503c57e9 (patch) | |
tree | a2ae9583bed69802d01dd9c5a329e4522ab0fea4 /meta/recipes-devtools/go/go-common.inc | |
parent | 7d0dd2d26bfa1e03ba1c9e6c375dbfd8bcd5c86e (diff) | |
download | poky-a44ba6ae65ce2e9096d7374c02dad4c3503c57e9.tar.gz |
go: log build id computations
go writes build-specific ids into binaries it produces
and has a custom system for calculating them from
file hashes, environment variables and other inputs
(not that dissimilar to sstate cache, actually). This can
go wrong :) in various ways (for purposes of reproducibility
in particular), so this enables useful logs to see what
happens and why.
(From OE-Core rev: a587be1d18fc55fe57d1aa5aa7c9e26af887109e)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-common.inc')
-rw-r--r-- | meta/recipes-devtools/go/go-common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index dfccebdb83..5bbf35b787 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc | |||
@@ -37,6 +37,8 @@ export GO386 ?= "${TARGET_GO386}" | |||
37 | export GOMIPS ?= "${TARGET_GOMIPS}" | 37 | export GOMIPS ?= "${TARGET_GOMIPS}" |
38 | export GOROOT_FINAL ?= "${libdir}/go" | 38 | export GOROOT_FINAL ?= "${libdir}/go" |
39 | 39 | ||
40 | export GODEBUG = "gocachehash=1" | ||
41 | |||
40 | do_compile:prepend() { | 42 | do_compile:prepend() { |
41 | BUILD_CC=${BUILD_CC} | 43 | BUILD_CC=${BUILD_CC} |
42 | } | 44 | } |