dh_dkms
Build DKMS modules during Debian package creation
SYNOPSIS
dh_dkms [debhelper options]
PARAMETERS
--sourcedir=directory
Specify the source directory to use. By default, the source directory is the package name.
-a
Act on all packages specified in the debian/control file.
-p package
Act only on the package named package.
--dkmsconf-name=name
Specify the name of the dkms.conf file to use (without the .conf extension). Defaults to the package name.
--template-dir=directory
Use files from this directory instead of the default template.
DESCRIPTION
The dh_dkms command is a debhelper program responsible for building and installing DKMS (Dynamic Kernel Module Support) modules during the package build process.
It automates several steps necessary to properly integrate DKMS modules into Debian packages. Specifically, it generates the `dkms.conf` file, which provides the instructions that DKMS uses to build, install, and remove the module.
It also takes care of registering the module with DKMS during the install stage and unregistering it during removal. This ensures that the module is properly built and installed when the package is installed, and cleaned up when the package is removed.
By utilizing dh_dkms, package maintainers can easily create Debian packages that include DKMS modules, simplifying the process of managing kernel modules that may need to be built against different kernel versions.
CAVEATS
The dh_dkms command relies on the presence of a properly formatted DKMS source tree within the Debian package's build directory.
It also assumes that the `dkms` package is installed on the target system during installation of the Debian package.
CONFIGURATION
The command searches for a 'debian/dkms.conf' file in the source directory. If one is present it will be used as a base for the configuration file. If not a generic one is created based on the package name and version.
SEE ALSO
dkms(8)