]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Config: Set some Go environment variables
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Apr 2020 19:27:06 +0000 (19:27 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 20 Apr 2020 15:24:25 +0000 (15:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/Config

index a278b015531ce84aaacb7a25a9dc77b68f498133..26d46311265c4c957141695c5028ca6a3d5f0c27 100644 (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
 ###############################################################################