[OE-core] multiple git repos vs. AUTOREV?

Paul Eggleton paul.eggleton at linux.intel.com
Tue Jun 16 14:20:39 UTC 2015


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://git@bitbucket.org/.../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://git@bitbucket.org/.../foo.git;protocol=ssh,name=foo \
> 	git://git@bitbucket.org/.../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://git@bitbucket.org/.../foo.git;protocol=ssh,name=foo \
 	git://git@bitbucket.org/.../bar.git;protocol=ssh,name=bar \
 "
-------------> snap <--------------

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


More information about the Openembedded-core mailing list