[meta-xilinx] Add kernel configuration options using configuration fragments in custom layer
Artjom Rjabov
artik6 at yandex.com
Fri Apr 27 03:09:01 PDT 2018
I tried that. And nope, it doesn't change anything. But with SCC file the bitbake displays a proper warning:
"WARNING: linux-xlnx-4.6-xilinx-v2016.3+gitAUTOINC+0e4e407149-r0 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration:
---------- CONFIG_I2C_SLAVE -----------------
Config: CONFIG_I2C_SLAVE
From: <path>/poky/build/tmp/work-shared/zedboard-zynq7/kernel-source/.kernel-meta/configs/fragments.cfg
Requested value: CONFIG_I2C_SLAVE = y
Actual value: # CONFIG_I2C_SLAVE is not set
Config 'I2C_SLAVE' has the following conditionals:
(none)
Dependency values are:
"
But everything else remains the same. Requested value ends up in mismatch-all.txt and the kernel config remains unchanged.
27.04.2018, 10:26, "Alan Levy" <alan.levy at plextek.com>:
> You're missing the SCC file, see https://www.yoctoproject.org/docs/2.4.1/kernel-dev/kernel-dev.html#adding-recipe-space-kernel-features. Inside the SCC file you include a reference to the CFG file, for example:
>
> define KFEATURE_DESCRIPTION "Kernel configuration fragments"
> define KFEATURE_COMPATIBILITY board
> kconf hardware fragments.cfg
>
> ALAN LEVY, Lead Consultant, Embedded Systems
>
> Plextek Consulting, The Plextek Building, London Road, Great Chesterford, Saffron Walden, CB10 1NY, UK
> T: +44 (0) 1799 533200 E: alan.levy at plextek.com W: www.plextek.com
>
> -----Original Message-----
> From: Artjom Rjabov [mailto:artik6 at yandex.com]
> Sent: 26 April 2018 16:18
> To: meta-xilinx at yoctoproject.org
> Subject: [meta-xilinx] Add kernel configuration options using configuration fragments in custom layer
>
> 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-source/.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
More information about the meta-xilinx
mailing list