Whamcloud - gitweb
LU-6142 selftest: SPDX for lnet/selftest/
[fs/lustre-release.git] / build / Rules.in
1 # SPDX-License-Identifier: GPL-2.0
2
3 #
4 # This file is part of Lustre, http://www.lustre.org/
5 #
6 # build/Rules.in
7 #
8 # Rules file for the kernel-related autoconf tests.
9 #
10
11 ifeq ($(PATCHLEVEL),)
12
13 include autoMakefile
14
15 fix-kext-ownership:
16         @if test -d $(DESTDIR)$(kextdir) ; then \
17                 echo chown -R root:wheel $(DESTDIR)$(kextdir) ; \
18                 chown -R root:wheel $(DESTDIR)$(kextdir) || \
19                         echo >&2 "*** WARNING: Could not fix kext ownership for $(DESTDIR)$(kextdir)" ; \
20         fi
21
22 else
23
24 include @LINUX_CONFIG@
25
26 EXTRA_CFLAGS := $(EXTRA_PRE_CFLAGS)
27 EXTRA_CFLAGS += @EXTRA_KCFLAGS@ @CFLAGS@
28 EXTRA_CFLAGS += $(EXTRA_POST_CFLAGS)
29
30 KBUILD_EXTRA_SYMBOLS += @EXTRA_SYMBOLS@
31
32 obj-m += $(patsubst %,%.o,$(MODULES))
33
34 endif # PATCHLEVEL