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 |
Ard Biesheuvel | 080b6f4 | 2020-10-28 18:15:05 +0100 | [diff] [blame] | 3 | ifneq ($(CONFIG_BPF_JIT_ALWAYS_ON),y) |
| 4 | # ___bpf_prog_run() needs GCSE disabled on x86; see 3193c0836f203 for details |
| 5 | cflags-nogcse-$(CONFIG_X86)$(CONFIG_CC_IS_GCC) := -fno-gcse |
| 6 | endif |
| 7 | CFLAGS_core.o += $(call cc-disable-warning, override-init) $(cflags-nogcse-yy) |
Daniel Borkmann | b219775 | 2015-10-29 14:58:09 +0100 | [diff] [blame] | 8 | |
Alexei Starovoitov | a228a64 | 2020-07-01 18:10:18 -0700 | [diff] [blame] | 9 | 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] | 10 | 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] | 11 | obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o |
Song Liu | a10787e | 2021-02-25 15:43:14 -0800 | [diff] [blame] | 12 | obj-$(CONFIG_BPF_SYSCALL) += bpf_local_storage.o bpf_task_storage.o |
KP Singh | 8ea6368 | 2020-08-25 20:29:17 +0200 | [diff] [blame] | 13 | obj-${CONFIG_BPF_LSM} += bpf_inode_storage.o |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 14 | obj-$(CONFIG_BPF_SYSCALL) += disasm.o |
Alexei Starovoitov | fec56f5 | 2019-11-14 10:57:04 -0800 | [diff] [blame] | 15 | obj-$(CONFIG_BPF_JIT) += trampoline.o |
Martin KaFai Lau | 69b693f | 2018-04-18 15:55:57 -0700 | [diff] [blame] | 16 | obj-$(CONFIG_BPF_SYSCALL) += btf.o |
Björn Töpel | 75ccbef | 2019-12-13 18:51:08 +0100 | [diff] [blame] | 17 | obj-$(CONFIG_BPF_JIT) += dispatcher.o |
John Fastabend | 546ac1f | 2017-07-17 09:28:56 -0700 | [diff] [blame] | 18 | ifeq ($(CONFIG_NET),y) |
John Fastabend | 6bdc9c4 | 2017-08-16 15:02:32 -0700 | [diff] [blame] | 19 | obj-$(CONFIG_BPF_SYSCALL) += devmap.o |
Jesper Dangaard Brouer | 6710e11 | 2017-10-16 12:19:28 +0200 | [diff] [blame] | 20 | obj-$(CONFIG_BPF_SYSCALL) += cpumap.o |
Jakub Kicinski | ab3f006 | 2017-11-03 13:56:17 -0700 | [diff] [blame] | 21 | obj-$(CONFIG_BPF_SYSCALL) += offload.o |
Jakub Sitnicki | b27f7bb | 2020-05-31 10:28:37 +0200 | [diff] [blame] | 22 | obj-$(CONFIG_BPF_SYSCALL) += net_namespace.o |
John Fastabend | 5f103c5 | 2018-01-03 17:57:56 -0800 | [diff] [blame] | 23 | endif |
Alexei Starovoitov | d5a3b1f | 2016-02-17 19:58:58 -0800 | [diff] [blame] | 24 | ifeq ($(CONFIG_PERF_EVENTS),y) |
| 25 | obj-$(CONFIG_BPF_SYSCALL) += stackmap.o |
| 26 | endif |
Daniel Mack | 3007098 | 2016-11-23 16:52:26 +0100 | [diff] [blame] | 27 | obj-$(CONFIG_CGROUP_BPF) += cgroup.o |
Martin KaFai Lau | 5dc4c4b | 2018-08-08 01:01:24 -0700 | [diff] [blame] | 28 | ifeq ($(CONFIG_INET),y) |
| 29 | obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o |
| 30 | endif |
Andrii Nakryiko | 341dfcf | 2019-08-12 11:39:47 -0700 | [diff] [blame] | 31 | ifeq ($(CONFIG_SYSFS),y) |
| 32 | obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o |
| 33 | endif |
Martin KaFai Lau | 27ae7997 | 2020-01-08 16:35:03 -0800 | [diff] [blame] | 34 | ifeq ($(CONFIG_BPF_JIT),y) |
| 35 | obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o |
KP Singh | fc611f4 | 2020-03-29 01:43:49 +0100 | [diff] [blame] | 36 | obj-${CONFIG_BPF_LSM} += bpf_lsm.o |
Martin KaFai Lau | 27ae7997 | 2020-01-08 16:35:03 -0800 | [diff] [blame] | 37 | endif |
Alexei Starovoitov | d71fa5c | 2020-08-18 21:27:58 -0700 | [diff] [blame] | 38 | obj-$(CONFIG_BPF_PRELOAD) += preload/ |