Creating a Kernel Module Package (KMP)
A Kernel Module Package (KMP) is an rpm which contains a driver (or multiple related drivers). Although KMPs may be provided directly to customers, it is preferable to provide customers with a full driver kit which contains KMPs as well as installation media and an associated online update site.
Novell provides guidelines for how to create KMPs that will function correctly on SLES 9 and SLES 10. These guidelines include information on how to compile and link the kernel modules using the Kbuild environment and where to install the modules such that they will function correctly in the SLES 9 and SLES 10 environments.
Please see Driver Process Terminology.
How to Create a KMP
- Create a kernel module source rpm as detailed on Creating a Kernel Module Source RPM.
- After following all the steps on Creating a Kernel Module Source RPM, ensure that your kernel module source rpm is in the /usr/src/packages/SRPMS directory of your build-root. (Default build-root for the "build" command is /var/tmp/build-root; therefore, the source rpm should be located in /var/tmp/build-root/usr/src/packages/SRPMS.)
- The process to create a source rpm creates a binary rpm as well. Therefore, simply access your KMP in the /usr/src/packages/RPMS directory of your build-root. (Default build-root for the "build" command is /var/tmp/build-root; therefore, the KMP should be located in /var/tmp/build-root/usr/src/packages/RPMS.)