docs: add how-to for rebuilding a single kernel module#113
Open
tswhison wants to merge 1 commit into
Open
Conversation
Migrates and modernises the content from the deprecated Ubuntu wiki page at https://wiki.ubuntu.com/Kernel/Dev/KernelModuleRebuild into the kernel-docs how-to structure. Changes from the original wiki content: - Replace the deprecated SUBDIRS= make parameter with the current M= form (SUBDIRS was removed in Linux 3.8; M= / KBUILD_EXTMOD is the correct modern equivalent). - Add a 'make O=... M=scripts' step that produces the scripts/mod/ helpers required for building external modules. - Add explicit modprobe -r / modprobe load-and-test steps. - Add a note guiding readers toward DKMS for sustained cross-upgrade use. - Format the guide consistently with the MyST/Sphinx conventions used elsewhere in kernel-docs (code-block directives, note/important admonitions, cross-references to related pages). The new page is placed at how-to/develop-customise/build-kernel-module.md, alongside the existing build-kernel.md and build-kernel-snap.md guides, and is linked into the toctree and body of how-to/index.md. Signed-off-by: Tim Whisonant <tim.whisonant@canonical.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates and modernises the content from the deprecated Ubuntu wiki page at https://wiki.ubuntu.com/Kernel/Dev/KernelModuleRebuild into the kernel-docs how-to structure.
Changes from the original wiki content:
The new page is placed at how-to/develop-customise/build-kernel-module.md, alongside the existing build-kernel.md and build-kernel-snap.md guides, and is linked into the toctree and body of how-to/index.md.