[PATCH] ARM: i.MX: Make NAND related Kconfig options depend on MTD
Andrey Smirnov
andrew.smirnov at gmail.com
Mon Nov 10 09:45:04 PST 2014
ARCH_IMX_EXTERNAL_BOOT_NAND, BAREBOX_UPDATE_IMX_EXTERNAL_NAND and
BAREBOX_UPDATE_IMX6_NAND all enable features that make use of API
provided by MTD subsystem, so to prevent those features breaking the
build when MTD is disabled make them dependent on it.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
arch/arm/mach-imx/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index ef7c0a1..8dce491 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -102,17 +102,20 @@ endchoice
config ARCH_IMX_EXTERNAL_BOOT_NAND
bool
+ depends on MTD
depends on ARCH_IMX25 || ARCH_IMX27 || ARCH_IMX31 || ARCH_IMX35
prompt "Support Starting barebox from NAND in external bootmode"
config BAREBOX_UPDATE_IMX_EXTERNAL_NAND
bool
+ depends on MTD
depends on ARCH_IMX_EXTERNAL_BOOT_NAND
depends on BAREBOX_UPDATE
default y
config BAREBOX_UPDATE_IMX6_NAND
bool
+ depends on MTD
depends on ARCH_IMX6
depends on BAREBOX_UPDATE
default y
--
1.9.3
More information about the barebox
mailing list