[yocto] yocto query on SR_URI creation

Nicolas Dechesne nicolas.dechesne at linaro.org
Mon Sep 9 05:45:12 PDT 2013


On Mon, Sep 9, 2013 at 9:47 AM, Rohit2 Jindal <rohit2.jindal at aricent.com>wrote:

> Actually I want to access external git server of our client using yocto
> SRC_URI. But I am not able to create path to git server .
>
>
> I just have following info of external server with me
>
> 1)~/.ssh/config file
>
> host xyz
> user epuser
> hostname ep-code.xyz.com
> port 22
> identityfile ~/.ssh/abc_r.j
>
>
> 2)abc_r.j.pub file
> 3)abc_r.j file
>
> I am not able to understand which URI protocols will work for me to set
> path in SRC_URI of .bb file
>
>
> Same thing on linux prompt works like this
> $git clone xyz:sysconfig
>
>
>
> $buildroot>make git-checkout
> Available tag used is xxx-ep-20130823-3.0-alpha
> Available server epuser at ep-code.xyz.com:/
>


The following should work:

SRC_URI = "git://foo.xyz.com/folder/project.git;protocol=ssh"

And in ~/.ssh/config

Host foo.xyz.com
  User <your username>
  IdentityFile ~/.ssh/abc_r.j

You would need to ssh once to that server outside of OE so that i records
the server in ~/.ssh/known_hosts first.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130909/7026359f/attachment.html>


More information about the yocto mailing list