[ATrpms-devel] DKMS now with Make RPM (mkrpm)
Gary Lerhaupt
gary at lerhaupt.com
Wed Jun 23 23:22:05 CEST 2004
While I'm busy pissing people off on other lists, I've taken the
suggestion from this list for mkrpm and made it happen.
DKMS 1.93.14 is out with mkrpm support
(http://linux.dell.com/dkms/testing).
Now you can:
dkms add -m foo -v ver
dkms build -m foo -v ver -k kern1
dkms build -m foo -v ver -k kern2
dkms build -m foo -v ver -k kern3
dkms mkrpm -m foo -v ver -k kern1 -k kern2 -k kern3
This will use /etc/dkms/template-dkms-mkrpm.spec and create an RPM.
This RPM will contain a DKMS tarball with the module source and, in
this case, precompiled binaries for the 3 kernels I specified. When
installed on the end users system, it will load the tarball and
install the prebuilts. If it then sees that the currently running
kernel does not have this module installed, it will kick off a dkms
build and dkms install to ensure that it does.
Alternatively, if DKMS finds a file /usr/src/<module>-
<version>/<module>-dkms-mkrpm.spec, it will use that spec file instead
of the template in /etc/dkms/. This is useful if you need to modify
the template spec to change the License, etc, etc.
Folks, it doesn't get any easier than this.
Let me know what you think of the template, and if we need to make
changes, I'll be happy. Generally, though, this follows how Dell has
already been using DKMS to install kernel module updates via RPMs.
Gary Lerhaupt
Dell Linux Development
http://linux.dell.com
More information about the atrpms-devel
mailing list