# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021 - 2023, Shanghai Yunsilicon Technology Co., Ltd.
# All rights reserved.

ccflags-y += -I$(srctree)/drivers/net/ethernet/yunsilicon/xsc

ifeq ($(HAVE_TO_USE_M_IB_CORE), 1)
	ccflags-y += $(xsc-ccflags)
endif

obj-$(CONFIG_YUNSILICON_XSC_ETH) += xsc_eth.o

xsc_eth-y := main.o xsc_eth_ctrl.o xsc_eth_tx.o xsc_eth_rx.o xsc_eth_txrx.o \
		ut_main.o xsc_eth_ethtool.o xsc_eth_stats.o xsc_dcbnl.o xsc_hw_comm.o \
		xsc_eth_sysfs.o xsc_fs.o xsc_eth_dim.o
