John3245
John3245

Reputation: 307

when I run make menuconfig or make config how it works?

In a new kernel package there is two config files inside arch/x86/configs :

  1. i386_defconfig 2. x86_64_defconfig

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

Answers (2)

Sun
Sun

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

wojciii
wojciii

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

Related Questions