[PATCH 01/12] commands: Make nand command optional
Sascha Hauer
s.hauer at pengutronix.de
Mon Apr 4 10:46:33 EDT 2011
The nand command is for bad block handling which some do not need.
So make it optional, but with default y.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
commands/Kconfig | 6 ++++++
commands/Makefile | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/commands/Kconfig b/commands/Kconfig
index f137f47..40213d2 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -142,6 +142,12 @@ config CMD_UMOUNT
default y
prompt "umount"
+config CMD_NAND
+ tristate
+ default y
+ depends on NAND
+ prompt "nand"
+
endmenu
menu "console "
diff --git a/commands/Makefile b/commands/Makefile
index c89adcf..fb1b0ca 100644
--- a/commands/Makefile
+++ b/commands/Makefile
@@ -37,7 +37,7 @@ obj-$(CONFIG_CMD_EXPORT) += export.o
obj-$(CONFIG_CMD_PRINTENV) += printenv.o
obj-$(CONFIG_CMD_SAVEENV) += saveenv.o
obj-$(CONFIG_CMD_LOADENV) += loadenv.o
-obj-$(CONFIG_NAND) += nand.o
+obj-$(CONFIG_CMD_NAND) += nand.o
obj-$(CONFIG_CMD_TRUE) += true.o
obj-$(CONFIG_CMD_FALSE) += false.o
obj-$(CONFIG_CMD_VERSION) += version.o
--
1.7.2.3
More information about the barebox
mailing list