Makefile 1.2 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
obj-$(CONFIG_MLXSW_CORE)	+= mlxsw_core.o
3 4
mlxsw_core-objs			:= core.o core_acl_flex_keys.o \
				   core_acl_flex_actions.o
5
mlxsw_core-$(CONFIG_MLXSW_CORE_HWMON) += core_hwmon.o
I
Ivan Vecera 已提交
6
mlxsw_core-$(CONFIG_MLXSW_CORE_THERMAL) += core_thermal.o
J
Jiri Pirko 已提交
7 8
obj-$(CONFIG_MLXSW_PCI)		+= mlxsw_pci.o
mlxsw_pci-objs			:= pci.o
9 10
obj-$(CONFIG_MLXSW_I2C)		+= mlxsw_i2c.o
mlxsw_i2c-objs			:= i2c.o
11 12
obj-$(CONFIG_MLXSW_SWITCHIB)	+= mlxsw_switchib.o
mlxsw_switchib-objs		:= switchib.o
13 14
obj-$(CONFIG_MLXSW_SWITCHX2)	+= mlxsw_switchx2.o
mlxsw_switchx2-objs		:= switchx2.o
15 16
obj-$(CONFIG_MLXSW_SPECTRUM)	+= mlxsw_spectrum.o
mlxsw_spectrum-objs		:= spectrum.o spectrum_buffers.o \
17
				   spectrum_switchdev.o spectrum_router.o \
18 19 20 21 22
				   spectrum1_kvdl.o spectrum_kvdl.o \
				   spectrum_acl_tcam.o spectrum_acl.o \
				   spectrum_flower.o spectrum_cnt.o \
				   spectrum_fid.o spectrum_ipip.o \
				   spectrum_acl_flex_actions.o \
23 24
				   spectrum1_mr_tcam.o \
				   spectrum_mr_tcam.o spectrum_mr.o \
25
				   spectrum_qdisc.o spectrum_span.o
26
mlxsw_spectrum-$(CONFIG_MLXSW_SPECTRUM_DCB)	+= spectrum_dcb.o
27
mlxsw_spectrum-$(CONFIG_NET_DEVLINK) += spectrum_dpipe.o
28 29
obj-$(CONFIG_MLXSW_MINIMAL)	+= mlxsw_minimal.o
mlxsw_minimal-objs		:= minimal.o