[meta-xilinx] Add kernel configuration options using configuration fragments in custom layer

Oleg K Dzhimiev oleg at elphel.com
Fri Apr 27 10:29:36 PDT 2018


Have you tried cleaning?
~$ bitbake linux-xlnx -c clean -f
~$ bitbake linux-xlnx -c kernel_configcheck -f

On Fri, Apr 27, 2018 at 4:37 AM, Artjom Rjabov <artik6 at yandex.com> wrote:

> CONFIG_I2C is enabled (by default).
>
>
> 27.04.2018, 07:14, "Oleg K Dzhimiev" <oleg at elphel.com>:
>
> Hi,
>
> Try setting CONFIG_I2C?
> https://github.com/Xilinx/linux-xlnx/blob/master/drivers/i2c/Kconfig
>
> Regards,
> Oleg
>
> On Thu, Apr 26, 2018 at 9:18 AM, Artjom Rjabov <artik6 at yandex.com> wrote:
>
> I am currently trying to modify the kernel configuration (overwrite
> default xilinx-linux layer configs) by adding configuration fragments to my
> custom layer like this :
>
> linux-xlnx_%.bbappend file:
>
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}"
> > SRC_URI =+ "file://fragments.cfg"
>
> fragments.cfg:
>
> > CONFIG_I2C_SLAVE = y
>
> Then I run "bitbake \my-image\" and it parses the fragment perfectly, but
> it doesn't look like it ends up in the final config.
>
> mismatch-all.txt:
>
> > Config: CONFIG_I2C_SLAVE
> > From: <path-to>/poky/build/tmp/work-shared/zedboard-zynq7/kernel-s
> ource/.kernel-meta/configs/fragments.cfg
> > Requested value:  CONFIG_I2C_SLAVE = y
> > Actual value:     # CONFIG_I2C_SLAVE is not set
>
> How to tell bitbake to use my config parameters over the default ones?
> Actually, there are a lot of parameters in the "mismatch-all" from
> different config files scattered all across "kernel-source" directory. What
> is the priority?
>
> Additionally, I tried to use SCC file with kconf, but it changes nothing.
> It displays a warning during compilation: "specified values did not make it
> into the kernel's final configuration: CONFIG_I2C_SLAVE". Same thing, but
> with a proper warning.
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
>
>
> Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783 5555 x124
Elphel, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20180427/e79148eb/attachment-0001.html>


More information about the meta-xilinx mailing list