summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-07 12:43:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-11 12:36:26 +0200
commit7c15f466dfe74bcc384889ada065592a9447d8a6 (patch)
tree348dc7324fa91e0092e0bd18e2414459f15be95d /commands/Kconfig
parenta03277592f756fedbdf4dae9d64c073e59a18a74 (diff)
downloadbarebox-7c15f466dfe74bcc384889ada065592a9447d8a6.tar.gz
barebox-7c15f466dfe74bcc384889ada065592a9447d8a6.tar.xz
commands: seperate usb command from usb core
This patch makes the USB command optional and makes usb_rescan a global function. This way we can use USB in noninteractive environments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 40213d28c9..9d0c72d83f 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -393,4 +393,12 @@ config CMD_LED_TRIGGER
The trigger command allows to control LED triggers from the command
line.
+config CMD_USB
+ bool
+ depends on USB
+ prompt "usb command"
+ default y
+ help
+ The usb command allows to rescan for USB devices.
+
endmenu