diff mbox

[OpenWrt-Devel,3/4] kernel: add kmod-ubi

Message ID 1474021100-4379-4-git-send-email-ralph.sennhauser@gmail.com
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Ralph Sennhauser Sept. 16, 2016, 10:18 a.m. UTC
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
---
 package/kernel/linux/modules/block.mk | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
diff mbox

Patch

diff --git a/package/kernel/linux/modules/block.mk b/package/kernel/linux/modules/block.mk
index d7f5ca4..99ace6c 100644
--- a/package/kernel/linux/modules/block.mk
+++ b/package/kernel/linux/modules/block.mk
@@ -579,6 +579,27 @@  endef
 $(eval $(call KernelPackage,nbd))
 
 
+define KernelPackage/ubi
+  SUBMENU:=$(BLOCK_MENU)
+  TITLE:=Unsorted block images
+  KCONFIG:= \
+	CONFIG_MTD_UBI \
+	CONFIG_MTD_UBI_BLOCK=y
+  FILES:=$(LINUX_DIR)/drivers/mtd/ubi/ubi.ko
+  AUTOLOAD:=$(call AutoLoad,30,ubi,1)
+endef
+
+define KernelPackage/ubi/description
+ UBI is a software layer above MTD layer which admits of LVM-like
+ logical volumes on top of MTD devices, hides some complexities of
+ flash chips like wear and bad blocks and provides some other useful
+ capabilities. Please, consult the MTD web site for more details
+ (www.linux-mtd.infradead.org).
+endef
+
+$(eval $(call KernelPackage,ubi))
+
+
 define KernelPackage/scsi-core
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=SCSI device support