diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2019-01-10 15:44:14 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-01-10 18:52:55 +0100 |
commit | db17a92d28bd57dfa550e2d91c594e10dd487c6b (patch) | |
tree | 2263bb41df055cd13483259a5359ec207e0ddcb4 /Makefile | |
parent | f811e9763f4b6f6f5e3fe9c2fa30d2b6c62d289e (diff) | |
download | u-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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/ |