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 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 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 15ifeq ($(CONFIG_XDP_SOCKETS),y) 16obj-$(CONFIG_BPF_SYSCALL) += xskmap.o 17endif 18obj-$(CONFIG_BPF_SYSCALL) += offload.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 32endif 33