Advertisement
LocutusOfBorg

Untitled

Oct 23rd, 2015
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. GITROOT="git://gitlab@foo.com"
  2. PROJECT="/prj/"
  3.  
  4. def get_src(d):
  5. foo=d.getVar("BB_ORIGENV", False).getVar("FOO", False)
  6. gitroot=d.getVar("GITROOT")
  7. project=d.getVar("PROJECT")
  8. module=d.getVar("PN", True)
  9. if foo :
  10. src_uri = gitroot + project + module + ".git;protocol=ssh;user=gitlab;branch=foo_branch;tag=" + foo
  11. else:
  12. src_uri = gitroot + project + module + ".git;protocol=ssh;user=gitlab;branch=foo_branch"
  13. return src_uri
  14.  
  15. SRCREV="${AUTOREV}"
  16. SRC_URI += "${@get_src(d)}"
  17. S = "${WORKDIR}/git"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement