summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-01 14:25:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-04 16:40:01 +0200
commit17a1d711525857dbee6c0609db8b387c53f75a31 (patch)
treecf3e991cef68f26bd11431ded183523e19a7c63c /commands
parent691dd27f7a9256c6da86bc94cc6eaba840ba9575 (diff)
downloadbarebox-17a1d711525857dbee6c0609db8b387c53f75a31.tar.gz
barebox-17a1d711525857dbee6c0609db8b387c53f75a31.tar.xz
commands: Make nand command optional
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@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/Kconfig6
-rw-r--r--commands/Makefile2
2 files changed, 7 insertions, 1 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index f137f47324..40213d28c9 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 c89adcfff0..fb1b0caf4f 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