Makefile 2.27 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7
#
# Makefile for the kernel USB device drivers.
#

O_TARGET	:= usbdrv.o

# Object files in subdirectories
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
8
mod-subdirs	:= core host class media net serial storage image misc input
9 10

subdir-$(CONFIG_USB)		+= core
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
11 12 13 14
ifeq ($(CONFIG_USB),y)
	obj-y += core/usb-core.o
endif

15 16 17
subdir-$(CONFIG_USB_EHCI_HCD)	+= host
subdir-$(CONFIG_USB_OHCI_HCD)	+= host
subdir-$(CONFIG_USB_OHCI)	+= host
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
18 19
subdir-$(CONFIG_USB_UHCI_ALT)	+= host
subdir-$(CONFIG_USB_UHCI)	+= host
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
20 21 22 23 24 25 26 27 28 29 30 31
ifeq ($(CONFIG_USB_HOST),y)
	obj-y += host/usb-host.o
endif

subdir-$(CONFIG_USB_ACM)	+= class
subdir-$(CONFIG_USB_AUDIO)	+= class
subdir-$(CONFIG_USB_BLUETOOTH)	+= class
subdir-$(CONFIG_USB_PRINTER)	+= class
ifeq ($(CONFIG_USB_CLASS),y)
	obj-y += class/usb-class.o
endif

Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
32
subdir-$(CONFIG_USB_STORAGE)	+= storage
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
33
ifeq ($(CONFIG_USB_STORAGE),y)
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
34
	obj-y += storage/storage.o
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
35
endif
36

Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
37 38 39 40 41 42 43 44 45 46
subdir-$(CONFIG_USB_HID)	+= input
subdir-$(CONFIG_USB_KBD)	+= input
subdir-$(CONFIG_USB_MOUSE)	+= input
subdir-$(CONFIG_USB_WACOM)	+= input
ifeq ($(CONFIG_USB_INPUT),y)
	obj-y += input/usb-input.o
endif

subdir-$(CONFIG_USB_DABUSB)	+= media
subdir-$(CONFIG_USB_DSBR)	+= media
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
47 48 49
subdir-$(CONFIG_USB_IBMCAM)	+= media
subdir-$(CONFIG_USB_KONICAWC)	+= media
subdir-$(CONFIG_USB_OV511)	+= media
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
50
subdir-$(CONFIG_USB_PWC)	+= media
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
51 52
subdir-$(CONFIG_USB_SE401)	+= media
subdir-$(CONFIG_USB_STV680)	+= media
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
53
subdir-$(CONFIG_USB_VICAM)	+= media
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
54 55
ifeq ($(CONFIG_USB_MEDIA),y)
	obj-y += media/usb-media.o
56 57
endif

Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
58
subdir-$(CONFIG_USB_CATC)	+= net
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
59
subdir-$(CONFIG_USB_CDCETHER)	+= net
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
60
subdir-$(CONFIG_USB_KAWETH)	+= net
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
61 62
subdir-$(CONFIG_USB_PEGASUS)	+= net
subdir-$(CONFIG_USB_RTL8150)	+= net
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
63 64 65 66 67
subdir-$(CONFIG_USB_USBNET)	+= net
ifeq ($(CONFIG_USB_NET),y)
	obj-y += net/usb-net.o
endif

Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
68
subdir-$(CONFIG_USB_DC2XX)	+= image
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
69
subdir-$(CONFIG_USB_HPUSBSCSI)	+= image
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
70 71 72 73 74
subdir-$(CONFIG_USB_MDC800)	+= image
subdir-$(CONFIG_USB_MICROTEK)	+= image
subdir-$(CONFIG_USB_SCANNER)	+= image
ifeq ($(CONFIG_USB_IMAGE),y)
	obj-y += image/usb-image.o
75
endif
Linus Torvalds's avatar
Linus Torvalds committed
76

Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
77
subdir-$(CONFIG_USB_SERIAL)	+= serial
Linus Torvalds's avatar
Linus Torvalds committed
78 79 80 81
ifeq ($(CONFIG_USB_SERIAL),y)
	obj-y += serial/usb-serial.o
endif

Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
82 83 84 85 86
subdir-$(CONFIG_USB_AUERSWALD)	+= misc
subdir-$(CONFIG_USB_EMI26)	+= misc
subdir-$(CONFIG_USB_RIO500)	+= misc
subdir-$(CONFIG_USB_TIGL)	+= misc
subdir-$(CONFIG_USB_USS720)	+= misc
Greg Kroah-Hartman's avatar
USB  
Greg Kroah-Hartman committed
87 88 89
ifeq ($(CONFIG_USB_MISC),y)
	obj-y += misc/usb-misc.o
endif
Linus Torvalds's avatar
Linus Torvalds committed
90 91

include $(TOPDIR)/Rules.make