xref: /linux/drivers/net/ethernet/microchip/sparx5/Makefile (revision 150b567e0d572342ef08bace7ee7aff80fd75327)
13cfa11baSSteen Hegelund# SPDX-License-Identifier: GPL-2.0-only
23cfa11baSSteen Hegelund#
33cfa11baSSteen Hegelund# Makefile for the Microchip Sparx5 network device drivers.
43cfa11baSSteen Hegelund#
53cfa11baSSteen Hegelund
63cfa11baSSteen Hegelundobj-$(CONFIG_SPARX5_SWITCH) += sparx5-switch.o
73cfa11baSSteen Hegelund
88beef08fSSteen Hegelundsparx5-switch-y  := sparx5_main.o sparx5_packet.o \
9d6fce514SSteen Hegelund sparx5_netdev.o sparx5_phylink.o sparx5_port.o sparx5_mactable.o sparx5_vlan.o \
100933bd04SHoratiu Vultur sparx5_switchdev.o sparx5_calendar.o sparx5_ethtool.o sparx5_fdma.o \
118beef08fSSteen Hegelund sparx5_ptp.o sparx5_pgid.o sparx5_tc.o sparx5_qos.o \
12bb535c0dSDaniel Machon sparx5_vcap_impl.o sparx5_vcap_ag_api.o sparx5_tc_flower.o \
134e50d72bSDaniel Machon sparx5_tc_matchall.o sparx5_pool.o sparx5_sdlb.o sparx5_police.o \
145ba3f846SDaniel Machon sparx5_psfp.o sparx5_mirror.o sparx5_regs.o
158beef08fSSteen Hegelund
1692ef3d01SDaniel Machonsparx5-switch-$(CONFIG_SPARX5_DCB) += sparx5_dcb.o
17e0305cc1SSteen Hegelundsparx5-switch-$(CONFIG_DEBUG_FS) += sparx5_vcap_debugfs.o
1892ef3d01SDaniel Machon
19*1cd7523fSDaniel Machonsparx5-switch-$(CONFIG_LAN969X_SWITCH) += lan969x/lan969x_regs.o \
20*1cd7523fSDaniel Machon					  lan969x/lan969x.o \
21*1cd7523fSDaniel Machon					  lan969x/lan969x_calendar.o \
22*1cd7523fSDaniel Machon					  lan969x/lan969x_vcap_ag_api.o \
23*1cd7523fSDaniel Machon					  lan969x/lan969x_vcap_impl.o
24*1cd7523fSDaniel Machon
258beef08fSSteen Hegelund# Provide include files
268beef08fSSteen Hegelundccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
27947a72f4SDaniel Machonccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/fdma
28