]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: gadget: allow ci_udc to build with new gadget framework
authorStephen Warren <swarren@nvidia.com>
Mon, 28 Apr 2014 21:42:00 +0000 (15:42 -0600)
committerMarek Vasut <marex@denx.de>
Thu, 1 May 2014 10:44:24 +0000 (12:44 +0200)
Allow ci_udc.o to be built when using the new(?) USB gadget framework,
as enabled by CONFIG_USB_GADGET.

Note that this duplicates the Makefile entry for ci_udc.o, since it's
also included inside #ifdef CONFIG_USB_ETHER. I'm not sure what that
define means; perhaps an old style of Ethernet-specific USB gadget
implementation?

I wonder if the line that this patch adds shouldn't be outside all of
the ifdefs, so it stands on its own, similar to how e.g. epautoconf.o
is shared between the two?

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/gadget/Makefile

index 804a2bd412dd9d7f58ecdac0285c51d7bb93ab11..896c8d407e4ba0dacaefa7d1c737164a75f05ea3 100644 (file)
@@ -13,6 +13,7 @@ ifdef CONFIG_USB_GADGET
 obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
 obj-$(CONFIG_USB_GADGET_S3C_UDC_OTG) += s3c_udc_otg.o
 obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
+obj-$(CONFIG_CI_UDC)   += ci_udc.o
 obj-$(CONFIG_THOR_FUNCTION) += f_thor.o
 obj-$(CONFIG_USBDOWNLOAD_GADGET) += g_dnl.o
 obj-$(CONFIG_DFU_FUNCTION) += f_dfu.o