1# SPDX-License-Identifier: GPL-2.0
2obj-$(CONFIG_NFP)	+= nfp.o
3
4nfp-objs := \
5	    nfpcore/nfp6000_pcie.o \
6	    nfpcore/nfp_cppcore.o \
7	    nfpcore/nfp_cpplib.o \
8	    nfpcore/nfp_dev.o \
9	    nfpcore/nfp_hwinfo.o \
10	    nfpcore/nfp_mip.o \
11	    nfpcore/nfp_mutex.o \
12	    nfpcore/nfp_nffw.o \
13	    nfpcore/nfp_nsp.o \
14	    nfpcore/nfp_nsp_cmds.o \
15	    nfpcore/nfp_nsp_eth.o \
16	    nfpcore/nfp_resource.o \
17	    nfpcore/nfp_rtsym.o \
18	    nfpcore/nfp_target.o \
19	    ccm.o \
20	    ccm_mbox.o \
21	    devlink_param.o \
22	    nfp_asm.o \
23	    nfd3/dp.o \
24	    nfd3/rings.o \
25	    nfd3/xsk.o \
26	    nfdk/dp.o \
27	    nfdk/rings.o \
28	    nfp_app.o \
29	    nfp_app_nic.o \
30	    nfp_devlink.o \
31	    nfp_hwmon.o \
32	    nfp_main.o \
33	    nfp_net_common.o \
34	    nfp_net_dp.o \
35	    nfp_net_ctrl.o \
36	    nfp_net_debugdump.o \
37	    nfp_net_ethtool.o \
38	    nfp_net_main.o \
39	    nfp_net_repr.o \
40	    nfp_net_sriov.o \
41	    nfp_net_xsk.o \
42	    nfp_netvf_main.o \
43	    nfp_port.o \
44	    nfp_shared_buf.o \
45	    nic/main.o
46
47ifeq ($(CONFIG_TLS_DEVICE),y)
48nfp-objs += \
49	    crypto/tls.o
50endif
51
52ifeq ($(CONFIG_NFP_APP_FLOWER),y)
53nfp-objs += \
54	    flower/action.o \
55	    flower/cmsg.o \
56	    flower/lag_conf.o \
57	    flower/main.o \
58	    flower/match.o \
59	    flower/metadata.o \
60	    flower/offload.o \
61	    flower/tunnel_conf.o \
62	    flower/qos_conf.o \
63	    flower/conntrack.o
64endif
65
66ifeq ($(CONFIG_BPF_SYSCALL),y)
67nfp-objs += \
68	    bpf/cmsg.o \
69	    bpf/main.o \
70	    bpf/offload.o \
71	    bpf/verifier.o \
72	    bpf/jit.o
73endif
74
75ifeq ($(CONFIG_NFP_APP_ABM_NIC),y)
76nfp-objs += \
77	    abm/cls.o \
78	    abm/ctrl.o \
79	    abm/qdisc.o \
80	    abm/main.o
81endif
82
83nfp-$(CONFIG_NFP_NET_IPSEC) += crypto/ipsec.o nfd3/ipsec.o nfdk/ipsec.o
84
85nfp-$(CONFIG_NFP_DEBUG) += nfp_net_debugfs.o
86
87nfp-$(CONFIG_DCB) += nic/dcb.o
88