Using a Private GIT Repo with Buildroot

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_METHOD = git
LIBFOO_SITE = ssh://git@server.domain.tld/group/repo.git
LIBFOO_VERSION = v1.01.a

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.

Advertisements
Tagged ,

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: