Skip to content

Commit dd8cef4

Browse files
committed
readme: add note about kernel source tree when building submodules
1 parent cfa2e5a commit dd8cef4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28222,6 +28222,8 @@ You can also build <<kernel-modules>> against a specific prebuilt kernel with:
2822228222

2822328223
This will then allow you to insmod the kernel modules on your newly built kernel.
2822428224

28225+
Note that for this build to work the Linux kernel must remain checked out at the same version as it was built from, because the build dir which modules build against via the `M=` argument points to the absolute path of the Linux kernel source from which the headers are taken. For this reason, if you are going to be building kernel modules against a specific kernel version, it is a good idea to use a <<linux-worktree>> to ensure that the source for a build is always there.
28226+
2822528227
===== Linux worktree
2822628228

2822728229
If you are working with multiple Linux versions at once, it can be helpful to have their source code checked out all the time, in particular if you are going to be <<gdb,GDB step debugging>>.

0 commit comments

Comments
 (0)