2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2012-11-06 13:48:21 +00:00
|
|
|
#
|
|
|
|
# for USB OTG silicon based on Mentor Graphics INVENTRA designs
|
|
|
|
|
2015-08-04 15:04:06 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_GADGET) += musb_gadget.o musb_gadget_ep0.o musb_core.o
|
|
|
|
obj-$(CONFIG_USB_MUSB_GADGET) += musb_uboot.o
|
|
|
|
obj-$(CONFIG_USB_MUSB_HOST) += musb_host.o musb_core.o musb_uboot.o
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_DSPS) += musb_dsps.o
|
2019-07-10 18:59:10 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_DA8XX) += da8xx.o
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_AM35X) += am35x.o
|
2020-01-16 08:11:37 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_MT85XX) += mt85xx.o
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o
|
2016-03-21 07:35:42 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_PIC32) += pic32.o
|
2015-01-11 19:34:48 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_SUNXI) += sunxi.o
|
2016-11-17 09:08:08 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_TI) += ti-musb.o
|
2021-07-08 18:33:50 +00:00
|
|
|
obj-$(CONFIG_USB_MUSB_UX500) += ux500.o
|
2012-11-06 13:48:21 +00:00
|
|
|
|
kbuild: use Linux Kernel build scripts
Now we are ready to switch over to real Kbuild.
This commit disables temporary scripts:
scripts/{Makefile.build.tmp, Makefile.host.tmp}
and enables real Kbuild scripts:
scripts/{Makefile.build,Makefile.host,Makefile.lib}.
This switch is triggered by the line in scripts/Kbuild.include
-build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
+build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
We need to adjust some build scripts for U-Boot.
But smaller amount of modification is preferable.
Additionally, we need to fix compiler flags which are
locally added or removed.
In Kbuild, it is not allowed to change CFLAGS locally.
Instead, ccflags-y, asflags-y, cppflags-y,
CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
are prepared for that purpose.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Gerhard Sittig <gsi@denx.de>
2014-02-04 08:24:28 +00:00
|
|
|
ccflags-y := $(call cc-option,-Wno-unused-variable) \
|
|
|
|
$(call cc-option,-Wno-unused-but-set-variable) \
|
|
|
|
$(call cc-option,-Wno-unused-label)
|