Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Alexei Starovoitov | f89b775 | 2014-10-23 18:41:08 -0700 | [diff] [blame] | 2 | obj-y := core.o |
Valdis Klētnieks | aee450c | 2019-06-06 22:39:27 -0400 | [diff] [blame] | 3 | CFLAGS_core.o += $(call cc-disable-warning, override-init) |
Daniel Borkmann | b219775 | 2015-10-29 14:58:09 +0100 | [diff] [blame] | 4 | |
Alexei Starovoitov | a228a64 | 2020-07-01 18:10:18 -0700 | [diff] [blame] | 5 | obj-$(CONFIG_BPF_SYSCALL) += syscall.o verifier.o inode.o helpers.o tnum.o bpf_iter.o map_iter.o task_iter.o prog_iter.o |
Martin KaFai Lau | 56f668d | 2017-03-22 10:00:33 -0700 | [diff] [blame] | 6 | obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o |
Andrii Nakryiko | 457f443 | 2020-05-29 00:54:20 -0700 | [diff] [blame] | 7 | obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 8 | obj-$(CONFIG_BPF_SYSCALL) += disasm.o |
Alexei Starovoitov | fec56f5 | 2019-11-14 10:57:04 -0800 | [diff] [blame] | 9 | obj-$(CONFIG_BPF_JIT) += trampoline.o |
Martin KaFai Lau | 69b693f | 2018-04-18 15:55:57 -0700 | [diff] [blame] | 10 | obj-$(CONFIG_BPF_SYSCALL) += btf.o |
Björn Töpel | 75ccbef | 2019-12-13 18:51:08 +0100 | [diff] [blame] | 11 | obj-$(CONFIG_BPF_JIT) += dispatcher.o |
John Fastabend | 546ac1f | 2017-07-17 09:28:56 -0700 | [diff] [blame] | 12 | ifeq ($(CONFIG_NET),y) |
John Fastabend | 6bdc9c4 | 2017-08-16 15:02:32 -0700 | [diff] [blame] | 13 | obj-$(CONFIG_BPF_SYSCALL) += devmap.o |
Jesper Dangaard Brouer | 6710e11 | 2017-10-16 12:19:28 +0200 | [diff] [blame] | 14 | obj-$(CONFIG_BPF_SYSCALL) += cpumap.o |
Jakub Kicinski | ab3f006 | 2017-11-03 13:56:17 -0700 | [diff] [blame] | 15 | obj-$(CONFIG_BPF_SYSCALL) += offload.o |
Jakub Sitnicki | b27f7bb | 2020-05-31 10:28:37 +0200 | [diff] [blame] | 16 | obj-$(CONFIG_BPF_SYSCALL) += net_namespace.o |
John Fastabend | 5f103c5 | 2018-01-03 17:57:56 -0800 | [diff] [blame] | 17 | endif |
Alexei Starovoitov | d5a3b1f | 2016-02-17 19:58:58 -0800 | [diff] [blame] | 18 | ifeq ($(CONFIG_PERF_EVENTS),y) |
| 19 | obj-$(CONFIG_BPF_SYSCALL) += stackmap.o |
| 20 | endif |
Daniel Mack | 3007098 | 2016-11-23 16:52:26 +0100 | [diff] [blame] | 21 | obj-$(CONFIG_CGROUP_BPF) += cgroup.o |
Martin KaFai Lau | 5dc4c4b | 2018-08-08 01:01:24 -0700 | [diff] [blame] | 22 | ifeq ($(CONFIG_INET),y) |
| 23 | obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o |
| 24 | endif |
Andrii Nakryiko | 341dfcf | 2019-08-12 11:39:47 -0700 | [diff] [blame] | 25 | ifeq ($(CONFIG_SYSFS),y) |
| 26 | obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o |
| 27 | endif |
Martin KaFai Lau | 27ae7997 | 2020-01-08 16:35:03 -0800 | [diff] [blame] | 28 | ifeq ($(CONFIG_BPF_JIT),y) |
| 29 | obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o |
KP Singh | fc611f4 | 2020-03-29 01:43:49 +0100 | [diff] [blame] | 30 | obj-${CONFIG_BPF_LSM} += bpf_lsm.o |
Martin KaFai Lau | 27ae7997 | 2020-01-08 16:35:03 -0800 | [diff] [blame] | 31 | endif |
Alexei Starovoitov | d71fa5c | 2020-08-18 21:27:58 -0700 | [diff] [blame^] | 32 | obj-$(CONFIG_BPF_PRELOAD) += preload/ |