patch-2.4.0-test3 linux/drivers/usb/Makefile

Next file: linux/drivers/usb/bluetooth.c
Previous file: linux/drivers/usb/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/usb/Makefile linux/drivers/usb/Makefile
@@ -7,7 +7,7 @@
 SUB_DIRS	:=
 MOD_SUB_DIRS	:= $(SUB_DIRS)
 MOD_IN_SUB_DIRS	:= $(SUB_DIRS)
-ALL_SUB_DIRS	:= $(SUB_DIRS) serial
+ALL_SUB_DIRS	:= $(SUB_DIRS) serial storage
 
 # The target object and module list name.
 
@@ -49,6 +49,15 @@
 	endif
 endif
 
+ifeq ($(CONFIG_USB_STORAGE),y)
+	SUB_DIRS += storage
+	obj-y += storage/usb-storage.o
+else
+	ifeq ($(CONFIG_USB_STORAGE),m)
+		MOD_IN_SUB_DIRS += storage
+	endif
+endif
+
 
 # Each configuration option enables a list of files.
 
@@ -73,8 +82,7 @@
 obj-$(CONFIG_USB_AUDIO)		+= audio.o
 obj-$(CONFIG_USB_IBMCAM)	+= ibmcam.o
 obj-$(CONFIG_USB_DC2XX)		+= dc2xx.o
-obj-$(CONFIG_USB_MDC800)   += mdc800.o
-obj-$(CONFIG_USB_STORAGE)	+= usb-storage.o
+obj-$(CONFIG_USB_MDC800)	+= mdc800.o
 obj-$(CONFIG_USB_USS720)	+= uss720.o
 obj-$(CONFIG_USB_DABUSB)	+= dabusb.o
 obj-$(CONFIG_USB_PLUSB)		+= plusb.o
@@ -83,6 +91,7 @@
 obj-$(CONFIG_USB_RIO500)	+= rio500.o
 obj-$(CONFIG_USB_DSBR)		+= dsbr100.o
 obj-$(CONFIG_USB_MICROTEK)	+= microtek.o
+obj-$(CONFIG_USB_BLUETOOTH)	+= bluetooth.o
 
 # Extract lists of the multi-part drivers.
 # The 'int-*' lists are the intermediate files used to build the multi's.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)