[CRIU] [PATCH] kdat: allow to override build time
Bernhard M. Wiedemann
bwiedemann at suse.de
Tue Jul 18 05:27:56 MSK 2017
in order to allow for reproducible builds.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
Signed-off-by: Bernhard M. Wiedemann <bwiedemann at suse.de>
Acked-by: Pavel Emelyanov <xemul at virtuoozo.com>
---
criu/Makefile.crtools | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/Makefile.crtools b/criu/Makefile.crtools
index adc64ef7..6b3fbdfb 100644
--- a/criu/Makefile.crtools
+++ b/criu/Makefile.crtools
@@ -1,7 +1,7 @@
ccflags-y += -iquote criu/$(ARCH)
ccflags-y += $(COMPEL_UAPI_INCLUDES)
CFLAGS_REMOVE_clone-noasan.o += $(CFLAGS-ASAN)
-CFLAGS_kerndat.o += -DKDAT_MAGIC_2=${shell date +%s} -DKDAT_RUNDIR=\"$(RUNDIR)\"
+CFLAGS_kerndat.o += -DKDAT_MAGIC_2=${shell echo $${SOURCE_DATE_EPOCH:-$$(date +%s)}} -DKDAT_RUNDIR=\"$(RUNDIR)\"
ldflags-y += -r
obj-y += action-scripts.o
--
2.12.3
More information about the CRIU
mailing list