Re: [yocto] SRC_URI git from ssh fails

2018-07-10 Thread Mauro Ziliani

Now it works.

But it was a problem of git repository.

I rebuild the SRCREC on the repository and now I acan fetch the source code.


I choose this recipe method.

PV="1.0"

SRCREV="refs/tags/${PV}"


SRC_URI = " \
    git://user@server/repos.git;protocol=ssh \
"

Thanks for the help

MZ

Il 10/07/2018 10:40, Martin Hundebøll ha scritto:

Hi again,

On 2018-07-10 10:37, Martin Hundebøll wrote:

Hi Mauro,

On 2018-07-10 10:31, Mauro Ziliani wrote:

Hi all

I'm working with Krogoth and imx6dlsabresd board.

I'm in trouble fetching source code from a git repository via ssh.

If I get manually the source codes with

git clone ssh://user@server/repos.git -b 0.4

it works


If I put it in myrecipe_git.bb with


SRC_URI = " \

    git://user@server/repos.git;protocol=ssh;tag=0.4 \

"


You might get lucky with a colon instead of the slash:

 git://user@server:repos.git;protocol=ssh;tag=0.4

But it is just a wild guess, and I didn't really test it :)

// Martin



S="${WORKDIR}/${PN}-${PV}"


the fecth task fails.


I try also SRCREV="0.4" outside SRC_URI and rev=0.4 in place of tag=0.4


Oh, don't base your checkouts on tags, as they can change without 
bitbake noticing.


Put a commit id in SRCREV instead and look into AUTOREV if you need to 
always build the latest and greatest.


// Martin



Where I mistake?


Thanks


MZ








--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] SRC_URI git from ssh fails

2018-07-10 Thread Martin Hundebøll

Hi again,

On 2018-07-10 10:37, Martin Hundebøll wrote:

Hi Mauro,

On 2018-07-10 10:31, Mauro Ziliani wrote:

Hi all

I'm working with Krogoth and imx6dlsabresd board.

I'm in trouble fetching source code from a git repository via ssh.

If I get manually the source codes with

git clone ssh://user@server/repos.git -b 0.4

it works


If I put it in myrecipe_git.bb with


SRC_URI = " \

    git://user@server/repos.git;protocol=ssh;tag=0.4 \

"


You might get lucky with a colon instead of the slash:

     git://user@server:repos.git;protocol=ssh;tag=0.4

But it is just a wild guess, and I didn't really test it :)

// Martin



S="${WORKDIR}/${PN}-${PV}"


the fecth task fails.


I try also SRCREV="0.4" outside SRC_URI and rev=0.4 in place of tag=0.4


Oh, don't base your checkouts on tags, as they can change without 
bitbake noticing.


Put a commit id in SRCREV instead and look into AUTOREV if you need to 
always build the latest and greatest.


// Martin



Where I mistake?


Thanks


MZ






--
Kind regards,
Martin Hundebøll
Embedded Linux Consultant

+45 61 65 54 61
mar...@geanix.com

Geanix IVS
DK39600706
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] SRC_URI git from ssh fails

2018-07-10 Thread Martin Hundebøll

Hi Mauro,

On 2018-07-10 10:31, Mauro Ziliani wrote:

Hi all

I'm working with Krogoth and imx6dlsabresd board.

I'm in trouble fetching source code from a git repository via ssh.

If I get manually the source codes with

git clone ssh://user@server/repos.git -b 0.4

it works


If I put it in myrecipe_git.bb with


SRC_URI = " \

    git://user@server/repos.git;protocol=ssh;tag=0.4 \

"


You might get lucky with a colon instead of the slash:

git://user@server:repos.git;protocol=ssh;tag=0.4

But it is just a wild guess, and I didn't really test it :)

// Martin



S="${WORKDIR}/${PN}-${PV}"


the fecth task fails.


I try also SRCREV="0.4" outside SRC_URI and rev=0.4 in place of tag=0.4


Where I mistake?


Thanks


MZ




--
Kind regards,
Martin Hundebøll
Embedded Linux Consultant

+45 61 65 54 61
mar...@geanix.com

Geanix IVS
DK39600706
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] SRC_URI git from ssh fails

2018-07-10 Thread Mauro Ziliani

Hi all

I'm working with Krogoth and imx6dlsabresd board.

I'm in trouble fetching source code from a git repository via ssh.

If I get manually the source codes with

git clone ssh://user@server/repos.git -b 0.4

it works


If I put it in myrecipe_git.bb with


SRC_URI = " \

   git://user@server/repos.git;protocol=ssh;tag=0.4 \

"

S="${WORKDIR}/${PN}-${PV}"


the fecth task fails.


I try also SRCREV="0.4" outside SRC_URI and rev=0.4 in place of tag=0.4


Where I mistake?


Thanks


MZ


--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto