mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-31 13:20:03 +00:00
gitver: extend class to use EXTERNALSRC if set
Signed-off-by: Alejandro Mery <amery@hanoverdisplays.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
25ca0801b8
commit
c4731b2a5a
@@ -24,7 +24,8 @@ def get_git_pv(path, d, tagadjust=None):
|
|||||||
import os
|
import os
|
||||||
import bb.process
|
import bb.process
|
||||||
|
|
||||||
gitdir = os.path.abspath(os.path.join(d.getVar("S"), ".git"))
|
srcdir = d.getVar("EXTERNALSRC") or d.getVar("S")
|
||||||
|
gitdir = os.path.abspath(os.path.join(srcdir, ".git"))
|
||||||
try:
|
try:
|
||||||
ver = gitrev_run("git describe --tags", gitdir)
|
ver = gitrev_run("git describe --tags", gitdir)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
@@ -71,5 +72,6 @@ def mark_recipe_dependencies(path, d):
|
|||||||
mark_dependency(d, tagdir)
|
mark_dependency(d, tagdir)
|
||||||
|
|
||||||
python () {
|
python () {
|
||||||
mark_recipe_dependencies(d.getVar("S"), d)
|
srcdir = d.getVar("EXTERNALSRC") or d.getVar("S")
|
||||||
|
mark_recipe_dependencies(srcdir, d)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user