1# SPDX-License-Identifier: GPL-2.0 2obj-y := core.o 3CFLAGS_core.o += $(call cc-disable-warning, override-init) 4 5obj-$(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 6obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o 7obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o 8obj-$(CONFIG_BPF_SYSCALL) += disasm.o 9obj-$(CONFIG_BPF_JIT) += trampoline.o 10obj-$(CONFIG_BPF_SYSCALL) += btf.o 11obj-$(CONFIG_BPF_JIT) += dispatcher.o 12ifeq ($(CONFIG_NET),y) 13obj-$(CONFIG_BPF_SYSCALL) += devmap.o 14obj-$(CONFIG_BPF_SYSCALL) += cpumap.o 15obj-$(CONFIG_BPF_SYSCALL) += offload.o 16obj-$(CONFIG_BPF_SYSCALL) += net_namespace.o 17endif 18ifeq ($(CONFIG_PERF_EVENTS),y) 19obj-$(CONFIG_BPF_SYSCALL) += stackmap.o 20endif 21obj-$(CONFIG_CGROUP_BPF) += cgroup.o 22ifeq ($(CONFIG_INET),y) 23obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o 24endif 25ifeq ($(CONFIG_SYSFS),y) 26obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o 27endif 28ifeq ($(CONFIG_BPF_JIT),y) 29obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o 30obj-${CONFIG_BPF_LSM} += bpf_lsm.o 31endif 32