Hi, I have an issue with the linux-libc-headers recipe for nios2. Maybe I am trying to do something what is not possible.
The recipe 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 was under the assumption that when building with TARGET_ARCH set to "nios2" (e.g. for machine neek) I would get the 2nd uri. However actually the system seems to concatenate these two URI's. I have locally modified classes/base.bbclass function base_do_unpack do dump some info: python base_do_unpack() { from glob import glob srcurldata = bb.fetch.init(d.getVar("SRC_URI", True).split(), d, True) bb.note("unpacking SRC_URI %s" % d.getVar("SRC_URI", True)) bb.note("unpacking SRC_URI split %s" % d.getVar("SRC_URI", True).split()) bb.note("unpacking srcurldata %s" % srcurldata) This generates the following output NOTE: unpacking SRC_URI ftp://opensource.axon.nl/mirror/git_sopc.et.ntust.edu.tw.linux-2.6.git_a32ca88c4f3f3850c5c9789db2afab2530c6856d.tar.gz;name=nios2tarball NOTE: package linux-libc-headers-2.6.34-r1: task do_distribute_sources: Started NOTE: unpacking SRC_URI split ['ftp://opensource.axon.nl/mirror/git_sopc.et.ntust.edu.tw.linux-2.6.git_a32ca88c4f3f3850c5c9789db2afab2530c6856d.tar.gz;name=nios2tarball'] NOTE: unpacking srcurldata {'ftp://opensource.axon.nl/mirror/git_sopc.et.ntust.edu.tw.linux-2.6.git_a32ca88c4f3f3850c5c9789db2afab2530c6856d.tar.gz;name=nios2tarball': <bb.fetch.FetchData object at 0x12786610>, 'http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2': <bb.fetch.FetchData object at 0x12786590>} NOTE: unpacking url /mirror/git_sopc.et.ntust.edu.tw.linux-2.6.git_a32ca88c4f3f3850c5c9789db2afab2530c6856d.tar.gz NOTE: Unpacking ../downloads/git_sopc.et.ntust.edu.tw.linux-2.6.git_a32ca88c4f3f3850c5c9789db2afab2530c6856d.tar.gz to ../tmp/work/nios2-linux/linux-libc-headers-2.6.34-r1/ NOTE: package linux-libc-headers-2.6.34-r1: task do_distribute_sources: Succeeded NOTE: unpacking url /pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2 ... The odd thing is that the first two debug statements deliver exactly what I expect. However srcurldata seems to create fetch objects for both url's. I didn't manage yet to debug bb.fetch.init, but maybe someone has already an idea on this (or on how to debug this). Anyway, any help is appreciated. Frans. _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel