If we depend on the ARCH_SUNXI configuration option, the boards that do not
have NAND support enabled (with the associated options) will not compile
anymore.
Depend on the NAND driver configuration option to make sure that is not the
case.
Reported-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
config CMD_NAND
bool "nand"
- default y if ARCH_SUNXI
+ default y if NAND_SUNXI
help
NAND support.
tristate "Enable UBI - Unsorted block images commands"
select CRC32
select MTD_UBI
- default y if ARCH_SUNXI
+ default y if NAND_SUNXI
help
UBI is a software layer above MTD layer which admits use of LVM-like
logical volumes on top of MTD devices, hides some complexities of
select CRC32
select RBTREE if ARCH_SUNXI
select LZO if ARCH_SUNXI
- default y if ARCH_SUNXI
+ default y if NAND_SUNXI
help
UBIFS is a file system for flash devices which works on top of UBI.