Skip to contentSkip to conversation

Where is the kernel configuration file?

DISCUSSION Paul D. DeRocco 2 participants 2 messages Mar 6, 2021

lore
Share & tools
lore
#0 lore raw

I've found various answers to this. The correct answer appears to be in tmp/work-shared/<machine>/kernel-source, but I didn't even have this directory, after doing a working build of core-image-minimal. After more searching, I discovered that this was because most of my build was from shared state. So I ran "bitbake linux-yocto-rt -c menuconfig", and it unpacked the kernel source into this location, but there was no .config file. I told menuconfig to save the current configuration under that name, but it said it hadn't changed, so didn't save it.

I ran menuconfig again, and told it to save it as "fooconfig", because I just wanted to look at it. This time, it didn't complain, but it didn't create that file either. So I ran it again, and told it to save it as "/home/pauld/fooconfig". That finally worked.

So the minor question is: When I told it to save it as "fooconfig", why didn't it create that file in the kernel-source directory? Or did something in the do_menuconfig code subvert the menuconfig program and delete its output?

The bigger question is: Where is the config file that is actually used to build the kernel? I'm trying various builds in different trees, and would like to compare the configurations. There must be _some_ file it's reading, mustn't there?

Signature · 2 lines
Ciao,               Paul D. DeRocco
Paul                mailto:[email protected]
#1 lore raw

Hi, The .config will be under tmp/work/(your arch)/linux-(whatever flavour)/build-(some suffix) since it is a generated intermediate and not considered to be source

---

Regards,

Darcy

Darcy Watkins :: Senior Staff Engineer, Firmware

SIERRA WIRELESS
Direct +1 604 233 7989<tel:+1%20604%20233%207989> :: Fax +1 604 231 1109<tel:+1%20604%20231%201109> :: Main +1 604 231 1100<tel:+1%20604%20231%201100>
13811 Wireless Way :: Richmond, BC Canada V6V 3A4<x-apple-data-detectors://3/1>
[M5]
[email protected]<mailto:[email protected]> :: www.sierrawireless.com<http://www.sierrawireless.com/>

On Mar 6, 2021, at 1:37 AM, Paul D. DeRocco via lists.yoctoproject.org <[email protected]> wrote:

I've found various answers to this. The correct answer appears to be in tmp/work-shared/<machine>/kernel-source, but I didn't even have this directory, after doing a working build of core-image-minimal. After more searching, I discovered that this was because most of my build was from shared state. So I ran "bitbake linux-yocto-rt -c menuconfig", and it unpacked the kernel source into this location, but there was no .config file. I told menuconfig to save the current configuration under that name, but it said it hadn't changed, so didn't save it.

I ran menuconfig again, and told it to save it as "fooconfig", because I just wanted to look at it. This time, it didn't complain, but it didn't create that file either. So I ran it again, and told it to save it as "/home/pauld/fooconfig". That finally worked.

So the minor question is: When I told it to save it as "fooconfig", why didn't it create that file in the kernel-source directory? Or did something in the do_menuconfig code subvert the menuconfig program and delete its output?

The bigger question is: Where is the config file that is actually used to build the kernel? I'm trying various builds in different trees, and would like to compare the configurations. There must be _some_ file it's reading, mustn't there?

--

Ciao, Paul D. DeRocco
Paul mailto:[email protected]