Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. GITROOT="git://gitlab@foo.com"
  2. PROJECT="/project/"
  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=master;tag=" + foo
  11. else:
  12. src_uri = gitroot + project + module + ".git;protocol=ssh;user=gitlab;branch=master"
  13. d.setVar("SRCREV", "AUTOREV")
  14. return src_uri
  15.  
  16. SRC_URI += "${@get_src(d)}"
  17. S = "${WORKDIR}/git"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement