Merge tag 'arc-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[linux-2.6-microblaze.git] / drivers / net / ethernet / mediatek / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Makefile for the Mediatek SoCs built-in ethernet macs
4 #
5
6 obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth.o
7 mtk_eth-y := mtk_eth_soc.o mtk_sgmii.o mtk_eth_path.o mtk_ppe.o mtk_ppe_debugfs.o mtk_ppe_offload.o
8 mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed.o
9 ifdef CONFIG_DEBUG_FS
10 mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_debugfs.o
11 endif
12 obj-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_ops.o
13 obj-$(CONFIG_NET_MEDIATEK_STAR_EMAC) += mtk_star_emac.o
14
15 # FIXME: temporarily silence -Warray-bounds on non W=1+ builds
16 ifndef KBUILD_EXTRA_WARN
17 CFLAGS_mtk_ppe.o += -Wno-array-bounds
18 endif