From 814799cd0b4dd0e9eacb00d3f5ee77c178b2b3d7 Mon Sep 17 00:00:00 2001 From: poldy79 <leonard@penzer.de> Date: Sat, 13 Jan 2018 10:02:34 +0100 Subject: [PATCH] Option to override build date Setting BUILD_DATE overrides the date used in the generated image names. With this it is possible to have a consistent build date across all architectures, making it easier to identify a release. Furthre more it might be the key to have reproducible builds --- site.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site.mk b/site.mk index 8ab8ce5e7..d399a97d0 100644 --- a/site.mk +++ b/site.mk @@ -59,7 +59,11 @@ GLUON_SITE_PACKAGES += \ kmod-igb endif -DEFAULT_GLUON_RELEASE := 1.4+$(shell date '+%Y-%m-%d')-g.$(shell git -C $(GLUON_SITEDIR)/../ log --pretty=format:'%h' -n 1)-s.$(shell git -C $(GLUON_SITEDIR) log --pretty=format:'%h' -n 1) +DEFAULT_BUILD_DATE := $(shell date '+%Y-%m-%d') + +BUILD_DATE ?= $(DEFAULT_BUILD_DATE) + +DEFAULT_GLUON_RELEASE := 1.4+$(BUILD_DATE)-g.$(shell git -C $(GLUON_SITEDIR)/../ log --pretty=format:'%h' -n 1)-s.$(shell git -C $(GLUON_SITEDIR) log --pretty=format:'%h' -n 1) GLUON_LANGS := de en -- GitLab