Bug 187582
Summary: | RELNOTES - kernel-devel required for modules in section 8.7 | ||
---|---|---|---|
Product: | [Fedora] Fedora Documentation | Reporter: | John Cooper <john> |
Component: | release-notes | Assignee: | Release Notes Tracker <relnotes> |
Status: | CLOSED RAWHIDE | QA Contact: | Karsten Wade <kwade> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | devel | CC: | kwade |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-04-01 14:30:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Cooper
2006-04-01 07:25:08 UTC
There are actually at least 4 use cases to cover: 1) All I need is to compile a 3rd-party module: The easiest way is to install the "kernel-devel" RPM and then point make(1) to the infrastructure that provides: # cd /path/to/new/module # make -C /lib/module/$(uname -r)/build M=$PWD modules # make -C /lib/module/$(uname -r)/build M=$PWD modules_install is often sufficient. 2) I need to work with same kernel sources as the distro, perhaps to debug a crash: Install the "kernel-devel" RPM. In "/usr/src/kernels/$(uname -r)" find a fully-configured kernel source tree with only those sources used for the FCn kernel. Sources for features not supported by the Fedora project, such as NTFS, are not currently provided in this RPM. This RPM is also useful to build a new Fedora kernel with some configuration parameters altered. To compile a 3rd-party driver using these files, use a make(1) command similar to: # make -C /usr/src/kernels/$(uname -r) M=$PWD modules # make -C /usr/src/kernels/$(uname -r) M=$PWD modules_install 3)I want to use a feature not supported by Fedora, or, I want to see full kernel sources for the current distribution. Install the "kernel-${version}-${release}.src.rpm" RPM. Sources for the plain kernel, the Xen kernels, and the vanilla kernel will be installed in "${RPMROOT}/BUILD/kernel-${version}". To build a 3rd-party driver, use a make(1) command similar to: # make -C ${RPMROOT}/BUILD/kernel-${version}/linux-${version} M=$PWD modules # make -C ${RPMROOT}/BUILD/kernel-${version}/linux-${version} M=$PWD modules_install 4) I have a textbook about kernel programming and I want to follow the examples. Install the "kernel-${release}-${version}.src.rpm" RPM as explained above. Then move the desired sources into "/usr/src/linux-$(uname -r)" like this: # cd ${RPMROOT}/BUILD/kernel-${version} # mv linux-${version} /usr/src/linux-$(uname -r) # cd /usr/src/ # ln -s ./linux-$(uname -r) linux # cd /usr/src/linux Don't shoot me. I didn't package kernel sources in all these variations ;-) Thank you for your feedback. I have added more information and instructions to http://fedoraproject.org/wiki/Docs/Beats/Kernel. These will be available as an errata and on subsequent release notes published. |