Preparations for Kernel compilation based on FedoraCore5
Source: Internet
Author: User
Preparations for Kernel compilation based on FedoraCore5-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. Copy the kernel-2.6.15.src.rpm from the source disk of Fedora Core 5 to any directory under linux.
2. Install the kernel-2.6.15.src.rpm and use the command rpm? Uivh kernel-2.6.15.src.rpm.
This will write RPM content to the/usr/src/redhat/SOURCES and/usr/src/redhat/SPECS directories.
3. Run the following command: cd/usr/src/redhat/SPECS rpmbuild? Bp? Target $ (arch) kernel-2.6.spec
The kernel source code is located in the/usr/src/rehat/BUILD/kernel-2.6.15 directory. The common practice is to move the directory of this kernel to the/usr/src/directory.
Run the following command: (1) cd/usr/src/redhat/BUILD/kernel-2.6.15
(2) Music linux-2.6.15.i686/usr/src
(3) cd/usr/src
(4) ln? S./linux-2.6.15.i686 linux build a link
At this point, the kernel source code has been prepared in/usr/src/linux.
Then you can execute make menuconfig for compilation as needed.
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