exfat: add Kconfig and Makefile
authorNamjae Jeon <namjae.jeon@samsung.com>
Mon, 2 Mar 2020 06:21:42 +0000 (15:21 +0900)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 6 Mar 2020 02:00:40 +0000 (21:00 -0500)
This adds the Kconfig and Makefile for exfat.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/Kconfig
fs/Makefile
fs/exfat/Kconfig [new file with mode: 0644]
fs/exfat/Makefile [new file with mode: 0644]

index 708ba336e6899b72e0c7b3b59e1c2057c932a071..f08fbbfafd9a0344ac353179332f80cb0ac01f4c 100644 (file)
@@ -140,9 +140,10 @@ endmenu
 endif # BLOCK
 
 if BLOCK
-menu "DOS/FAT/NT Filesystems"
+menu "DOS/FAT/EXFAT/NT Filesystems"
 
 source "fs/fat/Kconfig"
+source "fs/exfat/Kconfig"
 source "fs/ntfs/Kconfig"
 
 endmenu
index 505e511669734dac3ab0ff97846ee8255c08a125..2ce5112b02c86719d546f711baf8980a855daf59 100644 (file)
@@ -83,6 +83,7 @@ obj-$(CONFIG_HUGETLBFS)               += hugetlbfs/
 obj-$(CONFIG_CODA_FS)          += coda/
 obj-$(CONFIG_MINIX_FS)         += minix/
 obj-$(CONFIG_FAT_FS)           += fat/
+obj-$(CONFIG_EXFAT_FS)         += exfat/
 obj-$(CONFIG_BFS_FS)           += bfs/
 obj-$(CONFIG_ISO9660_FS)       += isofs/
 obj-$(CONFIG_HFSPLUS_FS)       += hfsplus/ # Before hfs to find wrapped HFS+
diff --git a/fs/exfat/Kconfig b/fs/exfat/Kconfig
new file mode 100644 (file)
index 0000000..2d3636d
--- /dev/null
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+config EXFAT_FS
+       tristate "exFAT filesystem support"
+       select NLS
+       help
+         This allows you to mount devices formatted with the exFAT file system.
+         exFAT is typically used on SD-Cards or USB sticks.
+
+         To compile this as a module, choose M here: the module will be called
+         exfat.
+
+config EXFAT_DEFAULT_IOCHARSET
+       string "Default iocharset for exFAT"
+       default "utf8"
+       depends on EXFAT_FS
+       help
+         Set this to the default input/output character set to use for
+         converting between the encoding is used for user visible filename and
+         UTF-16 character that exfat filesystem use, and can be overridden with
+         the "iocharset" mount option for exFAT filesystems.
diff --git a/fs/exfat/Makefile b/fs/exfat/Makefile
new file mode 100644 (file)
index 0000000..ed51926
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Makefile for the linux exFAT filesystem support.
+#
+obj-$(CONFIG_EXFAT_FS) += exfat.o
+
+exfat-y        := inode.o namei.o dir.o super.o fatent.o cache.o nls.o misc.o \
+          file.o balloc.o