[linux-yocto] SRC_URI and local repositories

Bruce Ashfield bruce.ashfield at windriver.com
Sat May 18 20:24:59 PDT 2013


On 13-05-18 04:21 PM, Darren Hart wrote:
> I have a situation I cannot explain.
>
> If I switch the SRC_URI in linux-yocto-minnow_3.8.bb to point to a local
> repository:
>
> SRC_URI =
> "git:///home/dvhart/source/linux/linux-yocto-3.8.git;protocol=file;nocheckout=1;branch=${KBRANCH},${KMETA},emgd-1.16;name=machine,meta,emgd
> \
>             file://media.cfg"
>
> I get this:
>
> $ bitbake core-image-minimal
> Loading cache: 100% |##############################################|
> ETA:  00:00:00
> Loaded 1156 entries from dependency cache.
> NOTE: Error during finalise of
> /build/yocto/danny/minnow_20130227154920/meta-minnow/recipes-kernel/linux/linux-yocto-minnow_3.8.bb
> ERROR: ExpansionError during parsing
> /build/yocto/danny/minnow_20130227154920/meta-minnow/recipes-kernel/linux/linux-yocto-minnow_3.8.bb:
> Failure expanding variable do_patch: ExpansionError: Failure expanding
> variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which
> triggered exception FetchError: Fetcher failure: SRCREV was used yet no
> valid SCM was found in SRC_URI
> ERROR: Command execution failed: Exited with 1
>
> If I COPY the bb to a bbappend and delete all but the EXACT SRC_URI
> line, it works.
>
> Is there some intrinsic rule that only bbappends can have local
> repositories in their URI ?

None that I know of. I've used recipes against danny that aren't 
bbappends, but
do refer to local repos in their SRC_URI.

I'd have to set this up myself and poke at it a bit to suggest anything 
concrete
to try.

It smells like it is related to parse order .. I'm going to have to try 
this myself!

Bruce

>
> This is on danny.
>




More information about the linux-yocto mailing list