The .config
file is not generally supposed to be modified manually, event though you can.
The clean and simple way is:
make <device>_defconfig
make menuconfig
make savedefconfig
- creates a file named
defconfig
cp defconfig arch/$ARCH/configs/<device>_defconfig
- where
$ARCH
is the CPU architecture, e.g. arm
A defconfig is similar to .config
, except it contains only values that differ from their default values. As such they are much shorter and readable. The entire .config
is very verbose but it's what make menuconfig
edits and what the kernel needs to build.