Config: Set some Go environment variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2020-04-16 19:27:06 +00:00
committed by Arne Fitzenreiter
parent 7f4780ba71
commit b4863d7d14

View File

@@ -117,8 +117,18 @@ ifeq "$(BUILD_ARCH)" "aarch64"
endif
# Go
export GOARCH
export GOOS = linux
export GOPATH = $(HOME)/gopath
ifeq "$(BUILD_ARCH)" "x86_64"
GOARCH = amd64
endif
ifeq "$(BUILD_ARCH)" "aarch64"
GOARCH = arm64
endif
###############################################################################
# Common Macro Definitions
###############################################################################