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 | |
Edward Cree | f1174f7 | 2017-08-07 15:26:19 +0100 | [diff] [blame] | 5 | obj-$(CONFIG_BPF_SYSCALL) += syscall.o verifier.o inode.o helpers.o tnum.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 |
Mauricio Vasquez B | f1a2e44 | 2018-10-18 15:16:25 +0200 | [diff] [blame] | 7 | obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.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 |
John Fastabend | 546ac1f | 2017-07-17 09:28:56 -0700 | [diff] [blame] | 11 | ifeq ($(CONFIG_NET),y) |
John Fastabend | 6bdc9c4 | 2017-08-16 15:02:32 -0700 | [diff] [blame] | 12 | obj-$(CONFIG_BPF_SYSCALL) += devmap.o |
Jesper Dangaard Brouer | 6710e11 | 2017-10-16 12:19:28 +0200 | [diff] [blame] | 13 | obj-$(CONFIG_BPF_SYSCALL) += cpumap.o |
Björn Töpel | fbfc504a | 2018-05-02 13:01:28 +0200 | [diff] [blame] | 14 | ifeq ($(CONFIG_XDP_SOCKETS),y) |
| 15 | obj-$(CONFIG_BPF_SYSCALL) += xskmap.o |
| 16 | endif |
Jakub Kicinski | ab3f006 | 2017-11-03 13:56:17 -0700 | [diff] [blame] | 17 | obj-$(CONFIG_BPF_SYSCALL) += offload.o |
John Fastabend | 5f103c5 | 2018-01-03 17:57:56 -0800 | [diff] [blame] | 18 | endif |
Alexei Starovoitov | d5a3b1f | 2016-02-17 19:58:58 -0800 | [diff] [blame] | 19 | ifeq ($(CONFIG_PERF_EVENTS),y) |
| 20 | obj-$(CONFIG_BPF_SYSCALL) += stackmap.o |
| 21 | endif |
Daniel Mack | 3007098 | 2016-11-23 16:52:26 +0100 | [diff] [blame] | 22 | obj-$(CONFIG_CGROUP_BPF) += cgroup.o |
Martin KaFai Lau | 5dc4c4b | 2018-08-08 01:01:24 -0700 | [diff] [blame] | 23 | ifeq ($(CONFIG_INET),y) |
| 24 | obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o |
| 25 | endif |
Andrii Nakryiko | 341dfcf | 2019-08-12 11:39:47 -0700 | [diff] [blame] | 26 | ifeq ($(CONFIG_SYSFS),y) |
| 27 | obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o |
| 28 | endif |