[CRIU] [PATCH] kdat: allow to override build time
Vasily Averin
vvs at virtuozzo.com
Tue Jul 18 05:59:37 MSK 2017
On 2017-07-18 05:27, Bernhard M. Wiedemann wrote:
> 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>
typo in email addr: should be "virtuozzo" instead "virtuoozo"
> ---
> 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
>
More information about the CRIU
mailing list