[yocto] Compiling custom kernel

Leonardo Sandoval leonardo.sandoval.gonzalez at linux.intel.com
Wed Mar 29 10:32:37 PDT 2017


On Wed, 2017-03-29 at 19:11 +0200, Alvaro Garcia wrote:
> Hi, I'm trying to compile a custom kernel (just custom config).
> I created a recipe called linux-yocto in my layer:
> meta-test
> -recipes-test
> --linux-yocto
> ---linux-yocto.bbapend

you may need to include the kernel version to  your bbappend
(linux-yocto_4.4.bappend)


> ---files
> ----enable_various_options.cfg
> 
> The content of the linux-yocto.bbapend is:
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> SRC_URI += "file://enable_various_options.cfg"
> 
> And the content of enable_various_options.cfg is:
> CONFIG_DRM_NOUVEAU=y
> 
> The way I generated enable_various_options.cfg was
> bitbake -c menuconfig virtual/kernel
> Select my configuration
> bitbake -c devshell virtual/kernel
> diff of the original .config and the new one.
> I just followed the instructions here
> https://lists.yoctoproject.org/pipermail/yocto/2014-June/020174.html
> and here
> https://software.intel.com/sites/default/files/m/4/d/8/5/8/42868-11__Developing_Kernel_Module_on_Yocto.pdf
> 
> Then I run bitbake core-image-x11
> I got this warning:
> WARNING: /home/amacho/poky/meta/recipes-kernel/linux/linux-yocto_4.4.bb.do_kernel_configme is tainted from a forced run
> but the kernel is not compiled with the new config (I do md5 to
> vmlinuz and was exactly the same).
> 
> Can you help me to find the way I can compile this kernel?
> 
> Thank you
> 
> 
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto





More information about the yocto mailing list