[yocto] Kernel git repo fetch issue

Joel (Xi Zhou) Zhou joel.zhou at broadcom.com
Wed Apr 29 10:16:57 PDT 2015


Thanks Khem.
The git repo can accessed by public key, so user/passwd are not need.
After changing the URL to this:
SRC_URI = "git://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH};protocol=ssh"

Then “bitbake linux-lsk –c fetch” return no error, but the source folder in working directory is empty.
In log.do_fetch
DEBUG: Fetcher failure: Fetch command failed with exit code 8, output:
http://downloads.yoctoproject.org/mirror/sources/git2_git-ccxsw.rtp. inhouse.com. linux-lsk.tar.gz:
2015-04-29 12:49:36 ERROR 404: Not Found.

Thanks,
Joel
From: Khem Raj [mailto:raj.khem at gmail.com]
Sent: Wednesday, April 29, 2015 11:30 AM
To: Joel (Xi Zhou) Zhou
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Kernel git repo fetch issue


On Apr 29, 2015, at 8:21 AM, Joel (Xi Zhou) Zhou <joel.zhou at broadcom.com<mailto:joel.zhou at broadcom.com>> wrote:

So in linux-lsk_3.14.29.bb file, we define:
SRC_URI = "ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH}<ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=$%7bKBRANCH%7d>"



create a .netrc in your home folder like

machine  git-ccxsw.inhouse.com<http://git-ssxsw.inhouse.com> login svcswgit  password <passwd>


then change the SRC_URI to something

SRC_URI = “git://git-ccxsw.inhouse.com/linux.lsk;bareclone=1;branch=<branch><git://git-ccxsw.inhouse.com/linux.lsk;bareclone=1;branch=%3Cbranch%3E>;protocol=ssh"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150429/d7e1c038/attachment.html>


More information about the yocto mailing list