[oe] how to override SRC_URI ?

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Mon Sep 13 14:13:12 UTC 2010


Hi,

I was wondering how to override the SRC_URI in a recipe.

linux-libc-headers_2.6.34.bb contains:

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
          "
SRC_URI_nios2 =
"ftp://opensource.axon.nl/mirror/git_sopc.et.ntust.edu.tw.linux-2.6.git_a32ca88c4f3f3850c5c9789db2afab2530c6856d.tar.gz;name=nios2tarball
\
          "

I am building for neek (which has nios2 as TARGET_ARCH).

When I build this recipe I see that both tarballs are fetched (but I
would like only to get the last one).
What seems to be happening is that bb.fetch.init
(lib/bb/fetch/__init_.py) is called twice and triggers FetchData for
both URI's (but I had expected it to be called only once (for _nios2)
as I did not use +=

is my understanding correct?
is this a bug in bitbake or am I abusing things?
And is there perhaps a way to fix the recipe in a way that it does
what it intends to do (use the 2nd uri for nios2 and the first one
otherwise)

Thanks alot!
Frans

PS: this is with bitbake from the todays git head (hash
c07cc08f7fd503ac3013ccc43c79198c4c3b7b29)




More information about the Openembedded-devel mailing list