Commit 2ba3d76a authored by Dmitry Pervushin's avatar Dmitry Pervushin Committed by Artem Bityutskiy

UBI: make gluebi a separate module

[Artem: re-worked the patch: made it release resources when the
module is unloaded, made it do module referencing, made it really
independent on UBI, tested it with the UBI test-suite which can
be found in ubi-2.6.git/tests/ubi-tests, re-named most of the
funcs/variables to get rid of the "ubi" word and make names
consistent.]
Signed-off-by: default avatarDmitry Pervushin <dpervushin@embeddedalley.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 518ceef0
...@@ -49,15 +49,16 @@ config MTD_UBI_BEB_RESERVE ...@@ -49,15 +49,16 @@ config MTD_UBI_BEB_RESERVE
reserved. Leave the default value if unsure. reserved. Leave the default value if unsure.
config MTD_UBI_GLUEBI config MTD_UBI_GLUEBI
bool "Emulate MTD devices" tristate "MTD devices emulation driver (gluebi)"
default n default n
depends on MTD_UBI depends on MTD_UBI
help help
This option enables MTD devices emulation on top of UBI volumes: for This option enables gluebi - an additional driver which emulates MTD
each UBI volumes an MTD device is created, and all I/O to this MTD devices on top of UBI volumes: for each UBI volumes an MTD device is
device is redirected to the UBI volume. This is handy to make created, and all I/O to this MTD device is redirected to the UBI
MTD-oriented software (like JFFS2) work on top of UBI. Do not enable volume. This is handy to make MTD-oriented software (like JFFS2)
this if no legacy software will be used. work on top of UBI. Do not enable this unless you use legacy
software.
source "drivers/mtd/ubi/Kconfig.debug" source "drivers/mtd/ubi/Kconfig.debug"
endmenu endmenu
...@@ -4,4 +4,4 @@ ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o scan.o ...@@ -4,4 +4,4 @@ ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o scan.o
ubi-y += misc.o ubi-y += misc.o
ubi-$(CONFIG_MTD_UBI_DEBUG) += debug.o ubi-$(CONFIG_MTD_UBI_DEBUG) += debug.o
ubi-$(CONFIG_MTD_UBI_GLUEBI) += gluebi.o obj-$(CONFIG_MTD_UBI_GLUEBI) += gluebi.o
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment