Whamcloud - gitweb
LU-18678 build: dkms in-kernel check kernel source 05/57905/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Mon, 27 Jan 2025 10:28:24 +0000 (17:28 +0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Feb 2025 01:30:06 +0000 (01:30 +0000)
commitf94557bd13860b7b74a30680d5123d4331e63948
tree23b30ca162cee990073aa4bf12a35d97edaea7ac
parent117aaece71b464bfdcad54a058e4c2f9237d30c1
LU-18678 build: dkms in-kernel check kernel source

From dkms the default $kernel_source_dir will be
  @MODDIR@/$kernelver/build
unless otherwise specified with the --kernelsourcedir option.

Unfortunately the check for kernel headers will fail as only
the generated headers are available from the 'build' symbolic
link on SUSE.

Probe for the 'source' symbolic link if it points to a directory
with 'include/linux' proceed to prefer it when checking for
in-kernel rdma support.

HPE-bug-id: LUS-12710
Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I645acfa9f0cd6308fd5c234dc679c63f94172164
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57905
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Caleb Carlson <caleb.carlson@hpe.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/dkms.mkconf