Makefile 929 B

123456789101112131415161718192021222324252627282930
  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. obj-$(CONFIG_BPF_SYSCALL) += local_storage.o
  7. obj-$(CONFIG_BPF_SYSCALL) += disasm.o
  8. obj-$(CONFIG_BPF_SYSCALL) += btf.o
  9. ifeq ($(CONFIG_NET),y)
  10. obj-$(CONFIG_BPF_SYSCALL) += devmap.o
  11. obj-$(CONFIG_BPF_SYSCALL) += cpumap.o
  12. ifeq ($(CONFIG_XDP_SOCKETS),y)
  13. obj-$(CONFIG_BPF_SYSCALL) += xskmap.o
  14. endif
  15. obj-$(CONFIG_BPF_SYSCALL) += offload.o
  16. ifeq ($(CONFIG_STREAM_PARSER),y)
  17. ifeq ($(CONFIG_INET),y)
  18. obj-$(CONFIG_BPF_SYSCALL) += sockmap.o
  19. endif
  20. endif
  21. endif
  22. ifeq ($(CONFIG_PERF_EVENTS),y)
  23. obj-$(CONFIG_BPF_SYSCALL) += stackmap.o
  24. endif
  25. obj-$(CONFIG_CGROUP_BPF) += cgroup.o
  26. ifeq ($(CONFIG_INET),y)
  27. obj-$(CONFIG_BPF_SYSCALL) += reuseport_array.o
  28. endif