[riot-commits] [RIOT-OS/RIOT] 21649b: makefiles/git_version.inc.mk: deferred GIT_VERSION...

Martine Lenders noreply at github.com
Fri Jul 26 13:36:48 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 21649b2cb3454608b273b2abef98f930e1aac341
      https://github.com/RIOT-OS/RIOT/commit/21649b2cb3454608b273b2abef98f930e1aac341
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-07-22 (Mon, 22 Jul 2019)

  Changed paths:
    A makefiles/git_version.inc.mk

  Log Message:
  -----------
  makefiles/git_version.inc.mk: deferred GIT_VERSION definition

Move git version evaluation to a separate file.

The definition has been updated it to a deferred only definition.
This way git is not called when GIT_VERSION is not used.


  Commit: cfd46773158a3871daa02cb457cd3bad7cb250bf
      https://github.com/RIOT-OS/RIOT/commit/cfd46773158a3871daa02cb457cd3bad7cb250bf
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-07-22 (Mon, 22 Jul 2019)

  Changed paths:
    M Makefile.include

  Log Message:
  -----------
  Makefile.include: use GIT_VERSION for RIOT_VERSION

Use 'GIT_VERSION' for 'RIOT_VERSION'.

This prevents evaluating 'git describe' and 'git rev-parse' when their
value is not used.


  Commit: 8859e1e1d9c65b1dfb002b11325485f67e0c9291
      https://github.com/RIOT-OS/RIOT/commit/8859e1e1d9c65b1dfb002b11325485f67e0c9291
  Author: Gaëtan Harter <gaetan.harter at fu-berlin.de>
  Date:   2019-07-22 (Mon, 22 Jul 2019)

  Changed paths:
    M Makefile.include

  Log Message:
  -----------
  Makefile.include: Only evaluate RIOT_VERSION when needed

This changes CFLAGS_WITH_MACROS to be:

* a deferred variable
* not exported so only evaluated when actually used

The value is only used by `Makefile.include` and `makefiles/eclipse.inc.mk`
so not required to export it.


  Commit: 2d1eda550a2296d25aa8a8db75fca65c738c8d2e
      https://github.com/RIOT-OS/RIOT/commit/2d1eda550a2296d25aa8a8db75fca65c738c8d2e
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2019-07-26 (Fri, 26 Jul 2019)

  Changed paths:
    M Makefile.include
    A makefiles/git_version.inc.mk

  Log Message:
  -----------
  Merge pull request #11881 from cladmi/pr/git_version

makefiles: Introduce GIT_VERSION and use it for RIOT_VERSION


Compare: https://github.com/RIOT-OS/RIOT/compare/7d3817e8f14d...2d1eda550a22


More information about the commits mailing list