summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/sdk_dpaa/Makefile
blob: a0f4b19083ff41653696e60844289ef9c3f73fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Makefile for the Freescale Ethernet controllers
#
ccflags-y += -DVERSION=\"\"
#
# Include netcomm SW specific definitions
include $(srctree)/drivers/net/ethernet/freescale/sdk_fman/ncsw_config.mk

ccflags-y += -I$(NET_DPA)

obj-$(CONFIG_FSL_SDK_DPAA_ETH) += fsl_mac.o fsl_dpa.o
obj-$(CONFIG_PTP_1588_CLOCK_DPAA) += dpaa_ptp.o

fsl_dpa-objs += dpaa_ethtool.o dpaa_eth_sysfs.o dpaa_eth.o dpaa_eth_sg.o dpaa_eth_common.o
ifeq ($(CONFIG_FSL_DPAA_DBG_LOOP),y)
fsl_dpa-objs += dpaa_debugfs.o
endif
ifeq ($(CONFIG_FSL_DPAA_1588),y)
fsl_dpa-objs += dpaa_1588.o
endif
ifeq ($(CONFIG_FSL_DPAA_CEETM),y)
ccflags-y += -Idrivers/net/ethernet/freescale/sdk_fman/src/wrapper
fsl_dpa-objs += dpaa_eth_ceetm.o
endif

fsl_mac-objs += mac.o mac-api.o

# Advanced drivers
ifeq ($(CONFIG_FSL_DPAA_ADVANCED_DRIVERS),y)
obj-$(CONFIG_FSL_SDK_DPAA_ETH) += fsl_advanced.o
obj-$(CONFIG_FSL_SDK_DPAA_ETH) += fsl_proxy.o

fsl_advanced-objs += dpaa_eth_base.o
# suport for multiple drivers per kernel module comes in kernel 3.14
# so we are forced to generate several modules for the advanced drivers
fsl_proxy-objs += dpaa_eth_proxy.o

ifeq ($(CONFIG_FSL_DPAA_OFFLINE_PORTS),y)
obj-$(CONFIG_FSL_SDK_DPAA_ETH) += fsl_oh.o

fsl_oh-objs += offline_port.o
endif
endif

# Needed by the tracing framework
CFLAGS_dpaa_eth.o := -I$(src)