Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GITROOT="git://gitlab@foo.com"
- PROJECT="/prj/"
- def get_src(d):
- foo=d.getVar("BB_ORIGENV", False).getVar("FOO", False)
- gitroot=d.getVar("GITROOT")
- project=d.getVar("PROJECT")
- module=d.getVar("PN", True)
- if foo :
- src_uri = gitroot + project + module + ".git;protocol=ssh;user=gitlab;branch=foo_branch;tag=" + foo
- else:
- src_uri = gitroot + project + module + ".git;protocol=ssh;user=gitlab;branch=foo_branch"
- return src_uri
- SRCREV="${AUTOREV}"
- SRC_URI += "${@get_src(d)}"
- S = "${WORKDIR}/git"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement