X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/09f00dd10adb0d5ee0f4257f27ad534aae89e1e4..ef61e721cafbb58cedc85d242581a116315fe2f1:/package/kernel/modules/fs.mk diff --git a/package/kernel/modules/fs.mk b/package/kernel/modules/fs.mk index 85b8e1ab8..a3f4547ca 100644 --- a/package/kernel/modules/fs.mk +++ b/package/kernel/modules/fs.mk @@ -221,13 +221,19 @@ define KernelPackage/fs-nfs-common AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd) endef +define KernelPackage/fs-nfs-common/2.6 + KCONFIG+=CONFIG_SUNRPC_GSS + FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.$(LINUX_KMOD_SUFFIX) + AUTOLOAD=$(call AutoLoad,30,sunrpc lockd auth_rpcgss) +endef + $(eval $(call KernelPackage,fs-nfs-common)) define KernelPackage/fs-nfs SUBMENU:=$(FS_MENU) TITLE:=NFS filesystem support - DEPENDS:=kmod-fs-nfs-common + DEPENDS:=+kmod-fs-nfs-common KCONFIG:= \ CONFIG_NFS_FS FILES:= \ @@ -242,23 +248,30 @@ endef $(eval $(call KernelPackage,fs-nfs)) +define KernelPackage/fs-exportfs + SUBMENU:=$(FS_MENU) + TITLE:=exportfs kernel server support + KCONFIG:=CONFIG_EXPORTFS + FILES=$(LINUX_DIR)/fs/exportfs/exportfs.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,20,exportfs) +endef + +define KernelPackage/fs-exportfs/description + Kernel module for exportfs. Needed for some other modules. +endef + +$(eval $(call KernelPackage,fs-exportfs)) + + define KernelPackage/fs-nfsd SUBMENU:=$(FS_MENU) TITLE:=NFS kernel server support - DEPENDS:=kmod-fs-nfs-common + DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs KCONFIG:=CONFIG_NFSD FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,40,nfsd) endef -define KernelPackage/fs-nfsd/2.6 - KCONFIG+=CONFIG_EXPORTFS \ - CONFIG_SUNRPC_GSS - FILES+=$(LINUX_DIR)/fs/exportfs/exportfs.$(LINUX_KMOD_SUFFIX) \ - $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.$(LINUX_KMOD_SUFFIX) - AUTOLOAD+=$(call AutoLoad,40,auth_rpcgss exportfs nfsd) -endef - define KernelPackage/fs-nfsd/description Kernel module for NFS kernel server support endef @@ -302,6 +315,10 @@ endef $(eval $(call KernelPackage,fs-reiserfs)) +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1) + VFAT_DIR:=fat +endif +VFAT_DIR?=vfat define KernelPackage/fs-vfat SUBMENU:=$(FS_MENU) @@ -311,7 +328,7 @@ define KernelPackage/fs-vfat CONFIG_VFAT_FS FILES:= \ $(LINUX_DIR)/fs/fat/fat.$(LINUX_KMOD_SUFFIX) \ - $(LINUX_DIR)/fs/$(if $(CONFIG_LINUX_2_6_28),fat,vfat)/vfat.$(LINUX_KMOD_SUFFIX) + $(LINUX_DIR)/fs/$(VFAT_DIR)/vfat.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,30,fat vfat) $(call KernelPackage/nls/Depends) endef @@ -328,6 +345,7 @@ define KernelPackage/fs-xfs SUBMENU:=$(FS_MENU) TITLE:=XFS filesystem support KCONFIG:=CONFIG_XFS_FS + DEPENDS:= +kmod-fs-exportfs FILES:=$(LINUX_DIR)/fs/xfs/xfs.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,30,xfs) endef