Skip to content

Commit

Permalink
usb: change to new flag variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent e0c4347 commit 2501331
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 22 deletions.
4 changes: 1 addition & 3 deletions drivers/usb/atm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions drivers/usb/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ endif

obj-$(CONFIG_USB) += usbcore.o

ifeq ($(CONFIG_USB_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
4 changes: 1 addition & 3 deletions drivers/usb/gadget/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions drivers/usb/host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 1 addition & 3 deletions drivers/usb/misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions drivers/usb/musb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,4 @@ endif

# Debugging

ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
2 changes: 1 addition & 1 deletion drivers/usb/storage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions drivers/usb/wusbcore/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2501331

Please sign in to comment.