2 # There are four ways this Makefile can be called:
5 # 1. As a subdirectory from the toplevel, for automake
7 # 2. A wrapper around the kernel's makefile when building modules, to
8 # possibly override the .config file
10 # 3. At configure time, as the toplevel module dir for building
16 ifeq ($(LUSTRE_LINUX_CONFIG),)
24 # Note that this comes from make -C $LINUX -f $LUSTRE/build/Makefile
25 # so "include Makefile" below includes $LINUX/Makefile, not this file
26 include $(LUSTRE_LINUX_CONFIG)
28 ifeq ($(DEQUOTE_CC_VERSION_TEXT),yes)
29 CONFIG_CC_VERSION_TEXT=$(shell echo ${CONFIG_CC_VERSION_TEXT:1:-1})
32 endif # LUSTRE_LINUX_CONFIG
35 ifeq ($(DEQUOTE_CC_VERSION_TEXT),yes)
36 CONFIG_CC_VERSION_TEXT=$(shell echo ${CONFIG_CC_VERSION_TEXT:1:-1})
40 ifneq ($(LUSTRE_KERNEL_TEST),)
41 # extra-y works prior to 5.10
42 extra-y = $(LUSTRE_KERNEL_TEST)
43 # always-y works since 5.6
44 always-y = $(LUSTRE_KERNEL_TEST)
45 # always works for SUSE SP3 LTSS kernel
46 always = $(LUSTRE_KERNEL_TEST)