Whamcloud - gitweb
LU-13783 build: Fix LB_LINUX_VERSION rule for v5.8 71/40371/3
authorMr NeilBrown <neilb@suse.de>
Fri, 23 Oct 2020 04:07:36 +0000 (15:07 +1100)
committerOleg Drokin <green@whamcloud.com>
Thu, 26 Nov 2020 09:26:34 +0000 (09:26 +0000)
commit28cedfae1e318b3f4783a6f145e24441b279646c
treed1bc46770d44cb7e6208a0a5d5f7f5dde12df422
parent1f828c4699462936f75f18d8d8e8f33720e448fd
LU-13783 build: Fix LB_LINUX_VERSION rule for v5.8

Since Commit 20b1be595282 ("kbuild: fix single target builds for
external modules") in v5.8-rc7, the LB_LINUX_VERSION autoconf
rule doesn't work.

I don't know exactly why, but it can be fixed by setting "makerule" to
an empty string.

Passing the path to the directory in $makerule is unnecessary as
LB_LINUX_COMPILE_IFELSE, which LB_LINUX_TRY_MAKE eventually calls,
passes "$MODULE_TARGET=$PWD/build" which has the required effect.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I2b381d3546aaa0f365328a1319b2d4f145f33eeb
Reviewed-on: https://review.whamcloud.com/40371
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-linux.m4