mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
package/go: set GOCACHE to a host path
Set the GOCACHE environment variable properly. It was previously unset, and defaults to $HOME/.cache/go-build. Signed-off-by: Christian Stewart <christian@paral.in> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 3909423f1ccf186bd064e225ecb064ca1ece0310) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e3404b10ba
commit
af99ecabd5
@ -37,13 +37,16 @@ GO_GOARCH = mips64le
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
HOST_GO_DEPENDENCIES = host-go-bootstrap
|
HOST_GO_DEPENDENCIES = host-go-bootstrap
|
||||||
|
HOST_GO_HOST_CACHE = $(HOST_DIR)/usr/share/host-go-cache
|
||||||
HOST_GO_ROOT = $(HOST_DIR)/lib/go
|
HOST_GO_ROOT = $(HOST_DIR)/lib/go
|
||||||
|
HOST_GO_TARGET_CACHE = $(HOST_DIR)/usr/share/go-cache
|
||||||
|
|
||||||
# For the convienience of target packages.
|
# For the convienience of target packages.
|
||||||
HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH)
|
HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH)
|
||||||
HOST_GO_TARGET_ENV = \
|
HOST_GO_TARGET_ENV = \
|
||||||
GO111MODULE=off \
|
GO111MODULE=off \
|
||||||
GOARCH=$(GO_GOARCH) \
|
GOARCH=$(GO_GOARCH) \
|
||||||
|
GOCACHE="$(HOST_GO_TARGET_CACHE)" \
|
||||||
GOROOT="$(HOST_GO_ROOT)" \
|
GOROOT="$(HOST_GO_ROOT)" \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
CXX="$(TARGET_CXX)" \
|
CXX="$(TARGET_CXX)" \
|
||||||
@ -63,6 +66,7 @@ endif
|
|||||||
# HOSTCC_NOCCACHE. See https://github.com/golang/go/issues/11685.
|
# HOSTCC_NOCCACHE. See https://github.com/golang/go/issues/11685.
|
||||||
HOST_GO_MAKE_ENV = \
|
HOST_GO_MAKE_ENV = \
|
||||||
GO111MODULE=off \
|
GO111MODULE=off \
|
||||||
|
GOCACHE=$(HOST_GO_HOST_CACHE) \
|
||||||
GOROOT_BOOTSTRAP=$(HOST_GO_BOOTSTRAP_ROOT) \
|
GOROOT_BOOTSTRAP=$(HOST_GO_BOOTSTRAP_ROOT) \
|
||||||
GOROOT_FINAL=$(HOST_GO_ROOT) \
|
GOROOT_FINAL=$(HOST_GO_ROOT) \
|
||||||
GOROOT="$(@D)" \
|
GOROOT="$(@D)" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user