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