[OpenWrt-Devel] [PATCH v2 1/2] kernel: add kmod-ubi

Ralph Sennhauser ralph.sennhauser at gmail.com
Tue Aug 23 03:20:50 EDT 2016


Signed-off-by: Ralph Sennhauser <ralph.sennhauser at gmail.com>
---
 package/kernel/linux/modules/block.mk | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

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
-- 
2.7.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list