summaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/otg/Makefile')
-rw-r--r--drivers/usb/otg/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/otg/Makefile b/drivers/usb/otg/Makefile
index 6c58b36ca7c..7c80fc379e6 100644
--- a/drivers/usb/otg/Makefile
+++ b/drivers/usb/otg/Makefile
@@ -2,12 +2,13 @@
# OTG infrastructure and transceiver drivers
#
+# infrastructure
+obj-$(CONFIG_USB_OTG_UTILS) += otg.o
+
+# transceiver drivers
obj-$(CONFIG_USB_GPIO_VBUS) += gpio_vbus.o
obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-else ifeq ($(CONFIG_USB_GADGET_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG) += -DDEBUG
+ccflags-$(CONFIG_USB_GADGET_DEBUG) += -DDEBUG