aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/fs.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/kernel/linux/modules/fs.mk')
-rw-r--r--package/kernel/linux/modules/fs.mk17
1 files changed, 5 insertions, 12 deletions
diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
index b30d116098..69fce51e2f 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -316,20 +316,13 @@ define KernelPackage/fs-nfs-common
TITLE:=Common NFS filesystem modules
KCONFIG:= \
CONFIG_LOCKD \
- CONFIG_SUNRPC
-ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.18.0)),1)
- KCONFIG+=CONFIG_GRACE_PERIOD
+ CONFIG_SUNRPC \
+ CONFIG_GRACE_PERIOD@ge3.18
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
+ $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
+ $(LINUX_DIR)/fs/nfs_common/grace.ko@ge3.18
+ AUTOLOAD:=$(call AutoLoad,30,grace@ge3.18 sunrpc lockd)
endef
$(eval $(call KernelPackage,fs-nfs-common))