diff options
author | matt mooney <mfm@muteddisk.com> | 2010-10-06 22:03:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:22:07 -0400 |
commit | 0a2b8a0d1101179fdebc974a7c72b514aede9d9d (patch) | |
tree | 148dce87f8a233184ba3f8b75853d3584510af49 /drivers/usb/storage | |
parent | 75d87cdf3cefd2744fabd3f2a558c49cdf36238b (diff) |
usb: makefile cleanup
For all modules, change <module>-objs to <module>-y; remove
if-statements and replace with lists using the kbuild idiom; move
flags to the top of the file; and fix alignment while trying to
maintain the original scheme in each file.
None of the dependencies are modified.
Signed-off-by: matt mooney <mfm@muteddisk.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/Makefile | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/usb/storage/Makefile b/drivers/usb/storage/Makefile index 65dbf652487e..fcf14cdc4a04 100644 --- a/drivers/usb/storage/Makefile +++ b/drivers/usb/storage/Makefile | |||
@@ -5,21 +5,21 @@ | |||
5 | # Rewritten to use lists instead of if-statements. | 5 | # Rewritten to use lists instead of if-statements. |
6 | # | 6 | # |
7 | 7 | ||
8 | ccflags-y := -Idrivers/scsi | 8 | ccflags-y := -Idrivers/scsi |
9 | 9 | ||
10 | obj-$(CONFIG_USB_UAS) += uas.o | 10 | obj-$(CONFIG_USB_UAS) += uas.o |
11 | obj-$(CONFIG_USB_STORAGE) += usb-storage.o | 11 | obj-$(CONFIG_USB_STORAGE) += usb-storage.o |
12 | 12 | ||
13 | usb-storage-obj-$(CONFIG_USB_STORAGE_DEBUG) += debug.o | 13 | usb-storage-y := scsiglue.o protocol.o transport.o usb.o |
14 | usb-storage-y += initializers.o sierra_ms.o option_ms.o | ||
14 | 15 | ||
15 | usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \ | 16 | usb-storage-$(CONFIG_USB_STORAGE_DEBUG) += debug.o |
16 | initializers.o sierra_ms.o option_ms.o $(usb-storage-obj-y) | ||
17 | 17 | ||
18 | ifeq ($(CONFIG_USB_LIBUSUAL),) | 18 | ifeq ($(CONFIG_USB_LIBUSUAL),) |
19 | usb-storage-objs += usual-tables.o | 19 | usb-storage-y += usual-tables.o |
20 | else | 20 | else |
21 | obj-$(CONFIG_USB) += usb-libusual.o | 21 | obj-$(CONFIG_USB) += usb-libusual.o |
22 | usb-libusual-objs := libusual.o usual-tables.o | 22 | usb-libusual-y := libusual.o usual-tables.o |
23 | endif | 23 | endif |
24 | 24 | ||
25 | obj-$(CONFIG_USB_STORAGE_ALAUDA) += ums-alauda.o | 25 | obj-$(CONFIG_USB_STORAGE_ALAUDA) += ums-alauda.o |
@@ -34,14 +34,14 @@ obj-$(CONFIG_USB_STORAGE_SDDR09) += ums-sddr09.o | |||
34 | obj-$(CONFIG_USB_STORAGE_SDDR55) += ums-sddr55.o | 34 | obj-$(CONFIG_USB_STORAGE_SDDR55) += ums-sddr55.o |
35 | obj-$(CONFIG_USB_STORAGE_USBAT) += ums-usbat.o | 35 | obj-$(CONFIG_USB_STORAGE_USBAT) += ums-usbat.o |
36 | 36 | ||
37 | ums-alauda-objs := alauda.o | 37 | ums-alauda-y := alauda.o |
38 | ums-cypress-objs := cypress_atacb.o | 38 | ums-cypress-y := cypress_atacb.o |
39 | ums-datafab-objs := datafab.o | 39 | ums-datafab-y := datafab.o |
40 | ums-freecom-objs := freecom.o | 40 | ums-freecom-y := freecom.o |
41 | ums-isd200-objs := isd200.o | 41 | ums-isd200-y := isd200.o |
42 | ums-jumpshot-objs := jumpshot.o | 42 | ums-jumpshot-y := jumpshot.o |
43 | ums-karma-objs := karma.o | 43 | ums-karma-y := karma.o |
44 | ums-onetouch-objs := onetouch.o | 44 | ums-onetouch-y := onetouch.o |
45 | ums-sddr09-objs := sddr09.o | 45 | ums-sddr09-y := sddr09.o |
46 | ums-sddr55-objs := sddr55.o | 46 | ums-sddr55-y := sddr55.o |
47 | ums-usbat-objs := shuttle_usbat.o | 47 | ums-usbat-y := shuttle_usbat.o |