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

Kristupas Savickas kristupas.savickas at teltonika.lt
Mon Jan 7 06:00:39 PST 2019


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:


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?

-- 
Pagarbiai,
Linux programuotojas
Kristupas Savickas
+370 633 36795



More information about the yocto mailing list