usb: change to new flag variable
authormatt mooney <mfm@muteddisk.com>
Fri, 24 Sep 2010 19:17:33 +0000 (12:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:56 +0000 (10:21 -0700)
Replace EXTRA_CFLAGS with ccflags-y.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/Makefile
drivers/usb/core/Makefile
drivers/usb/gadget/Makefile
drivers/usb/host/Makefile
drivers/usb/misc/Makefile
drivers/usb/musb/Makefile
drivers/usb/storage/Makefile
drivers/usb/wusbcore/Makefile

index 4c4a776..d40a126 100644 (file)
@@ -8,6 +8,4 @@ obj-$(CONFIG_USB_UEAGLEATM)     += ueagle-atm.o
 obj-$(CONFIG_USB_ATM)          += usbatm.o
 obj-$(CONFIG_USB_XUSBATM)      += xusbatm.o
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG)    := -DDEBUG
index ec16e60..17c8e2d 100644 (file)
@@ -16,6 +16,4 @@ endif
 
 obj-$(CONFIG_USB)      += usbcore.o
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
index 27283df..c682005 100644 (file)
@@ -1,9 +1,7 @@
 #
 # USB peripheral controller drivers
 #
-ifeq ($(CONFIG_USB_GADGET_DEBUG),y)
-       EXTRA_CFLAGS            += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_GADGET_DEBUG)     := -DDEBUG
 
 obj-$(CONFIG_USB_DUMMY_HCD)    += dummy_hcd.o
 obj-$(CONFIG_USB_NET2280)      += net2280.o
index b6315aa..f041442 100644 (file)
@@ -2,9 +2,7 @@
 # Makefile for USB Host Controller Drivers
 #
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-       EXTRA_CFLAGS            += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG)    := -DDEBUG
 
 isp1760-objs := isp1760-hcd.o isp1760-if.o
 fhci-objs := fhci-hcd.o fhci-hub.o fhci-q.o fhci-mem.o \
index d203ff6..d2633c0 100644 (file)
@@ -26,6 +26,4 @@ obj-$(CONFIG_USB_YUREX)               += yurex.o
 
 obj-$(CONFIG_USB_SISUSBVGA)    += sisusbvga/
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG)    := -DDEBUG
index f664ecf..16aaae2 100644 (file)
@@ -78,6 +78,4 @@ endif
 
 # Debugging
 
-ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
-       EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
index 0332aa5..65dbf65 100644 (file)
@@ -5,7 +5,7 @@
 # Rewritten to use lists instead of if-statements.
 #
 
-EXTRA_CFLAGS   := -Idrivers/scsi
+ccflags-y      := -Idrivers/scsi
 
 obj-$(CONFIG_USB_UAS)          += uas.o
 obj-$(CONFIG_USB_STORAGE)      += usb-storage.o
index 75f1ade..f0d8045 100644 (file)
@@ -21,6 +21,4 @@ wusb-wa-objs :=       wa-hc.o         \
                wa-rpipe.o      \
                wa-xfer.o
 
-ifeq ($(CONFIG_USB_WUSB_CBAF_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_WUSB_CBAF_DEBUG) := -DDEBUG