]> Git Repo - buildroot-mgba.git/commit
Makefile: avoid executing 'git log' each time SOURCE_DATE_EPOCH is used
authorJames Byrne <[email protected]>
Mon, 9 Apr 2018 16:08:01 +0000 (17:08 +0100)
committerThomas Petazzoni <[email protected]>
Mon, 9 Apr 2018 18:59:49 +0000 (20:59 +0200)
commit9b47146eb2c33bd83d494a76b1186c3948e0d3ff
treea8a467c8378b32beeb552cdd4db683170a1d2daa
parentf4a4df2084b923f29eca2130976ca10a7aa6b719
Makefile: avoid executing 'git log' each time SOURCE_DATE_EPOCH is used

If SOURCE_DATE_EPOCH is not defined it was given a definition that
caused 'git log' to be executed each time the variable is referenced,
which is not very efficient given that the answer cannot change.

This commit moves the definition of BR2_VERSION_GIT_EPOCH after the
inclusion of Makefile.in (so that GIT is defined) and makes it a
simply expanded variable so that it is only evaluated once.

Signed-off-by: James Byrne <[email protected]>
Acked-by: "Yann E. MORIN" <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
Makefile
This page took 0.031654 seconds and 4 git commands to generate.