]> git.baikalelectronics.ru Git - uboot.git/commitdiff
usb: Make compiling gadget support optional
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 10 Jan 2019 14:44:14 +0000 (15:44 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 10 Jan 2019 17:52:55 +0000 (18:52 +0100)
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>
19 files changed:
Makefile
configs/cm_t3517_defconfig
configs/cm_t35_defconfig
configs/duovero_defconfig
configs/igep0032_defconfig
configs/igep00x0_defconfig
configs/omap3_zoom1_defconfig
configs/omap4_panda_defconfig
configs/omap4_sdp4430_defconfig
configs/spear300_usbtty_defconfig
configs/spear300_usbtty_nand_defconfig
configs/spear310_usbtty_defconfig
configs/spear310_usbtty_nand_defconfig
configs/spear310_usbtty_pnor_defconfig
configs/spear320_usbtty_defconfig
configs/spear320_usbtty_nand_defconfig
configs/spear320_usbtty_pnor_defconfig
configs/spear600_usbtty_defconfig
configs/spear600_usbtty_nand_defconfig

index eeb299fc380e0e24fc399860957c7f8edb497b03..158355f0111942273642233971c660699a09f1fc 100644 (file)
--- 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/
index 0901fea638851620cea743da90c1cb209cac658c..c204a29081c61bf01745c964c2d7f962bf0098af 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_AM35X=y
 CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
 CONFIG_VIDEO_OMAP3=y
 CONFIG_LCD=y
 CONFIG_OF_LIBFDT=y
index f1fe2d058d353399442eb85ed4002fc71af01156..a27c502489679316cb4fcae359578f5b189a1850 100644 (file)
@@ -56,6 +56,7 @@ CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
 CONFIG_TWL4030_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
 CONFIG_VIDEO_OMAP3=y
 CONFIG_LCD=y
 CONFIG_OF_LIBFDT=y
index 8ea626d013941de7ec1742f2e5517138568e8c90..782a9dc29126233bf772c6c8095dbe82030e9ac7 100644 (file)
@@ -36,5 +36,6 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_USB_GADGET=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
index 383648789c5349414dc1f599452bc3274ea3799f..20d2cf5820c25a12e85d5da488b7cac223aa5714 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
 CONFIG_TWL4030_USB=y
+CONFIG_USB_GADGET=y
 CONFIG_FAT_WRITE=y
 CONFIG_UBIFS_SILENCE_MSG=y
 CONFIG_BCH=y
index f2989e34e12ea06dcc9e87abc9f020484a8f5b8d..330350c32acec80e06ee002ffe3298cb32f22151 100644 (file)
@@ -46,6 +46,7 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
 CONFIG_TWL4030_USB=y
+CONFIG_USB_GADGET=y
 CONFIG_FAT_WRITE=y
 CONFIG_UBIFS_SILENCE_MSG=y
 CONFIG_BCH=y
index 325c0020cab4dfb79a5a32fcdfdd84f3945f73a2..489e6a8ee02d39ca8573c5030f6758861ee24f54 100644 (file)
@@ -35,5 +35,6 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
 CONFIG_TWL4030_USB=y
+CONFIG_USB_GADGET=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
index b66659f123a41cf048df0833f5f4e481e8b63afb..7ee9eea06a069d9f6b16ec0e04fc3db7f80b6519 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_USB_GADGET=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_SMSC95XX=y
 CONFIG_OF_LIBFDT=y
index 6b2ea202e54da0eb1d44d35f471b93fa654e2f7c..0e01c8edcbf42f5733ed6324b252239cfd20b4c7 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
+CONFIG_USB_GADGET=y
 CONFIG_FAT_WRITE=y
 # CONFIG_REGEX is not set
 CONFIG_OF_LIBFDT=y
index bc0c3ec09132cc91991141b9edb66919d9ce4d5c..cb115fecb71f225a94d8d1f75611019910ebf7e5 100644 (file)
@@ -27,3 +27,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 9b90cd86389afac668471138a9dfeec727f93a74..4064ba36e9756c887aebb05b24873779e5e39335 100644 (file)
@@ -28,3 +28,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 7786e66998253bf0dbd703237517d0b4dd88d121..9373df83f75a59bf6f60ed5b0b90e52e2dd371f8 100644 (file)
@@ -27,3 +27,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 1d41522b2a21cdd7670ab62e3a2763d5e6441699..a4f09a273596e592b5e6cfd4244e9e1bd3d8fb1c 100644 (file)
@@ -28,3 +28,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index b5214b5d8284c851a0a24e4a9eb0d0773f6c58d6..8263454de62160f9823ba7162f61527b7606a5fc 100644 (file)
@@ -30,3 +30,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 3c10f3261e5cd467525918dafbdbe49f62fe065c..80acff0cce7bed944113d47633d9406e3980aca5 100644 (file)
@@ -27,3 +27,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 8fb84bcc604f30def443d2fbe16d22938c92fbbf..00534b1c245e34e7b9920bd77da3e9587950961f 100644 (file)
@@ -28,3 +28,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 2cf39b450cf7187a181ea3680ad77eb56283f87c..916321c60c9022c1bbeff051f74f603f352150de 100644 (file)
@@ -30,3 +30,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 5c7b0a8ab41f8a2367fb610dbfd429d2346467aa..d0bdc7587da0bac7dd3162526935ca0a50fdaef5 100644 (file)
@@ -27,3 +27,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y
index 078e934bba93292700c9312bae68d34cc07379cf..ccbfec92983071cc330e5e576bbfd35de5a7105e 100644 (file)
@@ -28,3 +28,5 @@ CONFIG_PHY_GIGE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_MII=y
 CONFIG_CONS_INDEX=0
+CONFIG_USB=y
+CONFIG_USB_GADGET=y