Contents
How to make Linux kernel make defconfig file?
I can use the following command to create a Linux kernel .config file based on a specified architecture default for a custom ARM-based board: I thought that this command more or less copies ./arch/arm/configs/var_som_mx6_android_defconfig to ./.config. However the resulting .config file isn’t exactly a copy:
Why is the.config file copied from defconfig?
The .config file is not simply copied from your defconfig file. The motivation for storing defconfig in such a format is next: in defconfig we can specify only options with non-default values (i.e. options we changed for our board). This way we can keep it small and clear.
How do you change the kernel compile configuration?
Every time you want to change a kernel compile configuration, you execute a make target, such as menuconfig or xconfig. These read the Kconfig files to create the menus and update the config symbols’ values using the values defined in the .config file.
When to use make savedefconfig rule in Linux?
Instead you should use make savedefconfig rule. When .config file is being generated, kernel build system goes through all Kconfig files (from all subdirs), checking all options in those Kconfig files: Check scripts/kconfig/Makefile and scripts/kconfig/conf.c files to see how it’s actually done.
How to change the configuration of the Linux kernel?
Review changes between kernel versions and update to create a new .config for the kernel. Generates a new configuration with default values from the ARCH supplied defconfig file while, at the same time, maintaining all the previous options set in the .config file found at /usr/src/linux/.config.
How to compare two config files from kernel tree?
You could try sort ing the files before comparing: Use kdiff3 to compare two configs. If anyone wants to compare .config (current configuration) file to some default configuration from kernel tree, first export defconfig from current configuration:
Is there a default kernel config in Linus?
To put this more succinctly: There’s no working “default” or “just what Linus intended” kernel config. The default configuration is just that. It used to be whatever Linus was running at the time.
What does make menuconfig do in Linux kernel?
Compilation targets that construct configuration menus of kernel compile options, such as make menuconfig, read these files to build the tree-like structure. Every directory in the kernel has one Kconfig that includes the Kconfig files of its subdirectories.