externalgitsrc: changed so that the variable is now only set once instead of beeing read every time its assigned.

This also rebuilds recipes which use the EXTERNALSRC_GIT_SRCREV variable, when the variable changes.

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
Lucien Mueller 2018-12-10 16:02:34 +01:00
parent 4f2ee73047
commit 7235d88103
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,6 @@
# Provides git describe tag from yocto root directory
EXTERNALSRC = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
EXTERNALSRC_GIT_SRCREV = "${@get_externalsrc_rev(d)}"
def get_externalsrc_rev(d):
import subprocess
@ -14,3 +13,4 @@ def get_externalsrc_rev(d):
d.setVar('BB_DONT_CACHE', '1')
return rev
EXTERNALSRC_GIT_SRCREV := "${@get_externalsrc_rev(d)}"