kernel: kmod-fs-nfs-v4: Package nfs_layout*.ko files
authorHauke Mehrtens <[email protected]>
Sun, 20 Jul 2025 17:58:50 +0000 (19:58 +0200)
committerHauke Mehrtens <[email protected]>
Fri, 25 Jul 2025 23:11:20 +0000 (01:11 +0200)
The nfs_layout_flexfiles.ko and nfs_layout_nfsv41_files.ko file are
build automatically when CONFIG_NFS_V4_1 is selected, we can not
deactivate them. Pack them into the NFS package too. I do not know if we
should also load them automatically.

Link: https://github.com/openwrt/openwrt/pull/19480
Signed-off-by: Hauke Mehrtens <[email protected]>
package/kernel/linux/modules/fs.mk

index c71f0d9eb79510a9a3b4896bfc58833fdfe22b37..d818b21d999995b71651a5fc3c4776ecf81e0967 100644 (file)
@@ -536,7 +536,9 @@ define KernelPackage/fs-nfs-v4
   KCONFIG:= \
        CONFIG_NFS_V4=y
   FILES:= \
-       $(LINUX_DIR)/fs/nfs/nfsv4.ko
+       $(LINUX_DIR)/fs/nfs/nfsv4.ko \
+       $(LINUX_DIR)/fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko \
+       $(LINUX_DIR)/fs/nfs/filelayout/nfs_layout_nfsv41_files.ko
   AUTOLOAD:=$(call AutoLoad,41,nfsv4)
 endef