blob: 5fb7847e41a426b24c3762b1c072f953376d6156 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the USB Mass Storage device drivers.
3#
4# 15 Aug 2000, Christoph Hellwig <hch@infradead.org>
5# Rewritten to use lists instead of if-statements.
6#
7
8EXTRA_CFLAGS := -Idrivers/scsi
9
10obj-$(CONFIG_USB_STORAGE) += usb-storage.o
11
12usb-storage-obj-$(CONFIG_USB_STORAGE_DEBUG) += debug.o
13usb-storage-obj-$(CONFIG_USB_STORAGE_USBAT) += shuttle_usbat.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070014usb-storage-obj-$(CONFIG_USB_STORAGE_FREECOM) += freecom.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070015usb-storage-obj-$(CONFIG_USB_STORAGE_DATAFAB) += datafab.o
16usb-storage-obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += jumpshot.o
Matthew Dharme80b0fa2005-12-04 22:02:44 -080017usb-storage-obj-$(CONFIG_USB_STORAGE_ALAUDA) += alauda.o
Matthew Dharm34008db2005-07-28 14:49:01 -070018usb-storage-obj-$(CONFIG_USB_STORAGE_ONETOUCH) += onetouch.o
Matthew Dharmdfe0d3b2006-08-13 17:30:14 -070019usb-storage-obj-$(CONFIG_USB_STORAGE_KARMA) += karma.o
matthieu castetd2770642008-03-19 19:40:52 +010020usb-storage-obj-$(CONFIG_USB_STORAGE_CYPRESS_ATACB) += cypress_atacb.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
22usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \
Dan Williams281b0642008-12-14 12:39:22 -050023 initializers.o sierra_ms.o option_ms.o $(usb-storage-obj-y)
Pete Zaitceva00828e2005-10-22 20:15:09 -070024
Alan Sterne6e244b2009-02-12 14:47:44 -050025ifeq ($(CONFIG_USB_LIBUSUAL),)
26 usb-storage-objs += usual-tables.o
27else
28 obj-$(CONFIG_USB) += libusual.o usual-tables.o
Pete Zaitceva00828e2005-10-22 20:15:09 -070029endif
Alan Stern0ff71882009-02-12 14:47:49 -050030
Alan Stern32d54932009-02-12 14:47:54 -050031obj-$(CONFIG_USB_STORAGE_ISD200) += ums-isd200.o
Alan Stern0ff71882009-02-12 14:47:49 -050032obj-$(CONFIG_USB_STORAGE_SDDR09) += ums-sddr09.o
Alan Stern70fcc002009-02-12 14:47:59 -050033obj-$(CONFIG_USB_STORAGE_SDDR55) += ums-sddr55.o
Alan Stern0ff71882009-02-12 14:47:49 -050034
Alan Stern32d54932009-02-12 14:47:54 -050035ums-isd200-objs := isd200.o
Alan Stern0ff71882009-02-12 14:47:49 -050036ums-sddr09-objs := sddr09.o
Alan Stern70fcc002009-02-12 14:47:59 -050037ums-sddr55-objs := sddr55.o