From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 13 May 2016 14:24:12 +0200 Subject: [U-Boot] [PATCH 3/4] usb: dwc3: Makefile: Don't build gadget code if USB_GADGET is disabled In-Reply-To: <1463141873-10604-4-git-send-email-rogerq@ti.com> References: <1463141873-10604-1-git-send-email-rogerq@ti.com> <1463141873-10604-4-git-send-email-rogerq@ti.com> Message-ID: <5735C76C.80004@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/13/2016 02:17 PM, Roger Quadros wrote: > It is pointless to build gadget driver if USB_GADGET is disabled. > > Signed-off-by: Roger Quadros Acked-by: Marek Vasut > --- > drivers/usb/dwc3/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile > index 0cd7302..2964bae 100644 > --- a/drivers/usb/dwc3/Makefile > +++ b/drivers/usb/dwc3/Makefile > @@ -6,7 +6,7 @@ obj-$(CONFIG_USB_DWC3) += dwc3.o > > dwc3-y := core.o > > -dwc3-y += gadget.o ep0.o > +obj-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o > > obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o > obj-$(CONFIG_USB_DWC3_PHY_OMAP) += ti_usb_phy.o > -- Best regards, Marek Vasut