dkms 2.0.9.2 - add Novell/SuSE Kernel Module Package support (mkkmp)
Matt Domsch
Matt_Domsch at dell.com
Tue Mar 14 17:27:19 CST 2006
Novell has created a new method by which they expect updated kernel
modules to be packaged. This is outlined here:
http://www.suse.de/~agruen/KMPM
I gave DKMS a new output mode, which takes a normal DKMS driver source
tree, and outputs a Novell/SuSE Kernel Module Package (KMP) source
RPM. Here, dkms grows a new command (mkkmp), and new command line
option (--spec=specfile).
Example usage:
# dkms mkkmp -m ipmi -v 38.0 --spec ipmi-kmp.spec
# build /var/lib/dkms/ipmi/38.0/rpm/example-ipmi-38.0-0.src.rpm
(note: build is from SuSE's build.rpm)
DKMS test release 2.0.9.2 is available at:
http://linux.dell.com/dkms/testing/permalink/dkms-2.0.9.2.tar.gz
http://linux.dell.com/dkms/testing/permalink/dkms-2.0.9.2.tar.gz.sign
http://linux.dell.com/dkms/testing/permalink/dkms-2.0.9.2-1.src.rpm
http://linux.dell.com/dkms/testing/permalink/dkms-2.0.9.2-1.noarch.rpm
Source KMPs are simply source code, suitable for passing to Kbuild, so
quite in keeping with DKMS design already. The entrypoint for mkkmp
is really akin to the dkms 'build' stage, immediately following
PRE_BUILD application of any PATCH[]s. At that point, the build tree
is ready to be handed to Kbuild. So, we tar it up, apply a new KMP
template spec file (SuSE Code 9 and Code 10 have different specs,
hence --spec), and pass it to rpmbuild -bs. The resulting .src.rpm
can be built using SuSE's build.rpm, or, for the really adventurous,
Fedora mock configured to build SuSE.
Note, generation of the .src.rpm relies heavily upon SuSE's rpm
macros. So you've got to run 'dkms mkkmp' on a SuSE 10 system to
generate a SuSE 10-compatible .src.rpm; likewise SuSE 9. I'm looking
into teaching DKMS about mock and build.rpm so that the building of
the srpm and the compiled kernel module RPMs can be done within a
clean chroot environment, independent of the OS installed on the build
host. That's future work.
Feedback welcome. I expect to roll these patches into the next
official DKMS release.
Thanks,
Matt
--
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
More information about the DKMS-devel
mailing list