LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Recompile same kernel, with different string (https://www.linuxquestions.org/questions/linux-general-1/recompile-same-kernel-with-different-string-882669/)

argentux 05-25-2011 02:39 PM

Recompile same kernel, with different string
 
Hi everyone. I'm using slackware 13.37. When I upgrade my kernel, I follow theese steps:
- untar source
- copy old .config
- make old config
- make gconfig and check/uncheck options (then save .config)
- make bzImge && make modules && make modules_install
- copy System.map, .config and bzImage to /boot directory with current kernel version name
- update lilo and reboot

That's will create /lib/modules/new-kernel-version/ path

My question: If I want to recompile without upgrading version, is there any way to keep 'old' kernel with its 'old' modules? Is that safe? Is that a right way to recompile?

For example:
old kernel => /lib/modules/2.6.38.1
/boot/vmlinuz-2.6.38.1

new kernel => /lib/modules/2.6.38.1-testing-new-options
/boot/vmlinuz-2.6.38.1-testing-new-options

another one => /lib/modules/2.6.38.1-another
/boot/vmlinuz-2.6.38.1-another

Thanks

TobiSGD 05-25-2011 02:43 PM

That works here, at least.

argentux 05-25-2011 02:46 PM

Quote:

Originally Posted by TobiSGD (Post 4366850)
That works here, at least.

Thanks for your answer. But how can I add a string?

TobiSGD 05-25-2011 03:34 PM

You will find that under General setup -> Local version - append to kernel version.

argentux 05-25-2011 10:42 PM

Quote:

Originally Posted by TobiSGD (Post 4366894)
You will find that under General setup -> Local version - append to kernel version.

Thanks TobiSGD. Thats solved my problem!


All times are GMT -5. The time now is 05:34 AM.