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_hwinfo.o \
9	    nfpcore/nfp_mip.o \
10	    nfpcore/nfp_mutex.o \
11	    nfpcore/nfp_nffw.o \
12	    nfpcore/nfp_nsp.o \
13	    nfpcore/nfp_nsp_cmds.o \
14	    nfpcore/nfp_nsp_eth.o \
15	    nfpcore/nfp_resource.o \
16	    nfpcore/nfp_rtsym.o \
17	    nfpcore/nfp_target.o \
18	    ccm.o \
19	    ccm_mbox.o \
20	    devlink_param.o \
21	    nfp_asm.o \
22	    nfp_app.o \
23	    nfp_app_nic.o \
24	    nfp_devlink.o \
25	    nfp_hwmon.o \
26	    nfp_main.o \
27	    nfp_net_common.o \
28	    nfp_net_ctrl.o \
29	    nfp_net_debugdump.o \
30	    nfp_net_ethtool.o \
31	    nfp_net_main.o \
32	    nfp_net_repr.o \
33	    nfp_net_sriov.o \
34	    nfp_netvf_main.o \
35	    nfp_port.o \
36	    nfp_shared_buf.o \
37	    nic/main.o
38
39ifeq ($(CONFIG_TLS_DEVICE),y)
40nfp-objs += \
41	    crypto/tls.o
42endif
43
44ifeq ($(CONFIG_NFP_APP_FLOWER),y)
45nfp-objs += \
46	    flower/action.o \
47	    flower/cmsg.o \
48	    flower/lag_conf.o \
49	    flower/main.o \
50	    flower/match.o \
51	    flower/metadata.o \
52	    flower/offload.o \
53	    flower/tunnel_conf.o \
54	    flower/qos_conf.o \
55	    flower/conntrack.o
56endif
57
58ifeq ($(CONFIG_BPF_SYSCALL),y)
59nfp-objs += \
60	    bpf/cmsg.o \
61	    bpf/main.o \
62	    bpf/offload.o \
63	    bpf/verifier.o \
64	    bpf/jit.o
65endif
66
67ifeq ($(CONFIG_NFP_APP_ABM_NIC),y)
68nfp-objs += \
69	    abm/cls.o \
70	    abm/ctrl.o \
71	    abm/qdisc.o \
72	    abm/main.o
73endif
74
75nfp-$(CONFIG_NFP_DEBUG) += nfp_net_debugfs.o
76