1 # SPDX-License-Identifier: GPL-2.0
3 CFLAGS_core.o
+= $(call cc-disable-warning
, override-init
)
5 obj-
$(CONFIG_BPF_SYSCALL
) += syscall.o verifier.o inode.o helpers.o tnum.o bpf_iter.o map_iter.o task_iter.o
6 obj-
$(CONFIG_BPF_SYSCALL
) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o
7 obj-
$(CONFIG_BPF_SYSCALL
) += local_storage.o queue_stack_maps.o ringbuf.o
8 obj-
$(CONFIG_BPF_SYSCALL
) += disasm.o
9 obj-
$(CONFIG_BPF_JIT
) += trampoline.o
10 obj-
$(CONFIG_BPF_SYSCALL
) += btf.o
11 obj-
$(CONFIG_BPF_JIT
) += dispatcher.o
12 ifeq ($(CONFIG_NET
),y
)
13 obj-
$(CONFIG_BPF_SYSCALL
) += devmap.o
14 obj-
$(CONFIG_BPF_SYSCALL
) += cpumap.o
15 obj-
$(CONFIG_BPF_SYSCALL
) += offload.o
16 obj-
$(CONFIG_BPF_SYSCALL
) += net_namespace.o
18 ifeq ($(CONFIG_PERF_EVENTS
),y
)
19 obj-
$(CONFIG_BPF_SYSCALL
) += stackmap.o
21 obj-
$(CONFIG_CGROUP_BPF
) += cgroup.o
22 ifeq ($(CONFIG_INET
),y
)
23 obj-
$(CONFIG_BPF_SYSCALL
) += reuseport_array.o
25 ifeq ($(CONFIG_SYSFS
),y
)
26 obj-
$(CONFIG_DEBUG_INFO_BTF
) += sysfs_btf.o
28 ifeq ($(CONFIG_BPF_JIT
),y
)
29 obj-
$(CONFIG_BPF_SYSCALL
) += bpf_struct_ops.o
30 obj-
${CONFIG_BPF_LSM} += bpf_lsm.o