From 09a40fb6fcb58a693758318fe8103d4abf7cd866 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 14 Mar 2019 12:04:56 +0100 Subject: [PATCH] riotboot: use epoch as APP_VER default --- makefiles/boot/riotboot.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefiles/boot/riotboot.mk b/makefiles/boot/riotboot.mk index 0abe2c1d75..5724116cb8 100644 --- a/makefiles/boot/riotboot.mk +++ b/makefiles/boot/riotboot.mk @@ -27,8 +27,8 @@ export SLOT0_OFFSET ?= $(RIOTBOOT_LEN) # export does not work properly with variables using '$(( ))' so evaluate it in a shell export SLOT1_OFFSET ?= $(shell echo $$(($(SLOT0_OFFSET) + $(SLOT0_LEN)))) -# Mandatory APP_VER, set to 0 by default -APP_VER ?= 0 +# Mandatory APP_VER, set to epoch by default +APP_VER ?= $(shell date +%s) # Final target for slot 0 with riot_hdr SLOT0_RIOT_BIN = $(BINDIR_APP)-slot0.riot.bin