usb: gadget: use $(srctree) instead of $(PWD) for includes
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 27 Aug 2014 08:42:53 +0000 (10:42 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 29 Aug 2014 20:53:46 +0000 (15:53 -0500)
Using $(PWD) breaks builds when make was invoked from outside
of the kernel tree.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Makefile
drivers/usb/gadget/function/Makefile
drivers/usb/gadget/legacy/Makefile

index a186afeaa7001f3f81abb4f95d9edd3099477867..598a67d6ba05fcc5c5ebd159f1384725acf25c8b 100644 (file)
@@ -3,7 +3,7 @@
 #
 subdir-ccflags-$(CONFIG_USB_GADGET_DEBUG)      := -DDEBUG
 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
 libcomposite-y                 := usbstring.o config.o epautoconf.o
index edb6dfa91932cd4017018845b2e2b08f18f2fa00..a49fdf7b59e1efdb65ae7d086b1c75044bc731a3 100644 (file)
@@ -2,8 +2,8 @@
 # USB peripheral controller drivers
 #
 
-ccflags-y                      := -I$(PWD)/drivers/usb/gadget/
-ccflags-y                      += -I$(PWD)/drivers/usb/gadget/udc/
+ccflags-y                      := -I$(srctree)/drivers/usb/gadget/
+ccflags-y                      += -I$(srctree)/drivers/usb/gadget/udc/
 
 # USB Functions
 usb_f_acm-y                    := f_acm.o
index a11aad5635df415422feb5f0a32d8d269cc14b6d..7f485f25705eff517fb1615200bca1c2d77b9fae 100644 (file)
@@ -2,9 +2,9 @@
 # USB gadget drivers
 #
 
-ccflags-y                      := -I$(PWD)/drivers/usb/gadget/
-ccflags-y                      += -I$(PWD)/drivers/usb/gadget/udc/
-ccflags-y                      += -I$(PWD)/drivers/usb/gadget/function/
+ccflags-y                      := -I$(srctree)/drivers/usb/gadget/
+ccflags-y                      += -I$(srctree)/drivers/usb/gadget/udc/
+ccflags-y                      += -I$(srctree)/drivers/usb/gadget/function/
 
 g_zero-y                       := zero.o
 g_audio-y                      := audio.o