LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to modify linux kernel config based on existing .config (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-modify-linux-kernel-config-based-on-existing-config-4175513359/)

5883 08-04-2014 08:31 PM

How to modify linux kernel config based on existing .config
 
so i started "make menuconfig",
then "load alternate config file", yes it's using existing .config,
i do nothing but just exit the menuconfig and save the changes,
the new .config is different from .config.old,

how come ? i didn't make any change ?

evo2 08-04-2014 08:51 PM

HI,
Quote:

Originally Posted by 5883 (Post 5214986)
How to modify linux kernel config based on existing .config

copy your old config file to .config in the kernel source root directory.
Eg.
Code:

cp /boot/config-3.13-2-amd64 /path/to/linux-3.14/.config
If that config file is for an older kernel version you can then run "make oldconfig" and you will be prompted with questions only related to newly added kernel features. Finally you can run "make menuconfig" if you want to make any other changes.

Quote:

Originally Posted by 5883 (Post 5214986)
so i started "make menuconfig",
then "load alternate config file", yes it's using existing .config,
i do nothing but just exit the menuconfig and save the changes,
the new .config is different from .config.old,

how come ? i didn't make any change ?

Sorry, I've never used this feature of menuconfig so I don't know the details of what it is actually doing. I suggest trying the method I describe above - I've had great success with it in the past.

Evo2.

5883 08-04-2014 08:53 PM

actually it should be make ARCH=arm menuconfig
so i'm all set now, :)


Quote:

Originally Posted by evo2 (Post 5214997)
HI,

copy your old config file to .config in the kernel source root directory.
Eg.
Code:

cp /boot/config-3.13-2-amd64 /path/to/linux-3.14/.config
If that config file is for an older kernel version you can then run "make oldconfig" and you will be prompted with questions only related to newly added kernel features. Finally you can run "make menuconfig" if you want to make any other changes.


Sorry, I've never used this feature of menuconfig so I don't know the details of what it is actually doing. I suggest trying the method I describe above - I've had great success with it in the past.

Evo2.


onebuck 08-05-2014 09:26 AM

Moderator Response
 
Moved: This thread is more suitable in <Linux - Kernel> and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 10:34 PM.