summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/Makefile
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-05-31 13:39:21 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-06-21 10:38:41 +0300
commit5e42d710a108c23c104e083900d4ba9398e418b0 (patch)
treef761787da06d5f43d297e34349957db9ece4b5fa /drivers/usb/gadget/udc/Makefile
parent5a8d651a2bde01e00caf78496390d6ae46df80af (diff)
usb: gadget: add tracepoints to the gadget API
This new set of tracepoints will help all gadget drivers and UDC drivers when problem appears. Note that, in order to be able to add tracepoints to udc-core.c we had to rename that to core.c and statically link it with trace.c to form udc-core.o. This is to make sure that module name stays the same. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc/Makefile')
-rw-r--r--drivers/usb/gadget/udc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/Makefile b/drivers/usb/gadget/udc/Makefile
index dfee53446319..98e74ed9f555 100644
--- a/drivers/usb/gadget/udc/Makefile
+++ b/drivers/usb/gadget/udc/Makefile
@@ -1,3 +1,8 @@
+# define_trace.h needs to know how to find our header
+CFLAGS_trace.o := -I$(src)
+
+udc-core-y := core.o trace.o
+
#
# USB peripheral controller drivers
#