mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
drivers/usb/gadget: select objects by obj-$(CONFIG-...)
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>
This commit is contained in:
parent
755e08f0e5
commit
4f57a90cfa
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue