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

Erik Botö erik.boto at pelagicore.com
Tue Apr 8 23:47:19 PDT 2014


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
=============================================



More information about the yocto mailing list