[yocto] Incorrect config generated for yocto-style kernel (sumo)

Bruce Ashfield bruce.ashfield at windriver.com
Wed Jan 9 08:55:32 PST 2019


On 2019-01-07 9:00 a.m., Kristupas Savickas wrote:
> Hello,
> 
> I'm porting a kernel to use yocto-style build process. The kernel 
> fetches fine, but there's a problem with '.config' file generation. I'd 
> like to supply a 'defconfig' and a configuration fragment file 
> 'test.cfg' (which should be overlayed on top of 'defconfig') from the 
> bitbake recipe. What I end up getting is a '.config' file that looks 
> like it used the default values - neither 'defconfig' nor 'test.cfg' was 
> used. Here's what I have going in my recipe:

The defconfig + fragment wouldn't have been ignored, but it is
also possible that other settings / fragments were applied that
are making it look like they were not applied.

Can you look at your kernel-source/.kernel-meta/bsp_definition
file, and see what was used as the entry point to the configuration ?
If something was generated by the system, it would be pulling in
the standard definitions/fragments.

Cheers,

Bruce

> 
> 
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> 
> inherit tlt-image kernel
> require recipes-kernel/linux/linux-yocto.inc
> 
> SRCREV    = "8f450c58d196723a78527b643910b90d7cd6549f"
> 
> SRC_URI = " \
>          git://git@REDACTED.git;protocol=ssh \
>          file://defconfig \
> "
> 
> SRC_URI_append_test = "file://test.cfg"
> 
> PV = "3.18.20"
> KBRANCH = "master"
> 
> KMACHINE = "test"
> KARCH = "arm"
> 
> And here's what the directory structure looks like:
> 
> meta-test/recipes-kernel/linux-test
> ├── meta-test/recipes-kernel/linux-test/files
> │   ├── meta-test/recipes-kernel/linux-test/files/defconfig
> │   └── meta-test/recipes-kernel/linux-test/files/test.cfg
> └── meta-test/recipes-kernel/linux-test/linux-test_git.bb
> 
> Configuration files are fetched as intended:
> 
> $ ls build/tmp-glibc/work/test-oe-linux-gnueabi/linux-test/3.18.20-r0/
> defconfig        linux-test-standard-build  recipe-sysroot-native test.cfg
> license-destdir  recipe-sysroot               temp
> 
> 
> I've followed instructions from 
> https://www.yoctoproject.org/docs/2.5/kernel-dev/kernel-dev.html#creating-a-defconfig-file 
> and 
> https://www.yoctoproject.org/docs/2.5/kernel-dev/kernel-dev.html#creating-config-fragments. 
> 
> 
> Am I doing something wrong here?
> 



More information about the yocto mailing list