Kernel configuration using bitbake menuconfig in yocto?

Viewed 6621

I am trying to remove some drivers from the yocto kernel using menuconfig like this below..

bitbake -c menuconfig virtual/kernel

after all the configurations i generate the fragment.cfg with.

bitbake -c diffconfig virtual/kernel

Then i make a .bbappend file in recipes-kernel/linux directory and bitbake my image.

Now the problem is that all the configuration which i do is reset to the default everytime for some reason. how can i make the configuration permanent ?

1 Answers

One solution is to create own receipt and override default.
For example, we are using linux-yocto-rt kernel and create own receipt with name linux-yocto-rt and following files:

linux-yocto-rt\linux-yocto-rt_4.9.bb
linux-yocto-rt\linux-yocto-rt\defconfig

defconfig file changes default configuration.
In bb file you should add link to this file like:

SRC_URI += "file://defconfig "

You can always look inside official documentation

Related