Hi Steffen,

On Tuesday 16 June 2015 16:12:49 Steffen Sledz wrote:
> For development purposes we use this method to build always from the HEAD
> revision of a git repository.
> 
> -------------> snip <--------------
> SRCREV="${AUTOREV}"
> PV = "gitr${SRCPV}"
> 
> SRC_URI = "git://[email protected]/.../foo.git;protocol=ssh"
> -------------> snap <--------------
> 
> Now we like to do the same in one recipe which uses sources from two git
> repos.
> 
> Our first try was this one. But if failed..
> 
> -------------> snip <--------------
> SRCREV_foo="${AUTOREV_foo}"
> SRCREV_bar="${AUTOREV_bar}"
> PV = "gitr${SRCPV_foo}+${SRCPV_bar}"
> 
> SRC_URI = " \
>       git://[email protected]/.../foo.git;protocol=ssh,name=foo \
>       git://[email protected]/.../bar.git;protocol=ssh,name=bar \
> "
> -------------> snap <--------------
> 
> Is it possible to do what we want? And what's the right way to do it?

I believe this should work:

-------------> snip <--------------
SRCREV_FORMAT = "foo_bar"
SRCREV_foo = "${AUTOREV}"
SRCREV_bar = "${AUTOREV}"
PV = "gitr${SRCPV}"
 
SRC_URI = " \
        git://[email protected]/.../foo.git;protocol=ssh,name=foo \
        git://[email protected]/.../bar.git;protocol=ssh,name=bar \
 "
-------------> snap <--------------

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to