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

Martin Jansa martin.jansa at gmail.com
Tue Jun 16 14:40:13 UTC 2015


On Tue, Jun 16, 2015 at 04:12:49PM +0200, 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?

You need to set SRCREV_FORMAT variable.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150616/3b8d3f65/attachment-0002.sig>


More information about the Openembedded-core mailing list