staging: erofs: update Kconfig and Makefile
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 26 Jul 2018 12:21:51 +0000 (20:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2018 15:23:10 +0000 (17:23 +0200)
This commit adds Makefile and Kconfig for erofs, and
updates Makefile and Kconfig files in the fs directory.

Signed-off-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/erofs/Kconfig [new file with mode: 0644]
drivers/staging/erofs/Makefile [new file with mode: 0644]

index 17fd9b455ec6361a982d250c1c742323ed2736f5..2bce6473318dccb45c8061f6682d252a49618ef0 100644 (file)
@@ -126,4 +126,6 @@ source "drivers/staging/gasket/Kconfig"
 
 source "drivers/staging/axis-fifo/Kconfig"
 
+source "drivers/staging/erofs/Kconfig"
+
 endif # STAGING
index 231698f2da7d23205debdbce13dda5be5c2ac08d..8474712908c23798d3457e145939cc3c81a8a592 100644 (file)
@@ -54,3 +54,4 @@ obj-$(CONFIG_SOC_MT7621)      += mt7621-eth/
 obj-$(CONFIG_SOC_MT7621)       += mt7621-dts/
 obj-$(CONFIG_STAGING_GASKET_FRAMEWORK) += gasket/
 obj-$(CONFIG_XIL_AXIS_FIFO)    += axis-fifo/
+obj-$(CONFIG_EROFS_FS)         += erofs/
diff --git a/drivers/staging/erofs/Kconfig b/drivers/staging/erofs/Kconfig
new file mode 100644 (file)
index 0000000..077430f
--- /dev/null
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: GPL-2.0
+
+config EROFS_FS
+       tristate "EROFS filesystem support"
+       depends on BLOCK
+       help
+         EROFS(Enhanced Read-Only File System) is a lightweight
+         read-only file system with modern designs (eg. page-sized
+         blocks, inline xattrs/data, etc.) for scenarios which need
+         high-performance read-only requirements, eg. firmwares in
+         mobile phone or LIVECDs.
+
+         It also provides VLE compression support, focusing on
+         random read improvements, keeping relatively lower
+         compression ratios, which is useful for high-performance
+         devices with limited memory and ROM space.
+
+         If unsure, say N.
+
+config EROFS_FS_DEBUG
+       bool "EROFS debugging feature"
+       depends on EROFS_FS
+       help
+         Print EROFS debugging messages and enable more BUG_ONs
+         which check the filesystem consistency aggressively.
+
+         For daily use, say N.
+
+config EROFS_FS_USE_VM_MAP_RAM
+       bool "EROFS VM_MAP_RAM Support"
+       depends on EROFS_FS
+       help
+         use vm_map_ram/vm_unmap_ram instead of vmap/vunmap.
+
+         If you don't know what these are, say N.
+
diff --git a/drivers/staging/erofs/Makefile b/drivers/staging/erofs/Makefile
new file mode 100644 (file)
index 0000000..31e909e
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0
+
+EROFS_VERSION = "1.0pre1"
+
+ccflags-y += -Wall -DEROFS_VERSION=\"$(EROFS_VERSION)\"
+
+obj-$(CONFIG_EROFS_FS) += erofs.o
+# staging requirement: to be self-contained in its own directory
+ccflags-y += -I$(src)/include
+erofs-objs := super.o inode.o data.o namei.o dir.o
+