blob: 046ce5d980331cbc4407e82b95fa25ddf45c7e9b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Alexei Starovoitovf89b7752014-10-23 18:41:08 -07002obj-y := core.o
Valdis Klētnieksaee450c2019-06-06 22:39:27 -04003CFLAGS_core.o += $(call cc-disable-warning, override-init)
Daniel Borkmannb2197752015-10-29 14:58:09 +01004
Edward Creef1174f72017-08-07 15:26:19 +01005obj-$(CONFIG_BPF_SYSCALL) += syscall.o verifier.o inode.o helpers.o tnum.o
Martin KaFai Lau56f668d2017-03-22 10:00:33 -07006obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o
Mauricio Vasquez Bf1a2e442018-10-18 15:16:25 +02007obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o
Jakub Kicinskif4ac7e02017-10-09 10:30:12 -07008obj-$(CONFIG_BPF_SYSCALL) += disasm.o
Alexei Starovoitovfec56f52019-11-14 10:57:04 -08009obj-$(CONFIG_BPF_JIT) += trampoline.o
Martin KaFai Lau69b693f2018-04-18 15:55:57 -070010obj-$(CONFIG_BPF_SYSCALL) += btf.o
Björn Töpel75ccbef2019-12-13 18:51:08 +010011obj-$(CONFIG_BPF_JIT) += dispatcher.o
John Fastabend546ac1f2017-07-17 09:28:56 -070012ifeq ($(CONFIG_NET),y)
John Fastabend6bdc9c42017-08-16 15:02:32 -070013obj-$(CONFIG_BPF_SYSCALL) += devmap.o
Jesper Dangaard Brouer6710e112017-10-16 12:19:28 +020014obj-$(CONFIG_BPF_SYSCALL) += cpumap.o
Björn Töpelfbfc504a2018-05-02 13:01:28 +020015ifeq ($(CONFIG_XDP_SOCKETS),y)
16obj-$(CONFIG_BPF_SYSCALL) += xskmap.o
17endif
Jakub Kicinskiab3f0062017-11-03 13:56:17 -070018obj-$(CONFIG_BPF_SYSCALL) += offload.o
John Fastabend5f103c52018-01-03 17:57:56 -080019endif
Alexei Starovoitovd5a3b1f2016-02-17 19:58:58 -080020ifeq ($(CONFIG_PERF_EVENTS),y)
21obj-$(CONFIG_BPF_SYSCALL) += stackmap.o
22endif
Daniel Mack30070982016-11-23 16:52:26 +010023obj-$(CONFIG_CGROUP_BPF) += cgroup.o
Martin KaFai Lau5dc4c4b2018-08-08 01:01:24 -070024ifeq ($(CONFIG_INET),y)
25obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o
26endif
Andrii Nakryiko341dfcf2019-08-12 11:39:47 -070027ifeq ($(CONFIG_SYSFS),y)
28obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o
29endif
Martin KaFai Lau27ae79972020-01-08 16:35:03 -080030ifeq ($(CONFIG_BPF_JIT),y)
31obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o
32endif