Makefile 552 B

1234567891011121314151617
  1. # SPDX-License-Identifier: GPL-2.0
  2. obj-y := core.o
  3. CFLAGS_core.o += $(call cc-disable-warning, override-init)
  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. ifeq ($(CONFIG_NET),y)
  7. obj-$(CONFIG_BPF_SYSCALL) += devmap.o
  8. ifeq ($(CONFIG_STREAM_PARSER),y)
  9. obj-$(CONFIG_BPF_SYSCALL) += sockmap.o
  10. endif
  11. endif
  12. ifeq ($(CONFIG_PERF_EVENTS),y)
  13. obj-$(CONFIG_BPF_SYSCALL) += stackmap.o
  14. endif
  15. obj-$(CONFIG_CGROUP_BPF) += cgroup.o