[openwrt/openwrt] kernel: add test MTD driver package

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 29 12:19:05 PST 2018


dedeckeh pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/f65591f1137b121857bfb6c1239c8f2a9503a357

commit f65591f1137b121857bfb6c1239c8f2a9503a357
Author: Hans Dedecker <dedeckeh at gmail.com>
AuthorDate: Thu Jan 25 11:46:44 2018 +0100

    kernel: add test MTD driver package
    
    Allows to test MTD driver using RAM
    
    Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 package/kernel/linux/modules/other.mk | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 33bd59e..12e05df 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -620,6 +620,22 @@ endef
 $(eval $(call KernelPackage,mtdoops))
 
 
+define KernelPackage/mtdram
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Test MTD driver using RAM
+  KCONFIG:=CONFIG_MTD_MTDRAM \
+    CONFIG_MTDRAM_TOTAL_SIZE=4096 \
+    CONFIG_MTDRAM_ERASE_SIZE=128
+  FILES:=$(LINUX_DIR)/drivers/mtd/devices/mtdram.ko
+endef
+
+define KernelPackage/mtdram/description
+  Test MTD driver using RAM
+endef
+
+$(eval $(call KernelPackage,mtdram))
+
+
 define KernelPackage/serial-8250
   SUBMENU:=$(OTHER_MENU)
   TITLE:=8250 UARTs



More information about the lede-commits mailing list