[yocto] What is the right SRC_URI syntax for git at bitbucket.org?

Erik Hoogeveen erik.hoogeveen at outlook.com
Tue Apr 23 04:49:21 PDT 2019


What I have is:

SRCREV = "${AUTOREV}"
PE = "1"
PV = "0.0+git${SRCPV}"

To make that work your recipe file name must have the format '<recipe_name>_git.bb’

Cheers,
Erik
On 23 Apr 2019, 13:44 +0200, JH <jupiter.hce at gmail.com>, wrote:
Thanks Eric, how did you set up SRCREV? I've got an error need to set
a valid SRCREV.

Thank you.

Kind regards,

- jupiter


On 4/23/19, Erik Hoogeveen <erik.hoogeveen at outlook.com> wrote:
Hi,

This works for me. I've have setup ssh my identity for Bitbucket.

I use this in my recipes:

SRC_URI = "gitsm://git@bitbucket.org/<account_name>/<repository
name>.git;protocol=ssh;branch=${BRANCH}"

Cheers,
Erik
On 21 Apr 2019, 02:58 +0200, JH <jupiter.hce at gmail.com>, wrote:
Hi,

Could someone kindly clarify what is the syntax to access git source
from bitbucket.org? I tried following different patterns, nothing
works:

SRC_URI = "git://bitbucket.org/<account name>/<repository
name>;protocol=http;branch=${BRANCH}"

SRC_URI = "git://<username>@bitbucket.org/<account name>/<repository
name>.git;protocol=ssh";branch=${BRANCH}"

Thank you.

Kind regards,

- jupiter
On 4/20/19, JH <jupiter.hce at gmail.com> wrote:
Hi,

Sorry for a new starter questions, I searched Internet, there are a
few examples to set up:

SRC_URI = "git://<username>@bitbucket.org/<account name>/<repository
name>.git;protocol=ssh";branch=${BRANCH}"

Not only that does not work, I have set up the public key to access
the git bitbucket repository:

$ ssh -v git at bitbucket.org

The Yocto also complained SRCREV, following some blog to add the
SRCREV = "${AUTOREV}" that not work either.

Thank you.

Kind regards,

- jh

--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fyocto&data=02%7C01%7C%7Cb470080556df4454d26708d6c7e0fb71%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636916166431553475&sdata=eBsjVtD0FArltADAHD8brMjgIaqaalg5pbEIEFQeR8s%3D&reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190423/9785241f/attachment-0001.html>


More information about the yocto mailing list