xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Makefile (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0
2obj-$(CONFIG_MLXSW_CORE)	+= mlxsw_core.o
3mlxsw_core-objs			:= core.o core_acl_flex_keys.o \
4				   core_acl_flex_actions.o core_env.o \
5				   core_linecards.o core_linecard_dev.o
6mlxsw_core-$(CONFIG_MLXSW_CORE_HWMON) += core_hwmon.o
7mlxsw_core-$(CONFIG_MLXSW_CORE_THERMAL) += core_thermal.o
8obj-$(CONFIG_MLXSW_PCI)		+= mlxsw_pci.o
9mlxsw_pci-objs			:= pci.o
10obj-$(CONFIG_MLXSW_I2C)		+= mlxsw_i2c.o
11mlxsw_i2c-objs			:= i2c.o
12obj-$(CONFIG_MLXSW_SPECTRUM)	+= mlxsw_spectrum.o
13mlxsw_spectrum-objs		:= spectrum.o spectrum_buffers.o \
14				   spectrum_switchdev.o spectrum_router.o \
15				   spectrum1_kvdl.o spectrum2_kvdl.o \
16				   spectrum_kvdl.o \
17				   spectrum_acl_tcam.o spectrum_acl_ctcam.o \
18				   spectrum_acl_atcam.o spectrum_acl_erp.o \
19				   spectrum1_acl_tcam.o spectrum2_acl_tcam.o \
20				   spectrum_acl_bloom_filter.o spectrum_acl.o \
21				   spectrum_flow.o spectrum_matchall.o \
22				   spectrum_flower.o spectrum_cnt.o \
23				   spectrum_fid.o spectrum_ipip.o \
24				   spectrum_acl_flex_actions.o \
25				   spectrum_acl_flex_keys.o \
26				   spectrum1_mr_tcam.o spectrum2_mr_tcam.o \
27				   spectrum_mr_tcam.o spectrum_mr.o \
28				   spectrum_qdisc.o spectrum_span.o \
29				   spectrum_nve.o spectrum_nve_vxlan.o \
30				   spectrum_dpipe.o spectrum_trap.o \
31				   spectrum_ethtool.o spectrum_policer.o \
32				   spectrum_pgt.o spectrum_port_range.o
33mlxsw_spectrum-$(CONFIG_MLXSW_SPECTRUM_DCB)	+= spectrum_dcb.o
34mlxsw_spectrum-$(CONFIG_PTP_1588_CLOCK)		+= spectrum_ptp.o
35obj-$(CONFIG_MLXSW_MINIMAL)	+= mlxsw_minimal.o
36mlxsw_minimal-objs		:= minimal.o
37