Whamcloud - gitweb
LU-17744 ldiskfs: mballoc stats fixes
[fs/lustre-release.git] / build / Rules.in
index 1ac462e..a7960c7 100644 (file)
@@ -1,23 +1,12 @@
-# Directories building kernel modules should have two files:
-#
-# Makefile.in:
-#
-# MODULES := <module-name>
-# <module-name>-objs := file1.o file2.o file3.o
-# @INCLUDE_RULES@
+# SPDX-License-Identifier: GPL-2.0
+
 #
-# and autoMakefile.am:
+# This file is part of Lustre, http://www.lustre.org/
 #
-# if LIBLUSTRE
-# <liblustre rules>
-# endif
+# build/Rules.in
 #
-# if MODULES
-# modulefs_DATA = <module-name>$(KMODEXT)
-# endif
+# Rules file for the kernel-related autoconf tests.
 #
-# DIST_SOURCES = $(<module-name>-objs:.o=.c) <other sources>
-# MOSTLYCLEANFILES = *.o *.ko *.mod.c
 
 ifeq ($(PATCHLEVEL),)
 
@@ -38,6 +27,8 @@ EXTRA_CFLAGS := $(EXTRA_PRE_CFLAGS)
 EXTRA_CFLAGS += @EXTRA_KCFLAGS@ @CFLAGS@
 EXTRA_CFLAGS += $(EXTRA_POST_CFLAGS)
 
-obj-m := $(patsubst %,%.o,$(MODULES))
+KBUILD_EXTRA_SYMBOLS += @EXTRA_SYMBOLS@
+
+obj-m += $(patsubst %,%.o,$(MODULES))
 
 endif # PATCHLEVEL