2005-04-16 18:20:36 -04: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
|
|
|
|
|
|
|
|
usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \
|
2008-12-14 12:39:22 -05:00
|
|
|
initializers.o sierra_ms.o option_ms.o $(usb-storage-obj-y)
|
2005-10-22 23:15:09 -04: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 14:47:44 -05:00
|
|
|
ifeq ($(CONFIG_USB_LIBUSUAL),)
|
|
|
|
usb-storage-objs += usual-tables.o
|
|
|
|
else
|
2009-04-09 14:59:44 -04:00
|
|
|
obj-$(CONFIG_USB) += usb-libusual.o
|
|
|
|
usb-libusual-objs := libusual.o usual-tables.o
|
2005-10-22 23:15:09 -04:00
|
|
|
endif
|
2009-02-12 14:47:49 -05:00
|
|
|
|
2009-02-12 14:48:22 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ALAUDA) += ums-alauda.o
|
2009-02-12 14:48:04 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_CYPRESS_ATACB) += ums-cypress.o
|
2009-02-12 14:48:15 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_DATAFAB) += ums-datafab.o
|
2009-02-12 14:48:11 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_FREECOM) += ums-freecom.o
|
2009-02-12 14:47:54 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ISD200) += ums-isd200.o
|
2009-02-12 14:48:19 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += ums-jumpshot.o
|
2009-02-12 14:48:26 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_KARMA) += ums-karma.o
|
2009-02-12 14:48:33 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ONETOUCH) += ums-onetouch.o
|
2009-02-12 14:47:49 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_SDDR09) += ums-sddr09.o
|
2009-02-12 14:47:59 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_SDDR55) += ums-sddr55.o
|
2009-02-12 14:48:08 -05:00
|
|
|
obj-$(CONFIG_USB_STORAGE_USBAT) += ums-usbat.o
|
2009-02-12 14:47:49 -05:00
|
|
|
|
2009-02-12 14:48:22 -05:00
|
|
|
ums-alauda-objs := alauda.o
|
2009-02-12 14:48:04 -05:00
|
|
|
ums-cypress-objs := cypress_atacb.o
|
2009-02-12 14:48:15 -05:00
|
|
|
ums-datafab-objs := datafab.o
|
2009-02-12 14:48:11 -05:00
|
|
|
ums-freecom-objs := freecom.o
|
2009-02-12 14:47:54 -05:00
|
|
|
ums-isd200-objs := isd200.o
|
2009-02-12 14:48:19 -05:00
|
|
|
ums-jumpshot-objs := jumpshot.o
|
2009-02-12 14:48:26 -05:00
|
|
|
ums-karma-objs := karma.o
|
2009-02-12 14:48:33 -05:00
|
|
|
ums-onetouch-objs := onetouch.o
|
2009-02-12 14:47:49 -05:00
|
|
|
ums-sddr09-objs := sddr09.o
|
2009-02-12 14:47:59 -05:00
|
|
|
ums-sddr55-objs := sddr55.o
|
2009-02-12 14:48:08 -05:00
|
|
|
ums-usbat-objs := shuttle_usbat.o
|