Browse Source

mtd: ubi: Select RBTREE option from MTD_UBI Kconfig entry

Expose the RBTREE feature through Kconfig and select this option from the
MTD_UBI option.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Jagan Teki <jagan@openedev.com>
[Rebased on master]
Signed-off-by: Jagan Teki <jagan@openedev.com>
Boris Brezillon 8 years ago
parent
commit
aa049152dc
2 changed files with 4 additions and 0 deletions
  1. 1 0
      drivers/mtd/ubi/Kconfig
  2. 3 0
      lib/Kconfig

+ 1 - 0
drivers/mtd/ubi/Kconfig

@@ -3,6 +3,7 @@ menu "UBI support"
 config MTD_UBI
 config MTD_UBI
 	bool "Enable UBI - Unsorted block images"
 	bool "Enable UBI - Unsorted block images"
 	select CRC32
 	select CRC32
+	select RBTREE if ARCH_SUNXI
 	help
 	help
 	  UBI is a software layer above MTD layer which admits of LVM-like
 	  UBI is a software layer above MTD layer which admits of LVM-like
 	  logical volumes on top of MTD devices, hides some complexities of
 	  logical volumes on top of MTD devices, hides some complexities of

+ 3 - 0
lib/Kconfig

@@ -61,6 +61,9 @@ config SPL_TINY_MEMSET
 	  size-constrained envrionments even this may be too big. Enable this
 	  size-constrained envrionments even this may be too big. Enable this
 	  option to reduce code size slightly at the cost of some speed.
 	  option to reduce code size slightly at the cost of some speed.
 
 
+config RBTREE
+	bool
+
 source lib/dhry/Kconfig
 source lib/dhry/Kconfig
 
 
 source lib/rsa/Kconfig
 source lib/rsa/Kconfig