From 4546469e7b1afc9ebf0a553672db51b09befa4fc Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Mon, 18 Mar 2019 17:05:19 +0100 Subject: [PATCH] make: riotboot: ensure epoch in APP_VER is evaluated once --- makefiles/boot/riotboot.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefiles/boot/riotboot.mk b/makefiles/boot/riotboot.mk index 89fdd26f7a..890e4e7cbd 100644 --- a/makefiles/boot/riotboot.mk +++ b/makefiles/boot/riotboot.mk @@ -17,7 +17,8 @@ export SLOT0_OFFSET SLOT0_LEN SLOT1_OFFSET SLOT1_LEN ifeq (1, RIOT_CI_BUILD) APP_VER ?= 0 else - APP_VER ?= $(shell date +%s) + EPOCH := $(shell date +%s) + APP_VER ?= $(EPOCH) endif # Final target for slot 0 with riot_hdr