[OE-core] How to use externalsrc with git workspace

Richard Purdie richard.purdie at linuxfoundation.org
Tue Mar 29 12:28:42 UTC 2016


On Tue, 2016-03-29 at 08:25 -0400, Cliff Brake wrote:
> On 03/28/2016 06:28 PM, Richard Purdie wrote:
> > > I tried nobranch=1;rev=HEAD, but then that conflicts with
> > > ${AUTOREV}.
> > Did you just try nobranch=1 and leave rev to get set from SRCREV?
> 
> That will parse, but it puts the wrong git rev in the PV:
> 
> The following package gets built:
> 
> blkqcl-app-tune_1.4+gitr1+a97fcb58e6-r1.0_cortexa9hf-vfp-neon.ipk
> 
> But, the actual version of the source that gets built is
> 0edb656fc9a1a77d75eaa49a17586deb4c986bb1.
> 
> a97... is the version of the branch (default is master) in the
> workspace.
> 
> So this would work if we did not care what gitv got put in the PV. 
>  There is
> also the issue of bitbake not rebuilding the source if you change the
> git
> version of the workspace, but the branch happens to not change.

At least from my perspective, this is what *should* work and the fact
it doesn't is a bug somewhere. Adding extra things to the fetcher would
likely just workaround it. Filing a bug report for it would be the
likely next step.

Cheers,

Richard




More information about the Openembedded-core mailing list