Reputation: 307
In a new kernel package there is two config files inside arch/x86/configs :
when I did make menuconfig, it generate .config file. But It has some default setting also. From where, it take these default setting ? Is it used one of these files or used from /boot directory or from some where else
same question for make config.
Upvotes: 1
Views: 2575
Reputation: 1591
No, It won't pick the config file from /boot
It first determines the processor/OS architecture from $MACHTYPE of your system unless you explicitly mention "ARCH=" variable like in "make ARCH=arm menuconfig",
say
echo $MACHTYPE
x86_64-pc-linux-gnu
Then based on the found architecture, it gets the apt defconfig file from arch/found_arch/configs/apt_def_config_file
Upvotes: 3
Reputation: 4325
The default settings are present as files in the filesystem.
Execute: find . -name \*_defconfig
inside your kernel sources.
The config files present in in /boot were most likely created by one of the packages you installed and not by the kernel build process itself.
Upvotes: 0