# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_FSL_ENETC_CORE) += fsl-enetc-core.o
fsl-enetc-core-y := enetc.o enetc_cbdr.o enetc_ethtool.o

obj-$(CONFIG_FSL_ENETC) += fsl-enetc.o
fsl-enetc-y := enetc_pf.o enetc_pf_common.o
fsl-enetc-$(CONFIG_PCI_IOV) += enetc_msg.o
fsl-enetc-$(CONFIG_FSL_ENETC_QOS) += enetc_qos.o
ifdef CONFIG_TSN
fsl-enetc-$(CONFIG_FSL_ENETC_QOS) += enetc_tsn.o
endif

obj-$(CONFIG_FSL_ENETC4) += fsl-enetc4.o
fsl-enetc4-y := enetc4_pf.o enetc_pf_common.o enetc_devlink.o
fsl-enetc4-$(CONFIG_PCI_IOV) += enetc_msg.o
fsl-enetc4-$(CONFIG_FSL_ENETC_QOS) += enetc_qos.o
fsl-enetc4-$(CONFIG_DEBUG_FS) += enetc_debugfs.o

obj-$(CONFIG_FSL_ENETC_VF) += fsl-enetc-vf.o
fsl-enetc-vf-y := enetc_vf.o

obj-$(CONFIG_FSL_ENETC_IERB) += fsl-enetc-ierb.o
fsl-enetc-ierb-y := enetc_ierb.o

obj-$(CONFIG_FSL_NETC_PRB_IERB) += fsl-netc-prb-ierb.o
fsl-netc-prb-ierb-y := netc_prb_ierb.o

obj-$(CONFIG_FSL_ENETC_MDIO) += fsl-enetc-mdio.o
fsl-enetc-mdio-y := enetc_pci_mdio.o enetc_mdio.o

obj-$(CONFIG_FSL_ENETC_PTP_CLOCK) += fsl-enetc-ptp.o
fsl-enetc-ptp-y := enetc_ptp.o

obj-$(CONFIG_FSL_NTMP) += fsl-ntmp.o
fsl-ntmp-objs := ntmp.o
