2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# Makefile for the USB Mass Storage device drivers.
|
|
|
|
#
|
|
|
|
# 15 Aug 2000, Christoph Hellwig <hch@infradead.org>
|
|
|
|
# Rewritten to use lists instead of if-statements.
|
|
|
|
#
|
|
|
|
|
|
|
|
EXTRA_CFLAGS := -Idrivers/scsi
|
|
|
|
|
|
|
|
obj-$(CONFIG_USB_STORAGE) += usb-storage.o
|
|
|
|
|
|
|
|
usb-storage-obj-$(CONFIG_USB_STORAGE_DEBUG) += debug.o
|
2005-07-28 21:49:01 +00:00
|
|
|
usb-storage-obj-$(CONFIG_USB_STORAGE_ONETOUCH) += onetouch.o
|
2006-08-14 00:30:14 +00:00
|
|
|
usb-storage-obj-$(CONFIG_USB_STORAGE_KARMA) += karma.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \
|
2008-12-14 17:39:22 +00:00
|
|
|
initializers.o sierra_ms.o option_ms.o $(usb-storage-obj-y)
|
2005-10-23 03:15:09 +00:00
|
|
|
|
usb-storage: prepare for subdriver separation
This patch (as1206) is the first step in converting usb-storage's
subdrivers into separate modules. It makes the following large-scale
changes:
Remove a bunch of unnecessary #ifdef's from usb_usual.h.
Not truly necessary, but it does clean things up.
Move the USB device-ID table (which is duplicated between
libusual and usb-storage) into its own source file,
usual-tables.c, and arrange for this to be linked with
either libusual or usb-storage according to whether
USB_LIBUSUAL is configured.
Add to usual-tables.c a new usb_usual_ignore_device()
function to detect whether a particular device needs to be
managed by a subdriver and not by the standard handlers
in usb-storage.
Export a whole bunch of functions in usb-storage, renaming
some of them because their names don't already begin with
"usb_stor_". These functions will be needed by the new
subdriver modules.
Split usb-storage's probe routine into two functions.
The subdrivers will call the probe1 routine, then fill in
their transport and protocol settings, and then call the
probe2 routine.
Take the default cases and error checking out of
get_transport() and get_protocol(), which run during
probe1, and instead put a check for invalid transport
or protocol values into the probe2 function.
Add a new probe routine to be used for standard devices,
i.e., those that don't need a subdriver. This new routine
checks whether the device should be ignored (because it
should be handled by ub or by a subdriver), and if not,
calls the probe1 and probe2 functions.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-02-12 19:47:44 +00:00
|
|
|
ifeq ($(CONFIG_USB_LIBUSUAL),)
|
|
|
|
usb-storage-objs += usual-tables.o
|
|
|
|
else
|
|
|
|
obj-$(CONFIG_USB) += libusual.o usual-tables.o
|
2005-10-23 03:15:09 +00:00
|
|
|
endif
|
2009-02-12 19:47:49 +00:00
|
|
|
|
2009-02-12 19:48:22 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ALAUDA) += ums-alauda.o
|
2009-02-12 19:48:04 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_CYPRESS_ATACB) += ums-cypress.o
|
2009-02-12 19:48:15 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_DATAFAB) += ums-datafab.o
|
2009-02-12 19:48:11 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_FREECOM) += ums-freecom.o
|
2009-02-12 19:47:54 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ISD200) += ums-isd200.o
|
2009-02-12 19:48:19 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += ums-jumpshot.o
|
2009-02-12 19:47:49 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_SDDR09) += ums-sddr09.o
|
2009-02-12 19:47:59 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_SDDR55) += ums-sddr55.o
|
2009-02-12 19:48:08 +00:00
|
|
|
obj-$(CONFIG_USB_STORAGE_USBAT) += ums-usbat.o
|
2009-02-12 19:47:49 +00:00
|
|
|
|
2009-02-12 19:48:22 +00:00
|
|
|
ums-alauda-objs := alauda.o
|
2009-02-12 19:48:04 +00:00
|
|
|
ums-cypress-objs := cypress_atacb.o
|
2009-02-12 19:48:15 +00:00
|
|
|
ums-datafab-objs := datafab.o
|
2009-02-12 19:48:11 +00:00
|
|
|
ums-freecom-objs := freecom.o
|
2009-02-12 19:47:54 +00:00
|
|
|
ums-isd200-objs := isd200.o
|
2009-02-12 19:48:19 +00:00
|
|
|
ums-jumpshot-objs := jumpshot.o
|
2009-02-12 19:47:49 +00:00
|
|
|
ums-sddr09-objs := sddr09.o
|
2009-02-12 19:47:59 +00:00
|
|
|
ums-sddr55-objs := sddr55.o
|
2009-02-12 19:48:08 +00:00
|
|
|
ums-usbat-objs := shuttle_usbat.o
|