Where can I find the .config file used to build the kernel?
I use:
$ bitbake virtual/kernel -c menuconfig to open the menuconfig
I just ran the menuconfig and I have a big problem : there are no activated option. The .config file (?) looks deleted or broken
I have two directory :
I have to get the old configuration file and paste it to the broken configuration.
Thanks in advance.
Yocto finds kernel configuration in different ways,
KBUILD_DEFCONFIG
variable in your recipe to use the defconfig
which is already present in the source tree.SRC_URI
of your linux kernel recipe or in .bbappend
to your kernel recipe (may be in different layer).If you modify the kernel configuration file using menuconfig as bitbake virtual/kernel -c menuconfig
, then bitbake switches does,
PREFERRED_PROVIDER_virtual/kernel
tmp/work/<MACHINE_NAME>-<DISTRO_NAME>-linux-gnuenabi/<PREFERRED_PROVIDER_virtual/kernel>/<KERNEL_VERSION>/linux-*build/
and run make menuconfig
with according cross compiler prefixIf you are lucky and you haven't accidentally saved (twice) of menuconfig output, then you find your saved config as .config.old
in the above path. Usually you will find two/three .config files,
SRC_URI
's defconfig or in kernel defconfig options itselfNote: Kernel is extracted as source (during do_unpack) in tmp/work-shared/<MACHINE>/kernel-source/
and linked to tmp/work/<MACHINE_NAME>-<DISTRO_NAME>-linux-gnuenabi/<PREFERRED_PROVIDER_virtual/kernel>/<KERNEL_VERSION>/git
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With