Wind River Support Network

HomeDefectsLIN5-1575
Fixed

LIN5-1575 : 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: Dec 19, 2017
Resolved Date: Jun 2, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.4
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Build & Config

Description

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.

Workaround

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/wrlinux-image-glibc-small.bb

echo "python do_get_poky_src () {" >> layers/wr-base/recipes-base/images/wrlinux-image-glibc-small.bb
echo "    bb.build.exec_func('base_do_fetch', d)" >> layers/wr-base/recipes-base/images/wrlinux-image-glibc-small.bb
echo "    bb.build.exec_func('base_do_unpack', d)" >> layers/wr-base/recipes-base/images/wrlinux-image-glibc-small.bb
echo "}" >> layers/wr-base/recipes-base/images/wrlinux-image-glibc-small.bb
echo "addtask do_get_poky_src before do_rootfs" >> layers/wr-base/recipes-base/images/wrlinux-image-glibc-small.bb

make reconfig

make bbs
bitbake -f -c get_poky_src $DEFAULT_IMAGE

Other Downloads


Live chat
Online