modules: install the newly introduced grace.ko in nfs-common in 3.18
authorZoltan Herpai <wigyori@uid0.hu>
Tue, 20 Jan 2015 23:49:44 +0000 (23:49 +0000)
committerZoltan Herpai <wigyori@uid0.hu>
Tue, 20 Jan 2015 23:49:44 +0000 (23:49 +0000)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 44068

package/kernel/linux/modules/fs.mk

index 3e59cab21423d28266888fc0dc967bb2783679b3..243f368aee21026d8abaadb9c62a7957811fd6e2 100644 (file)
@@ -321,10 +321,18 @@ define KernelPackage/fs-nfs-common
   KCONFIG:= \
        CONFIG_LOCKD \
        CONFIG_SUNRPC
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.18.0)),1)
+  FILES:= \
+       $(LINUX_DIR)/fs/nfs_common/grace.ko \
+       $(LINUX_DIR)/fs/lockd/lockd.ko \
+       $(LINUX_DIR)/net/sunrpc/sunrpc.ko
+  AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
+else
   FILES:= \
        $(LINUX_DIR)/fs/lockd/lockd.ko \
        $(LINUX_DIR)/net/sunrpc/sunrpc.ko
   AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
+endif
 endef
 
 $(eval $(call KernelPackage,fs-nfs-common))