Whamcloud - gitweb
LU-14195 build: Adjust Makefile for Linux build changes.
authorMr NeilBrown <neilb@suse.de>
Tue, 6 Jul 2021 00:03:32 +0000 (17:03 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 13 Jul 2021 08:22:45 +0000 (08:22 +0000)
commit39ceec39c86cb1dae8366a1382b880318f321d35
treed173f1d1aeef6c2b4a70b9c324eec2643da780e5
parent6180f7a498bd92d84645ad94368b6201ac697311
LU-14195 build: Adjust Makefile for Linux build changes.

Since v5.10-rc1~51^2~19, "KBUILD_BUILTIN" has been unset
for module builds.  This means that "targets-for-builtin"
isn't built, and that is how "extra-y" is built.

So we need another way to force LUSTRE_KERNEL_TEST to be built.

Since v5.6-rc1~1^2~5 any target listed in "always-y" will always get
built.  So we can assign LUSTRE_KERNEL_TEST to this macro.

Assigning both macros is safe, even for those kernels which include
both in the list of targets.

Lustre-change: https://review.whamcloud.com/40907
Lustre-commit: 9b9e19ca50491f2b74a9bb99f63591147b91bdd5

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I508b3710579c068dec93baf81ee383f3f03bd370
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/44141
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
build/Makefile