[oe-commits] [meta-openembedded] 127/129: gitver: extend class to use EXTERNALSRC if set
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 11 16:12:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
martin_jansa pushed a commit to branch pyro-next
in repository meta-openembedded.
commit c99d1a0ac95370fc0c1cdeec6a807f1d4590d2e4
Author: Alejandro Mery <amery at hanoverdisplays.com>
AuthorDate: Tue Jun 13 10:47:55 2017 +0100
gitver: extend class to use EXTERNALSRC if set
Signed-off-by: Alejandro Mery <amery at hanoverdisplays.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
(cherry picked from commit c4731b2a5a8af54d78ce2735c1c488e5b8183863)
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
meta-oe/classes/gitver.bbclass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass
index a16429a..73521d5 100644
--- a/meta-oe/classes/gitver.bbclass
+++ b/meta-oe/classes/gitver.bbclass
@@ -24,7 +24,8 @@ def get_git_pv(path, d, tagadjust=None):
import os
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:
ver = gitrev_run("git describe --tags", gitdir)
except Exception as exc:
@@ -71,5 +72,6 @@ def mark_recipe_dependencies(path, d):
mark_dependency(d, tagdir)
python () {
- mark_recipe_dependencies(d.getVar("S"), d)
+ srcdir = d.getVar("EXTERNALSRC") or d.getVar("S")
+ mark_recipe_dependencies(srcdir, d)
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list