[riot-notifications] [RIOT-OS/RIOT] build system: add machine-readable RIOT_VERSION_CODE macro (#16765)

Alexandre Abadie notifications at github.com
Sat Aug 21 19:20:15 CEST 2021

This PR expects that `RIOT_VERSION` is always containing something like `2021.10` or `2021.10.1` but on a development branch like master, `RIOT_VERSION` contains something like `2021.10-devel-130-g934c87` and on a different branch it also contains the branch name.
With the example above, `2021.10-devel-130-g934c87`, the resulting `RIOT_VERSION_CODE` macro would contain `KERNEL_VERSION\(2021,10,0\)` which returns a wrong result since the master branch doesn't correspond to an exact RIOT release version but a development version.
We could keep the extra `devel-130-g934c87` in the result (e.g `KERNEL_VERSION\(2021,10,0devel-130-g934c87\)`) but then the `KERNEL_VERSION` would have to be adapted (and I don't know how).

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210821/9f6c2fa9/attachment.htm>

More information about the notifications mailing list