summaryrefslogtreecommitdiffstats
path: root/commands/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-05-24 15:42:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-05-31 12:32:05 +0200
commit95e7982f99c03806b640c2e98e3e8e29ecefa3f1 (patch)
tree9549784580f7a6924c276353754162f647d4b255 /commands/Makefile
parent9897dec869bfc54f704fd07dc85800aad2e37250 (diff)
downloadbarebox-95e7982f99c03806b640c2e98e3e8e29ecefa3f1.tar.gz
barebox-95e7982f99c03806b640c2e98e3e8e29ecefa3f1.tar.xz
devices: add detect mechanism
We often encounter the situation where slow devices should not be probed during startup since probing is slow and maybe unnecessary for unused devices. With MMC we have the 'probe' device parameter, for ata we have the same, for USB we have the 'usb' command. Overall this is not very consistent. With MMC there is the additional problem that the probe parameter is attached to the logical device when we often have the information which physical device we want to probe. This patch adds a 'detect' callback for devices and adds a command to detect devices and to list the devices which are actually detecable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Makefile')
-rw-r--r--commands/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/Makefile b/commands/Makefile
index 953ecc284b..419d93bc0e 100644
--- a/commands/Makefile
+++ b/commands/Makefile
@@ -90,3 +90,4 @@ obj-$(CONFIG_CMD_TFTP) += tftp.o
obj-$(CONFIG_CMD_FILETYPE) += filetype.o
obj-$(CONFIG_CMD_BAREBOX_UPDATE)+= barebox-update.o
obj-$(CONFIG_CMD_MIITOOL) += miitool.o
+obj-$(CONFIG_CMD_DETECT) += detect.o