Commit fa31409a authored by Yegor Yefremov's avatar Yegor Yefremov Committed by Felipe Balbi

usb: gadget: use $(srctree) instead of $(PWD) for includes

Using $(PWD) breaks builds when make was invoked from outside
of the kernel tree.
Signed-off-by: default avatarYegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent b8adc3d1
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
subdir-ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG subdir-ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG
subdir-ccflags-$(CONFIG_USB_GADGET_VERBOSE) += -DVERBOSE_DEBUG subdir-ccflags-$(CONFIG_USB_GADGET_VERBOSE) += -DVERBOSE_DEBUG
ccflags-y += -I$(PWD)/drivers/usb/gadget/udc ccflags-y += -I$(srctree)/drivers/usb/gadget/udc
obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o
libcomposite-y := usbstring.o config.o epautoconf.o libcomposite-y := usbstring.o config.o epautoconf.o
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
# USB peripheral controller drivers # USB peripheral controller drivers
# #
ccflags-y := -I$(PWD)/drivers/usb/gadget/ ccflags-y := -I$(srctree)/drivers/usb/gadget/
ccflags-y += -I$(PWD)/drivers/usb/gadget/udc/ ccflags-y += -I$(srctree)/drivers/usb/gadget/udc/
# USB Functions # USB Functions
usb_f_acm-y := f_acm.o usb_f_acm-y := f_acm.o
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
# USB gadget drivers # USB gadget drivers
# #
ccflags-y := -I$(PWD)/drivers/usb/gadget/ ccflags-y := -I$(srctree)/drivers/usb/gadget/
ccflags-y += -I$(PWD)/drivers/usb/gadget/udc/ ccflags-y += -I$(srctree)/drivers/usb/gadget/udc/
ccflags-y += -I$(PWD)/drivers/usb/gadget/function/ ccflags-y += -I$(srctree)/drivers/usb/gadget/function/
g_zero-y := zero.o g_zero-y := zero.o
g_audio-y := audio.o g_audio-y := audio.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment