How (recipe) to build only one kernel module?

Posted by Pro Backup on Ask Ubuntu See other posts from Ask Ubuntu or by Pro Backup
Published on 2014-08-24T11:50:32Z Indexed on 2014/08/24 22:33 UTC
Read the original article Hit count: 421

Filed under:
|
|
|
|

I have a bug in a Linux kernel module that causes the stock Ubuntu 14.04 kernel to oops (crash).

That is why I want to edit/patch the source of only that single kernel module to add some extra debug output. The kernel module in question is mvsas and not necessary to boot. For that reason I don't see any need to update any initrd images.

I have read a lot of information (as shown below) and find the setup and build process confusion. I need two recipes:

  1. to setup/configure the build environment once
  2. steps to do after editing any source file of this kernel module (.c and .h) and converting that edit into a new kernel module (.ko)

The sources that have been used are:

© Ask Ubuntu or respective owner

Related posts about 14.04

Related posts about drivers