mbox series

[0/1] Add support to build binary version of DKMS kernel

Message ID 20210414083617.20940-1-felix.moessbauer@siemens.com
Headers show
Series Add support to build binary version of DKMS kernel | expand

Message

MOESSBAUER, Felix April 14, 2021, 12:36 a.m. UTC
DKMS kernel modules provide a way to deliver the sources of a kernel module
along with a machine readable specification of how to build the module
for the currently active kernel. Debian already ships a lot of kernel modules
as DKMS packages.

For embedded images, these DKMS modules are not really an option, as it would
require the image to provide a compiler and build system as well.
For this use-case, DKMS provides a way to pre-build a binary version
of the module for a specific kernel and ship that as a debian package.
Note, that this support is not implemented as part of the debhelpers, but
by DKMS itself.

This series adds support for the described use-case in ISAR.
By that, upstream DKMS modules can be fetched and build for
the image's kernel in ISAR. The generated binary package
can then be installed onto the target image.

To show how to use that, an example is provided in meta-isar.

Best regards,
Felix Moessbauer

Felix Moessbauer (1):
  Add support to build binary version of DKMS kernel modules

 .../example-dkms-module/igb-uio_20.11.bb      | 14 ++++
 meta/classes/dkms-module.bbclass              | 68 +++++++++++++++++++
 2 files changed, 82 insertions(+)
 create mode 100644 meta-isar/recipes-kernel/example-dkms-module/igb-uio_20.11.bb
 create mode 100644 meta/classes/dkms-module.bbclass