From 724ef7b484453b45ad03a108033684fd6c8312e2 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 6 Aug 2022 00:52:50 +0200 Subject: 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 --- package/kernel/linux/modules/fs.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'package/kernel/linux/modules/fs.mk') 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)) -- cgit v1.2.3