[openwrt/openwrt] kernel: kmod-fs-fscache: Add cachefiles.ko

LEDE Commits lede-commits at lists.infradead.org
Wed Aug 10 15:52:00 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/724ef7b484453b45ad03a108033684fd6c8312e2

commit 724ef7b484453b45ad03a108033684fd6c8312e2
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sat Aug 6 00:52:50 2022 +0200

    kernel: kmod-fs-fscache: Add cachefiles.ko
    
    The CONFIG_CACHEFILES configuration option makes the kernel build
    cachefiles.ko, also package it. Build CONFIG_CACHEFILES as module and do
    not try to build it into the kernel. This did not work because it
    depended on CONFIG_FSCACHE which was already build as module.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/fs.mk | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
index 6732c7c73a..0e4c0c091a 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -260,16 +260,18 @@ define KernelPackage/fs-fscache
   TITLE:=General filesystem local cache manager
   DEPENDS:=+kmod-fs-netfs
   KCONFIG:=\
-	CONFIG_FSCACHE=m \
+	CONFIG_FSCACHE \
 	CONFIG_FSCACHE_STATS=y \
 	CONFIG_FSCACHE_HISTOGRAM=n \
 	CONFIG_FSCACHE_DEBUG=n \
 	CONFIG_FSCACHE_OBJECT_LIST=n \
-	CONFIG_CACHEFILES=y \
+	CONFIG_CACHEFILES \
 	CONFIG_CACHEFILES_DEBUG=n \
 	CONFIG_CACHEFILES_HISTOGRAM=n
-  FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
-  AUTOLOAD:=$(call AutoLoad,29,fscache)
+  FILES:= \
+	$(LINUX_DIR)/fs/fscache/fscache.ko \
+	$(LINUX_DIR)/fs/cachefiles/cachefiles.ko
+  AUTOLOAD:=$(call AutoLoad,29,fscache cachefiles)
 endef
 
 $(eval $(call KernelPackage,fs-fscache))




More information about the lede-commits mailing list