Whamcloud - gitweb
LU-17928 lnet: add kmod devel package 87/55387/7
authorShaun Tancheff <shaun.tancheff@hpe.com>
Wed, 10 Jul 2024 03:20:01 +0000 (10:20 +0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Jul 2024 15:21:42 +0000 (15:21 +0000)
commitab3b29ec39be8ed05224017bf6f017995451f16f
tree4fe9d22f7494ef1c98813d7068a1de41afb21e26
parent5e39181b6d87271c57293aa145669773b706642a
LU-17928 lnet: add kmod devel package

This creates a new kernel module development package for building
kernel modules that depend on the Lustre/LNet kAPI

The most notable of these is DVS which uses LNet

Along with the kernel includes add a package config file: lnet.pc
and the Module.symvers needed for linking against Lustre/LNet kAPI

Use:
   pkg-config --variable=symversdir lnet
to find the path to Module.symvers and include files.

In addition the dkms build can differ enough that the packaged
Module.symvers and config.h (and possibly the headers as well)
may diff enough that they are not interchangeable.

Use the update-alternatives subsystem to enable the dkms and kmp
packages to co-exist and the kmp-devel package to work with either.

Also loosens user space requirement to require:
 Lustre version >= major.minor
and not the exact build

Test-Parameters: trivial
HPE-bug-id: LUS-12246, LUS-12378, LUS-12351
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Signed-off-by: Caleb Carlson <caleb.carlson@hpe.com>
Change-Id: Idb00b881e8f6d4a703cc71fd0d8768e1f433fca3
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55387
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
autoMakefile.am
config/lustre-build.m4
lnet/utils/.gitignore
lnet/utils/Makefile.am
lnet/utils/lnet.pc.in [new file with mode: 0644]
lustre-dkms_post-build.sh
lustre-dkms_post-remove.sh [new file with mode: 0755]
lustre.spec.in
lustre/scripts/dkms.mkconf