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.
/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