[yocto] Kernel configuration

Chris Tapp opensource at keylevel.com
Fri Jan 2 16:57:50 PST 2015


Hi Bruce,

On 3 Jan 2015, at 00:08, Bruce Ashfield <bruce.ashfield at gmail.com> wrote:

> On Fri, Jan 2, 2015 at 9:52 AM, Chris Tapp <opensource at keylevel.com> wrote:
>> I thought I knew how to do this, but... ;-)
>> 
>> I'm trying to add configuration items to the valleyisland BSP. I've got the following bbappend:
>> 
>> File: linux-yocto_3.10.bbappend
>> -------
>> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>> 
>> SRC_URI += " file://enable-hid-apple.cfg"
>> SRC_URI += " file://enable-R8169.cfg"
>> 
>> However, these .cfg fragments aren't even getting pulled into the build area.
>> 
>> Adding a reference to a non-existent file is ignored when I would have expected to see a fetch error
>> 
>> SRC_URI += "file://fsdfsdfdsfsd"
>> 
>> What else do I need to do to get my .cfg files pulled in?
> 
> What release / branch is this with ? What you have above is all that you need
> to do. I'm not near my development machine, but will be on Monday and can
> confirm that something hasn't been broken.

This is with 'daisy'.

> In the meantime, have you dumped the environment to confirm that that your
> values really are on the SRC_URI and that something else in the layers
> isn't coming along later and clobbering the SRC_URI (unlikely, but worth ruling
> out).

Ah - that shows:

# $SRC_URI [8 operations]
#   set /media/SSD-RAID/poky-git/meta/conf/bitbake.conf:588
#     ""
#   set /media/SSD-RAID/poky-git/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 /media/SSD-RAID/poky-git/meta/recipes-kernel/linux/linux-yocto_3.10.bb:23
#     "git://git.yoctoproject.org/linux-yocto-3.10.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta"
#   append /media/SSD-RAID/meta-keylevel-sjs/project-specific-layers/opty4-valleyisland/recipes-kernel/linux/linux-yocto_3.10.bbappend:4
#     " file://enable-R8169.cfg"
#   append /media/SSD-RAID/meta-keylevel-sjs/project-specific-layers/opty4-valleyisland/recipes-kernel/linux/linux-yocto_3.10.bbappend:5
#     "file://fsdfsdfdsfsd"
#   finalize ast.py:323 [finalize]
#     "was: git://git.yoctoproject.org/linux-yocto-3.10.git;bareclone=1;branch=${KBRANCH},${KMETA};name=machine,meta  file://enable-R8169.cfg file://fsdfsdfdsfsd"
#   override[valleyisland-64]:set /media/SSD-RAID/meta-intel-git-2/meta-isg/meta-valleyisland/recipes-kernel/linux/linux-yocto_3.10.bbappend:33
#     "git://git.yoctoproject.org/linux-yocto-3.10.git;protocol=git;nocheckout=1;branch=${KBRANCH},${KMETA},valleyisland-io-3.0;name=machine,meta,valleyisland-io"
#   finalize override[valleyisland-64]:
#     "git://git.yoctoproject.org/linux-yocto-3.10.git;protocol=git;nocheckout=1;branch=${KBRANCH},${KMETA},valleyisland-io-3.0;name=machine,meta,valleyisland-io"
# computed:
#   "git://git.yoctoproject.org/linux-yocto-3.10.git;protocol=git;nocheckout=1;branch=${KBRANCH},${KMETA},valleyisland-io-3.0;name=machine,meta,valleyisland-io"
SRC_URI="git://git.yoctoproject.org/linux-yocto-3.10.git;protocol=git;nocheckout=1;branch=standard/base,meta,valleyisland-io-3.0;name=machine,meta,valleyisland-io"

If I change my bbappend to use lines of the form:

  SRC_URI_valleyisland-64 += " file://enable-R8169.cfg"

then the fragments make it in to the configuration.

I've never really understood machine overrides that well - I thought that using a plain SRC_URI would apply regardless, but that's obviously not the case ;-)

Thanks for the pointer :-)

--

Chris Tapp
opensource at keylevel.com
www.keylevel.com

----
You can tell you're getting older when your car insurance gets real cheap!




More information about the yocto mailing list