1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #11180 from kaspar030/riotboot_use_epoch_as_default_version

riotboot: use epoch as APP_VER default
This commit is contained in:
Koen Zandberg 2019-03-14 16:01:00 +01:00 committed by GitHub
commit bee2f0bcc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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