Changing Kernel Configuration in Yocto

1,697 views
Skip to first unread message

Mike Wilson

unread,
Feb 10, 2014, 3:26:48 PM2/10/14
to wand...@googlegroups.com
Hello!
  I am attempting to add one-wire support to the kernel. I am using the yocto build system. I am attempting to 'append' kernel configuration changes via .cfg files. This process is documented in the yocto manuals.

I have created my own layer, and I have recipes within that layer working correctly.
In that layer, I have:
MyLayer/recipes-kernel/linux
   linux-wandboard_3.0.35.bbappend
MyLayer/recipes-kernel/linux/files/
   one-wire.cfg

File contents linux-wandboard_3.0.35.bbappend:
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += " \
    file://one-wire.cfg \
"

File contents one-wire.cfg:
CONFIG_W1=y
CONFIG_W1_CON=y

My linux build directory is at build/tmp/work/wandboard_dual-poky-linux-gnueabi/linux-wandboard/3.0.35-r0.
The kernel compiles and installs without warning. (I just run bitbake myImage, and I can see the kernel compiling). one-wire.cfg ends up in the build directory, next to defconfig. But when I look in the build directory, git/.config doesn't have the change I requested. 

Can you give me any clue as to why my config changes are not getting into the kernel? Or are they and I am not looking in the right place?

Thanks!

Mike





jakub nowak

unread,
May 7, 2014, 8:02:17 AM5/7/14
to wand...@googlegroups.com
Please look on oe layer for supporting this kind of patches(there is some topic about it in other groups forums), as I know this they are not supporting this. You need to change whole defconfig. If you would find better way please give a response, I also get stuck on this.

John Weber

unread,
May 7, 2014, 11:00:01 AM5/7/14
to wand...@googlegroups.com
Hi Mike and Jakub,


On 5/7/14, 7:02 AM, jakub nowak wrote:
Please look on oe layer for supporting this kind of patches(there is some topic about it in other groups forums), as I know this they are not supporting this. You need to change whole defconfig. If you would find better way please give a response, I also get stuck on this.
From what I understand this functionality is only supported on official Yocto kernel recipes, none of which are used in Freescale community BSP.

Normally what I do is to create a new layer with a bbappend as Jakub mentions below.


W dniu poniedziałek, 10 lutego 2014 21:26:48 UTC+1 użytkownik Mike Wilson napisał:
Hello!
  I am attempting to add one-wire support to the kernel. I am using the yocto build system. I am attempting to 'append' kernel configuration changes via .cfg files. This process is documented in the yocto manuals.

I have created my own layer, and I have recipes within that layer working correctly.
In that layer, I have:
MyLayer/recipes-kernel/linux
   linux-wandboard_3.0.35.bbappend
MyLayer/recipes-kernel/linux/files/
   one-wire.cfg

File contents linux-wandboard_3.0.35.bbappend:
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += " \
"

File contents one-wire.cfg:
CONFIG_W1=y
CONFIG_W1_CON=y

My linux build directory is at build/tmp/work/wandboard_dual-poky-linux-gnueabi/linux-wandboard/3.0.35-r0.
The kernel compiles and installs without warning. (I just run bitbake myImage, and I can see the kernel compiling). one-wire.cfg ends up in the build directory, next to defconfig. But when I look in the build directory, git/.config doesn't have the change I requested. 

Can you give me any clue as to why my config changes are not getting into the kernel? Or are they and I am not looking in the right place?

Thanks!

Mike

Regards,
John
Reply all
Reply to author
Forward
0 new messages