[riot-notifications] [RIOT-OS/RIOT] riotboot: use epoch as APP_VER default (#11180)
notifications at github.com
Thu Mar 14 12:10:41 CET 2019
### Contribution description
Previously, a compiled image version would default to "0".
It would make an image that was simply compiled by "make riotboot" without specifying a version unbootable by default, as the existing version in slot 0 is always at least 0, too.
This PR makes the current time (in unix epoch format) the default version number. As time is increasing monotonically, that makes an image which was compiled after another bootable with high probability.
### Testing procedure
In order to test that the epoch is used, use ```BOARD=foo make -Ctests/riotboot riotboot/flash```.
On master, after flashing, the printed version number should be zero.
With this PR, it should increase everytime the flashing is repeated.
### Issues/PRs references
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* riotboot: use epoch as APP_VER default
-- File Changes --
M makefiles/boot/riotboot.mk (4)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications