1
HOWTO Build DKMS debs w/ Debian & Ubuntu systems
2
Copyright 2008 Dell Inc.
3
Author: Mario Limonciello <Mario_Limonciello@Dell.com>
7
A dkms deb is a common representation of a DKMS package that can be distributed across multiple machines.
8
After you have a functional DKMS package, you can follow these steps to build a DKMS deb.
10
1) Start out by putting together a tree in /usr/src/PACKAGE-VERSION. For our example, we are going to use
11
the PACKAGE lirc and VERSION 0.8.3~pre1. Create a dkms.conf per the recommendations in the DKMS guide.
13
2) "Add" the package to the dkms tree system:
14
dkms add -m lirc -v 0.8.3~pre1
16
3) "Build" the binary modules for the current kernel:
17
dkms build -m lirc -v 0.8.3~pre1
19
4) Make the deb and/or dsc for the package:
20
dkms mkdeb -m lirc -v 0.8.3~pre1
21
dkms mkdsc -m lirc -v 0.8.3~pre1
23
The end result will be a deb and/or dsc in /var/lib/dkms/lirc/0.8.3~pre1/deb or /var/lib/dkms/lirc/0.8.3~pre1/dsc
26
If you would prefer not to contaminate your system with the changes from building these debs, you should
27
create a framework.conf that contains these variables (adjust for your use case):
29
source_tree="/path/to/source/tree"
30
dkms_tree="/path/to/dkms/tree"
32
You will then call DKMS with an extra variable, '--dkmsframework'. Here is an example of how this would work
33
using the same lirc example above:
35
dkms add -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
36
dkms build -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
37
dkms mkdeb -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
38
dkms mkdsc -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
40
The end result will be both a debian binary package and a debian source package that you can use.