A prelude to driver module Compilation: Kernel-devel

Source: Internet
Author: User

Content:

Kernel-devel: Provides the C header file, which also contains the Kernel configuration file and other development materials.

Kernek-Source: Contains source code and header files


Cover:

Kernel-devel is generally used for kernel development. For example, to compile a kernel module, in principle, you do not need the original kernel code.

Kernel refers to the development of the kernel itself, so the original code of the kernel is required.


Differences:

The kernel-devel package only contains the kernel header file and makefile required for the kernel development environment, while the kernel-Souce contains all the kernel source code.

If it is only used for the development of your own modules, you only need to reference the corresponding kernel header file, so only the devel package can be used,

If you want to modify the existing kernel source code and re-compile it, it must be kernel-Souce.

Kernel-Souce is no longer included in the release after some RH versions and must be made by yourself through the kernel-XXX.src.rpm.


Purpose:

If a program requires some functions provided by the kernel, it requires the C header of the kernel to compile the program. At this time, the content in Linux-devel will be used.

For example, nvidia and ATI official graphics card drivers, RealTek Nic drivers, and ALSA-driver Audio Card Drivers all need to compile a module that runs in the kernel,

Compiling this module requires the kernel header file to be compiled smoothly.







A prelude to driver module Compilation: Kernel-devel

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.