[PATCH] cmd: CMD_UBI depends on UBI

Teresa Gámez t.gamez at phytec.de
Mon Sep 19 09:16:47 EDT 2011


When ubi is deselected the ubi commands are still build and compiling fails
due dependences.

commands/built-in.o: In function `do_ubiattach':
commands/ubi.c:75: undefined reference to `ubi_attach_mtd_dev'

Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
 commands/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/commands/Kconfig b/commands/Kconfig
index 39bdb0f..f2b61bd 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -272,6 +272,7 @@ config CMD_FLASH
 config CMD_UBI
 	tristate
 	default y if UBI
+	depends on UBI
 	prompt "ubimkvol, ubirmvol, ubiattach"
 
 endmenu
-- 
1.7.0.4




More information about the barebox mailing list