[openwrt/openwrt] kernel: add exfat again

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 19 15:12:54 GMT 2021


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

commit a50441b6e9e1a93deedf207817275cba335f9615
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Tue Mar 16 15:46:03 2021 -0700

    kernel: add exfat again
    
    With kernel 5.10, exfat is out of staging and in tree.
    
    Added small hack to make it work with kernel 5.4 as well.
    
    Added removed config options for 5.4 to generic config.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    [Set CONFIG_EXFAT_ config options to default values]
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/fs.mk | 20 ++++++++++++++++++++
 target/linux/generic/config-5.4    |  6 ++++++
 2 files changed, 26 insertions(+)

diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
index 91ef535821..7de1a0673c 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -164,6 +164,26 @@ endef
 $(eval $(call KernelPackage,fs-efivarfs))
 
 
+define KernelPackage/fs-exfat
+  SUBMENU:=$(FS_MENU)
+  TITLE:=exFAT filesystem support
+  KCONFIG:= \
+	CONFIG_EXFAT_FS \
+	CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"
+  FILES:= \
+	$(LINUX_DIR)/drivers/staging/exfat/exfat.ko at lt5.7 \
+	$(LINUX_DIR)/fs/exfat/exfat.ko at ge5.7
+  AUTOLOAD:=$(call AutoLoad,30,exfat,1)
+  DEPENDS:=+kmod-nls-base
+endef
+
+define KernelPackage/fs-exfat/description
+ Kernel module for exFAT filesystem support
+endef
+
+$(eval $(call KernelPackage,fs-exfat))
+
+
 define KernelPackage/fs-exportfs
   SUBMENU:=$(FS_MENU)
   TITLE:=exportfs kernel server support
diff --git a/target/linux/generic/config-5.4 b/target/linux/generic/config-5.4
index 768f904e9c..71f75ba76f 100644
--- a/target/linux/generic/config-5.4
+++ b/target/linux/generic/config-5.4
@@ -1506,7 +1506,13 @@ CONFIG_ETHERNET=y
 # CONFIG_ETHOC is not set
 CONFIG_EVENTFD=y
 # CONFIG_EVM is not set
+# CONFIG_EXFAT_DEBUG_MSG is not set
+CONFIG_EXFAT_DEFAULT_CODEPAGE=437
+# CONFIG_EXFAT_DELAYED_SYNC is not set
+CONFIG_EXFAT_DISCARD=y
+CONFIG_EXFAT_DONT_MOUNT_VFAT=y
 # CONFIG_EXFAT_FS is not set
+# CONFIG_EXFAT_KERNEL_DEBUG is not set
 CONFIG_EXPERT=y
 CONFIG_EXPORTFS=y
 # CONFIG_EXPORTFS_BLOCK_OPS is not set



More information about the lede-commits mailing list