]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Go: Cleanup Go Path after build
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Dec 2019 12:58:53 +0000 (12:58 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Jan 2020 08:19:17 +0000 (08:19 +0000)
Go leaves temporary build files in the directory
which we do not need and we should clean up after
every build.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/Config
lfs/amazon-ssm-agent

index 5f606f53fc9524d87c6735ba102f58a63c59233c..3c552f3f07d39c43c83d231cef7470564fe95682 100644 (file)
@@ -115,6 +115,9 @@ ifeq "$(BUILD_ARCH)" "aarch64"
        GRUB_ARCH = arm64
 endif
 
+# Go
+export GOPATH = $(HOME)/gopath
+
 ###############################################################################
 # Common Macro Definitions
 ###############################################################################
@@ -156,6 +159,7 @@ define POSTBUILD
        @echo "Updating linker cache..."
        @type -p ldconfig >/dev/null && ldconfig || :
        @echo "Install done; saving file list to $(TARGET) ..."
+       @rm -rf $(GOPATH)
        @$(FIND_FILES) > $(DIR_SRC)/lsalrnew
        @diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff
        @cp -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr
index da164ced884998fa2748abd518223a4027a9d6a4..b477690a44798b85d36f4440db69c23e4001479f 100644 (file)
@@ -37,8 +37,6 @@ PAK_VER    = 1
 
 DEPS       = ""
 
-export GOPATH = $(HOME)/gopath
-
 DIR_BUILD  = $(GOPATH)/src/github.com/aws/amazon-ssm-agent
 
 ###############################################################################