summaryrefslogtreecommitdiffstats
path: root/package/go
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2016-05-26 18:21:33 +0000
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-05-26 21:05:52 +0200
commit6cb235a4deb07406d516454708b8d9667f6832ba (patch)
treefe3ff0dba4e8261e3b0df28765d37bf3bf87272c /package/go
parent263cadeb45fbe496e89c802eca07e1c90c826292 (diff)
downloadbuildroot-6cb235a4deb07406d516454708b8d9667f6832ba.tar.gz
buildroot-6cb235a4deb07406d516454708b8d9667f6832ba.zip
package/go: Set file timestamp
Set all file timestamps to prevent the go compiler from rebuilding any built in packages when programs are built. Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/go')
-rw-r--r--package/go/go.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/go/go.mk b/package/go/go.mk
index 7a8ebf4a6d..98615aaeaf 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -107,6 +107,10 @@ define HOST_GO_INSTALL_CMDS
# There is a known issue which requires the go sources to be installed
# https://golang.org/issue/2775
cp -a $(@D)/src $(HOST_GO_ROOT)/
+
+ # Set all file timestamps to prevent the go compiler from rebuilding any
+ # built in packages when programs are built.
+ find $(HOST_GO_ROOT) -type f -exec touch -r $(HOST_GO_TMP)/bin/go {} \;
endef
$(eval $(host-generic-package))
OpenPOWER on IntegriCloud