[bitbake-devel] git repo directory naming?

Edmund Nadolski Edmund.Nadolski at microsoft.com
Wed Oct 10 20:16:24 UTC 2018


Hello list,

(I'm new to bitbake/yocto so this is my first question.)

In bitbake/lib/bb/fetch2/git.py I notice that bitbake uses the following to generate a git repo directory name from a url:

gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.'))

Are there any ways (env vars?) that allow a git url to be mapped/translated to a different gitsrcname?  Specifically, I am thinking of a case of a long url but the repo name length is limited to e.g. 64 characters.  Or is gitsrcname always per the above replacements?

TIA,
Ed





More information about the bitbake-devel mailing list