[yocto] yocto query on SR_URI creation

Rohit2 Jindal rohit2.jindal at aricent.com
Mon Sep 16 22:54:54 PDT 2013


Hi,

Please suggest me the way to git clone from two repos parallel in the same recipe Is possible in yocto .If yes how to do that.
Eg
SRC_URI = "git://ep-code.xyz.com/sysconfig.git;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh<http://ep-code.xyz.com/sysconfig;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh>
SRC_URI = "git://ep-code.xyz.com/xload.git;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh<http://ep-code.xyz.com/sysconfig;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh>
When I tries to do this it unpacks the source downloaded to WORKDIR/git so overwrites the first unpack with the other. So please suggest me the
way that two download two repos in same recipes with their detstined cloned folder changed to folder with my required naming convention
instead of generic git name folder in workdir.

Regards,
Rohit Jindal


From: Nicolas Dechesne [mailto:nicolas.dechesne at linaro.org]
Sent: Tuesday, September 10, 2013 8:32 PM
To: Rohit2 Jindal
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] yocto query on SR_URI creation


On Tue, Sep 10, 2013 at 4:35 PM, Rohit2 Jindal <rohit2.jindal at aricent.com<mailto:rohit2.jindal at aricent.com>> wrote:

Thanks for your prompt reply.

Actually I am able to create my own SRC_URI on your guided lines as
#SRC_URI = "git://ep-code.xyz.com/sysconfig;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh<http://ep-code.xyz.com/sysconfig;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh>"
But when do_fetch task starts executing it prompts me to input the passphrase for the same server when I am not able to pass . Please suggest me is the way I mentioned the path is need to be modified or

There is something that enable me to pass password for git server ie username and password are possible to be passed as argument to git path or some other way exist to give input to bitbake do_fetch task as runtime I don't think we can pass any input.

Please suggest me the way.


you need to be able to use 'password-less' connection to your ssh server that hosts the private trees. typically that means using a pair of SSH keys (private/public).  if you are not familiar with that, i suggest you read this first:

http://www.debian-administration.org/article/SSH_with_authentication_key_instead_of_password

with such a method SSH authentication can be done 'automatically' without the need for prompting user's passwd.

if you actually decide to use passphrase for your SSH (private) key, you might be able to setup SSH agent to do that, but you would need to do that each time you log, iirc. But i am not familiar with this, to be honest. You can read more about that here:

http://www.solomonson.com/content/setting-ssh-agent-ask-passphrase-only-once

cheers





===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130917/ca9f3972/attachment.html>


More information about the yocto mailing list