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_LSM} += bpf_inode_storage.o 9obj-$(CONFIG_BPF_SYSCALL) += disasm.o 10obj-$(CONFIG_BPF_JIT) += trampoline.o 11obj-$(CONFIG_BPF_SYSCALL) += btf.o 12obj-$(CONFIG_BPF_JIT) += dispatcher.o 13ifeq ($(CONFIG_NET),y) 14obj-$(CONFIG_BPF_SYSCALL) += devmap.o 15obj-$(CONFIG_BPF_SYSCALL) += cpumap.o 16obj-$(CONFIG_BPF_SYSCALL) += bpf_local_storage.o 17obj-$(CONFIG_BPF_SYSCALL) += offload.o 18obj-$(CONFIG_BPF_SYSCALL) += net_namespace.o 19endif 20ifeq ($(CONFIG_PERF_EVENTS),y) 21obj-$(CONFIG_BPF_SYSCALL) += stackmap.o 22endif 23obj-$(CONFIG_CGROUP_BPF) += cgroup.o 24ifeq ($(CONFIG_INET),y) 25obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o 26endif 27ifeq ($(CONFIG_SYSFS),y) 28obj-$(CONFIG_DEBUG_INFO_BTF) += sysfs_btf.o 29endif 30ifeq ($(CONFIG_BPF_JIT),y) 31obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o 32obj-${CONFIG_BPF_LSM} += bpf_lsm.o 33endif 34obj-$(CONFIG_BPF_PRELOAD) += preload/ 35