[meta-freescale] save kernel configuration

Matthias.Heise at atlas-elektronik.com Matthias.Heise at atlas-elektronik.com
Thu Nov 27 04:12:40 PST 2014

Hello Chris,

thank you for your hints, I just read the part of the manual and I have doubts about the correct locations, the manual says :

"For example, suppose you had a set of configuration options in a file called myconfig.cfg. If you put that file inside a directory named linux-yocto that resides in the same directory as the kernel's append file and then add a SRC_URI statement such as the following to the kernel's append file,"

In my case I have in the folder /sources/meta-fsl-arm-extra/recipes-kernel the folder linux-wandboard-3.10.17 and also the files linux-wandboard-3.10.17.bb and linux-wandboard.inc, no append file
So I added a folder "linux-wandboard" and put in the "myconfig.cfg" test-file.  In the linux-wandboard.inc I added file://myconfig.cfg<file:///\\myconfig.cfg> to the SRC_URI.
Is that correct ?
I can't test so quickly, as after making that last change and re-running bitbake it started fetching the linux source again (which goes very slow as I have a slow connection here)... is that re-fetching normal ?
Thank you

Von: Chris Tapp [mailto:opensource at keylevel.com]
Gesendet: Donnerstag, 27. November 2014 09:20
An: Heise, Matthias
Cc: meta-freescale at yoctoproject.org
Betreff: Re: [meta-freescale] save kernel configuration

Hi Mat,

On 27 Nov 2014, at 07:46, <Matthias.Heise at atlas-elektronik.com<mailto:Matthias.Heise at atlas-elektronik.com>> <Matthias.Heise at atlas-elektronik.com<mailto:Matthias.Heise at atlas-elektronik.com>> wrote:

Hi there,

when I'm turning options on and off in menuconfig these changes are usually saved in the .config file, which resides (in my case)in /build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboardd/3.10.17-r0/git ,
right ? As this configuration is obviously downloaded from git, I've got a few questions:
1.       Is this configuration integral part of (in this case) the linux-wandboard-3.10.17, so if I change the configuration the version must be changed ?
2.       Which purpose does the defconfig file in /sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard-3.10.17 have ?
3.       Or is the defconfig file copied, changed by recipe (linux-wandboard_3.10.17.bb, f.e. LOCALVERSION ) and if I change something and want to include this into the image recipe I copy the tweaked .config file into a new defconfig ? Or how would be the procedure ?

1. The version number is simply the kernel version that is being used - configuration just selects which features are exposed;
2. The defconfig is the default configuration that will be used as the .config when the kernel is built for the wandboard;
3. Any kernel changes that are requested else where (e.g. configuration fragments, below) modify what is in .config before the build takes place.

Any changes you make using menuconfig will be lost as they are stored in the work area. If you want to be able to reapply changes you probably want to look at using configuration fragments.

I would start by reading the section "Creating Configuration Fragments" in the documentation (www.yoctoproject.org/docs/1.7/mega-manual/mega-manual.html<http://www.yoctoproject.org/docs/1.7/mega-manual/mega-manual.html>). Configuration fragments are much easier to manage and will apply to any kernel version that supports the option(s).


Chris Tapp
opensource at keylevel.com<mailto:opensource at keylevel.com>

You can tell you're getting older when your car insurance gets real cheap!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20141127/cdb9a6f7/attachment.html>

More information about the meta-freescale mailing list