]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
drivers/usb/gadget: select objects by obj-$(CONFIG-...)
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 28 Nov 2013 03:20:14 +0000 (12:20 +0900)
committerTom Rini <trini@ti.com>
Fri, 13 Dec 2013 14:18:44 +0000 (09:18 -0500)
Before switching to the real Kbuild, drivers/usb/gadget/Makefile
must be fixed.
If none of CONFIG_USB_GADGET, CONFIG_USB_ETHER, CONFIG_USB_DEVICE
is defined, both obj- and obj-y get empty.

We need non-empty obj- or obj-y on each Makefile
to generate built-in.o on the real Kbuild.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/usb/gadget/Makefile

index f52d3f450039b38d3e2f4e183adbcf29a2f6cac2..f13b172a6677333087116f0d3beb47abba7d99d4 100644 (file)
@@ -5,12 +5,8 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-# if defined(CONFIG_USB_GADGET) || defined(CONFIG_USB_ETHER)
-#   Everytime you forget how crufty makefiles can get things like
-#   this remind you...
-ifneq (,$(CONFIG_USB_GADGET)$(CONFIG_USB_ETHER))
-obj-y += epautoconf.o config.o usbstring.o
-endif
+obj-$(CONFIG_USB_GADGET) += epautoconf.o config.o usbstring.o
+obj-$(CONFIG_USB_ETHER) += epautoconf.o config.o usbstring.o
 
 # new USB gadget layer dependencies
 ifdef CONFIG_USB_GADGET