Merge tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux/fpc-iii.git] / kernel / bpf / Makefile
blobd1249340fd6baed87ebfa77e2198aab0265790fb
1 # SPDX-License-Identifier: GPL-2.0
2 obj-y := core.o
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)
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
10 obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o
11 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
12 obj-${CONFIG_BPF_LSM} += bpf_inode_storage.o
13 obj-${CONFIG_BPF_LSM} += bpf_task_storage.o
14 obj-$(CONFIG_BPF_SYSCALL) += disasm.o
15 obj-$(CONFIG_BPF_JIT) += trampoline.o
16 obj-$(CONFIG_BPF_SYSCALL) += btf.o
17 obj-$(CONFIG_BPF_JIT) += dispatcher.o
18 ifeq ($(CONFIG_NET),y)
19 obj-$(CONFIG_BPF_SYSCALL) += devmap.o
20 obj-$(CONFIG_BPF_SYSCALL) += cpumap.o
21 obj-$(CONFIG_BPF_SYSCALL) += bpf_local_storage.o
22 obj-$(CONFIG_BPF_SYSCALL) += offload.o
23 obj-$(CONFIG_BPF_SYSCALL) += net_namespace.o
24 endif
25 ifeq ($(CONFIG_PERF_EVENTS),y)
26 obj-$(CONFIG_BPF_SYSCALL) += stackmap.o
27 endif
28 obj-$(CONFIG_CGROUP_BPF) += cgroup.o
29 ifeq ($(CONFIG_INET),y)
30 obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o
31 endif
32 ifeq ($(CONFIG_SYSFS),y)
33 obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o
34 endif
35 ifeq ($(CONFIG_BPF_JIT),y)
36 obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o
37 obj-${CONFIG_BPF_LSM} += bpf_lsm.o
38 endif
39 obj-$(CONFIG_BPF_PRELOAD) += preload/