[yocto] Can Yocto support "git clone" for url with http prefix

zhenhua.luo at freescale.com zhenhua.luo at freescale.com
Wed Apr 9 02:59:51 PDT 2014


Thank you, Erik. 


Best Regards,

Zhenhua

> -----Original Message-----
> From: yocto-bounces at yoctoproject.org [mailto:yocto-
> bounces at yoctoproject.org] On Behalf Of Erik Bot?
> Sent: Wednesday, April 09, 2014 2:47 PM
> To: Luo Zhenhua-B19537
> Cc: yocto at yoctoproject.org
> Subject: Re: [yocto] Can Yocto support "git clone" for url with http
> prefix
> 
> Hi,
> 
> On Wed, Apr 9, 2014 at 8:21 AM, zhenhua.luo at freescale.com
> <zhenhua.luo at freescale.com> wrote:
> > I want to create recipe for a package which is managed by Gerrit,
> Gerrit only provides an anonymous HTTP url(http://aaaa:8181/bb) which can
> be cloned by "git clone http://aaaa:8181/bb" correctly.
> >
> > I set SRC_URI to "http://aaaa:8181/bb" in the bb file, following is the
> detailed definition.
> >        SRC_URI = "http://aaaa:8181/bb;protocol=git;branch=master"
> >
> > When I try to build the package, following error appears.
> >         ERROR: Function failed: URL:
> > 'http://aaaa:8181/bb;protocol=git;branch=master' has invalid
> > parameters. Invalid protocol - if you wish to fetch from a git
> > repository using http, you need to instead use the git:// prefix with
> > protocol=http
> >
> > May I know if Yocto can support "git clone" for url with http prefix?
> 
> Yes. All git SRC_URI start with git:// and then you can specify
> protocol=http. E.g.
> 
> SRC_URI = "git://aaaa:8181/bb;protocol=http;branch=master"
> 
> Cheers,
> Erik
> 
> >
> >
> > Best Regards,
> >
> > Zhenhua
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> 
> 
> 
> --
> =============================================
> Erik Botö
> Senior Software Engineer
> Pelagicore AB
> Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden
> Mobile: +46 (0)76 881 72 03
> E-Mail: erik.boto at pelagicore.com
> =============================================
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
> 




More information about the yocto mailing list