aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2019-01-10 15:44:14 +0100
committerMarek Vasut <marex@denx.de>2019-01-10 18:52:55 +0100
commitdb17a92d28bd57dfa550e2d91c594e10dd487c6b (patch)
tree2263bb41df055cd13483259a5359ec207e0ddcb4 /Makefile
parentf811e9763f4b6f6f5e3fe9c2fa30d2b6c62d289e (diff)
downloadu-boot-db17a92d28bd57dfa550e2d91c594e10dd487c6b.zip
u-boot-db17a92d28bd57dfa550e2d91c594e10dd487c6b.tar.gz
u-boot-db17a92d28bd57dfa550e2d91c594e10dd487c6b.tar.bz2
usb: Make compiling gadget support optional
There is no need to compile and include this code if it is not used. CONFIG_USB_GADGET can be used for the purpose. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eeb299f..158355f 100644
--- a/Makefile
+++ b/Makefile
@@ -712,8 +712,8 @@ libs-y += drivers/usb/dwc3/
libs-y += drivers/usb/common/
libs-y += drivers/usb/emul/
libs-y += drivers/usb/eth/
-libs-y += drivers/usb/gadget/
-libs-y += drivers/usb/gadget/udc/
+libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/
+libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/udc/
libs-y += drivers/usb/host/
libs-y += drivers/usb/musb/
libs-y += drivers/usb/musb-new/