Small innovation in compiling the kernel, so each compilation does not interfere with each other

Source: Internet
Author: User
Small innovations in compiling the kernel. Every compilation does not interfere with each other-Linux general technology-Linux programming and kernel information. The following is a detailed description. Download and decompress the new kernel sources to your home directory, instead of/usr/src, such ~ /Src. This is what I want to introduce.
The focus of the method is to get rid of the troubles of separating various kernels in the past!
For example, 2.6.10.

$ CD ~ /Src/linux-2.6.3

Edit ~ /Src/linux-2.6.3/Makefile and give EXTRAVERSION = a unique value, such:
EXTRAVERSION =-newkernel

$ Make mrproper
$ Make menuconfig or
$ Make xconfig
$ Make
# Make modules_install
# Cp ~ /Src/linux-2.6.3/arch/i386/boot/bzimage/boot/bzImage-2.6.3-newkernel
# Cp ~ /Src/System. map/boot/System. map-2.6.3-newkernel
# Ln-s/boot/System. map-2.6.3-newkernel/boot/System. map
$ Make clean

Modify the Startup Program and enjoy your new kernel.

"Make xconfig" has been carefully designed for 2.6. It requires QT, dev libs, and X Windows. It is faster and better to use it than menuconfig.
More.

Every time you remember to assign a unique value to EXTRAVERSION, you can safely configure, compile the kernel, and make modules_install
This ensures that every new kernel and modules have different names, so that it will not overwrite your previous efforts.

Note: Do not use 2.4. config to configure the kernel. There are many differences between 2.4 and 2.6.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.