[yocto] bitbake cannot locate source file from recipe

peterengcomau001 at adam.com.au peterengcomau001 at adam.com.au
Mon Dec 29 08:28:05 PST 2014


 The result of bitbake -e linux-yocto-custom gives this output:

# $FILESPATH [2 operations]
#   set /home/lachlan/poky/meta/conf/documentation.conf:174
#     [doc] "The default set of directories the OpenEmbedded
build system uses when searching for patches and files. It is defined
in the base.bbclass class found in meta/classes in the Source D
irectory. Do not hand-edit the FILESPATH variable."
#   set /home/lachlan/poky/meta/classes/base.bbclass:83
#     "${@base_set_filespath(["${FILE_DIRNAME}/${BP}",
"${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
# computed:
#   "${@base_set_filespath(["${FILE_DIRNAME}/${BP}",
"${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
FILESPATH="/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/sama5d3xek/poky:/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/files/poky:/home/lachlan/poky/meta-atmel/recipes-kernel
/linux/linux-yocto-custom-3.10+AUTOINC+35158dd80a/poky:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom/poky:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/poky:/h
ome/lachlan/poky/meta-atmel/recipes-kernel/linux/files/sama5d3xek/sama5d3xek:/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/files/sama5d3xek:/home/lachlan/poky/meta-atmel/recipes-kernel/
linux/linux-yocto-custom-3.10+AUTOINC+35158dd80a/sama5d3xek:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom/sama5d3xek:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/fi
les/sama5d3xek:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/sama5d3xek/armv7a:/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/files/armv7a:/home/lachlan/poky/meta-atmel/recipe
s-kernel/linux/linux-yocto-custom-3.10+AUTOINC+35158dd80a/armv7a:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom/armv7a:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/armv7a:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/sama5d3xek/arm:/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/files/arm:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom-3.10+AUTOINC+35158dd80a/arm:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom/arm:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/arm:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/sama5d3xek/:/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/files/:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom-3.10+AUTOINC+35158dd80a/:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom/:/home/lachlan/poky/meta-atmel/recipes-kernel/linux/files/"
#

# $SRC_URI [6 operations]
#   set /home/lachlan/poky/meta/conf/bitbakeconf:588
#     ""
#   set /home/lachlan/poky/meta/conf/documentation.conf:378
#     [doc] "The list of source files - local or remote. This
variable tells the OpenEmbedded build system what bits to pull in for
the build and how to pull them in."
#   set
/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom_3.10.bb:46
#    
"git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1"
#   append
/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/linux-yocto-custom_3.10.bbappend:10
#     " file://sama5d3xek_lsp.dts "
#   set
/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom_3.10.bbappend:9
#    
"git://github.com/linux4sam/linux-at91.git;protocol=git;branch=${KBRANCH};nocheckout=1"
#   append
/home/lachlan/poky/meta-atmel/recipes-kernel/linux/linux-yocto-custom_3.10.bbappend:10
#     "file://defconfig"
# computed:
#  
"git://github.com/linux4sam/linux-at91.git;protocol=git;branch=${KBRANCH};nocheckout=1
file://defconfig"
SRC_URI="git://github.com/linux4sam/linux-at91.git;protocol=git;branch=linux-3.10-at91;nocheckout=1
file://defconfig"

I can infer from this that it did not pickup the dts file as a valid
source file, but I cannot seem to workout why?
From the FILEPATH it appears that is has extracted the correct
location of the sourcefile at:
/home/lachlan/poky/meta-atmel-lsp/recipes-kernel/linux/files/sama5d3xek:


 Is there something else I should be looking for or is there
something in this that can highlight the problem
Regards
Lachlan

----- Original Message -----
From: "Paul Eggleton" 
To:, 
Cc:
Sent:Mon, 29 Dec 2014 14:46:20 +0000
Subject:Re: [yocto] bitbake cannot locate source file from recipe

 On Tuesday 30 December 2014 00:26:05 peterengcomau001 at adam.com.au
wrote:
 > I have had some success and some failure.
 > Attempt 1: FAILI changed the SRC to:FILESEXTRAPATHS_prepend :=
 > "${THISDIR}/files:" removing the machine name and the space. The
 > machine is sama5d3xek.
 > I still get an the error : (the directory is now changed)
 > 
 > > | DEBUG: Executing shell function do_install
 > > | cp: cannot stat
 > 
 >
'/home/lachlan/poky/build-atmel/tmp/work/sama5d3xek-poky-linux-gnueabi/linux
 > > -yocto-custom/3.10+AUTOINC+35158dd80a-r5/sama5d3xek_lspdts': No
 > > such file or directory
 > >
 > > 
 > 
 > Note:
 > There is already a .bbappend file for this recipe in the original
 > source. Can a problem occur having two bbappend recipes each
 > containing FILESEXTRAPATHS_prepend := "${THISDIR}/files:" but
 > referring to different ${THISDIR} directories?
 > The existing linux-yocto-custom_3.10.bbppend file contains:KBRANCH
=
 > "linux-3.10-at91"SRCREV = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -
i
 > am on a differnt computer so I wont copy the numbersPV =
 > "${LINUX_VERSION}+${SRCPV}"PR = "r5"FILESEXTRAPATHS_prepend :=
 > "${THISDIR}/files/${MACHINE}:" SRC_URI =
 >
"git://github.com/linux4sam/linux-at91git;protocol=git;branch=${KBRANCH};noc
 > heckout=1"SRC_URI += "file://defconfig"
 > do_deploy_append () {.......}
 > Attempt 2: FAIL I tried making the source file name
incorrectSRC_URI
 > += " file://sama5d3xek_wrong.dts "The same error results. I would
have
 > thought it would pick up a different error if the original source
file
 > could not be found.
 > Attempt 3: THIS WORKEDI also copied the following code to the
 > original vendor supplied .bbppend recipe, as well as moving the
 > sama5d3xek_lsp.dts to the correct directory for that recipeSRC_URI
+=
 > " file://sama5d3xek_lsp.dts "
 > KERNEL_DEVICETREE += " sama5d3xek_lsp.dtb"
 > 
 > do_install_prepend () {
 > cp ${WORKDIR}/sama5d3xek_lsp.dts
 > ${WORKDIR}/linux/arch/${ARCH}/boot/dts
 > }
 > 
 > This worked and the device tree blob was built. However, I don't
want
 > to modify the vendor supplied source files and would like another
way
 > of doing this in my own layer.

 You'd have to look at what bitbake -e linux-yocto-custom | less
reports as the 
 values of the variables you are changing (SRC_URI, FILESEXTRAPATHS,
and 
 do_install), because it depends on what this other bbappend is doing
and in 
 what order the bbappends are applied (the latter is determined by
the relative 
 layer priorities).

 Cheers,
 Paul

 -- 

 Paul Eggleton
 Intel Open Source Technology Centre
 -- 
 _______________________________________________
 yocto mailing list
 yocto at yoctoproject.org
 https://lists.yoctoproject.org/listinfo/yocto

---- Message sent via Adam Internet WebMail - http://www.adam.com.au/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141230/851daf5b/attachment.html>


More information about the yocto mailing list