Buildroot is pure awesomeness for maintaining the build of a GNU/Linux based operating system.  However, during my ventures I’ve had to keep private code private so use a git repo behind ssh.  There is a way to achieve this with Buildroot but it is undocumented:

LIBFOO_SITE = ssh://git@server.domain.tld/group/repo.git

On the first line we have to set the method to git as the auto detect won’t work on SSH
The second line contains the git repo as it would be defined if using git via ssh accept prepended with ssh:// and the the colon that is normally between the end of the FQDN and the location is replaced with a slash.
Line 3 can be a tag, branch or commit hash.

I am not sure if line 2 is correct in all cases but it works for me.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.