Whamcloud - gitweb
LU-16819 build: use mofed path based on target kernel 37/50937/9
authorAke Sandgren <ake.sandgren@hpc2n.umu.se>
Thu, 11 May 2023 06:48:32 +0000 (08:48 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:45:07 +0000 (04:45 +0000)
commit0e9708016b9948676484d290326c1fe8a269eb80
treede9a8fb2e761193eefabb7a4b7f8e28db80128da
parentcac78b12d7d1942500e31c8b2a323e843b4d59a0
LU-16819 build: use mofed path based on target kernel

Instead of using "uname -r", which limits builds to the currently
running kernel, use the target kernel which is available in
LINUXRELEASE, if the directory is available.
Building for a specific kernel is common practice when using DKMS.

Test-Parameters: trivial
Signed-off-by: Ake Sandgren <ake.sandgren@hpc2n.umu.se>
Change-Id: Ifce912061a74fc5b7435cd940105190f0c3cd544
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50937
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/autoconf/lustre-lnet.m4