Wind River Support Network


LIN6-3523 : When using a SRC_URI in an image recipe in a layer configure does not create the copied recipe correctly

Created: May 9, 2013    Updated: Mar 10, 2016
Resolved Date: Dec 2, 2013
Previous ID: LIN5-1590, LIN6-2879
Found In Version: 6.0
Fix Version: 6.0
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config


A reference to the original layer location is required in the configure generated version of the image recipe.

Without the reference the example in this defect will yeild the following error:

ERROR: Function failed: Fetcher failure for URL: 'file://EXAMPLE_IMAGE_FETCH.txt'. Unable to fetch URL from any source.


Copy any SRC_URI referenced files in the original recipe from the layer into the layers/local/recipe-img/images directory.

Steps to Reproduce

/configure --enable-board=qemux86-64 --enable-rootfs=glibc_small

mkdir -p layers/wr-base/recipes-base/images/wrlinux-image-glibc-small
echo testing > layers/wr-base/recipes-base/images/wrlinux-image-glibc-small/EXAMPLE_IMAGE_FETCH.txt

echo 'SRC_URI = "file://EXAMPLE_IMAGE_FETCH.txt"' >> layers/wr-base/recipes-base/images/

echo "python do_get_poky_src () {" >> layers/wr-base/recipes-base/images/
echo "'base_do_fetch', d)" >> layers/wr-base/recipes-base/images/
echo "'base_do_unpack', d)" >> layers/wr-base/recipes-base/images/
echo "}" >> layers/wr-base/recipes-base/images/
echo "addtask do_get_poky_src before do_rootfs" >> layers/wr-base/recipes-base/images/

make reconfig

make bbs
bitbake -f -c get_poky_src $DEFAULT_IMAGE

Other Downloads

Live chat