Makefile 748 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
A
Alexei Starovoitov 已提交
2
obj-y := core.o
3

4
obj-$(CONFIG_BPF_SYSCALL) += syscall.o verifier.o inode.o helpers.o tnum.o
5
obj-$(CONFIG_BPF_SYSCALL) += hashtab.o arraymap.o percpu_freelist.o bpf_lru_list.o lpm_trie.o map_in_map.o
6
obj-$(CONFIG_BPF_SYSCALL) += disasm.o
7
obj-$(CONFIG_BPF_SYSCALL) += btf.o
8
ifeq ($(CONFIG_NET),y)
9
obj-$(CONFIG_BPF_SYSCALL) += devmap.o
10
obj-$(CONFIG_BPF_SYSCALL) += cpumap.o
11 12 13
ifeq ($(CONFIG_XDP_SOCKETS),y)
obj-$(CONFIG_BPF_SYSCALL) += xskmap.o
endif
14
obj-$(CONFIG_BPF_SYSCALL) += offload.o
15
ifeq ($(CONFIG_STREAM_PARSER),y)
16
ifeq ($(CONFIG_INET),y)
17 18
obj-$(CONFIG_BPF_SYSCALL) += sockmap.o
endif
19
endif
20
endif
21 22 23
ifeq ($(CONFIG_PERF_EVENTS),y)
obj-$(CONFIG_BPF_SYSCALL) += stackmap.o
endif
24
obj-$(CONFIG_CGROUP_BPF) += cgroup.o