Config.in 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. config BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
  2. bool
  3. # see libbpf/src/bpf.c
  4. default y if BR2_arc
  5. default y if BR2_arm || BR2_armeb
  6. default y if BR2_aarch64 || BR2_aarch64_be
  7. default y if BR2_i386 || BR2_x86_64
  8. default y if BR2_riscv
  9. default y if BR2_sparc || BR2_sparc64
  10. default y if BR2_s390x
  11. config BR2_PACKAGE_BPFTOOL
  12. bool "bpftool"
  13. depends on BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
  14. depends on BR2_TOOLCHAIN_HAS_SYNC_4
  15. depends on !BR2_nios2 # binutils
  16. depends on BR2_USE_WCHAR # binutils, elfutils
  17. depends on !BR2_STATIC_LIBS # elfutils
  18. depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils
  19. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  20. select BR2_PACKAGE_BINUTILS
  21. select BR2_PACKAGE_ELFUTILS
  22. help
  23. bpftool is a tool for for inspection and simple manipulation
  24. of eBPF programs and maps.
  25. comment "bpftool needs a toolchain w/ wchar, dynamic library, threads, headers >= 4.12"
  26. depends on BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
  27. depends on BR2_TOOLCHAIN_HAS_SYNC_4
  28. depends on !BR2_nios2
  29. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
  30. || !BR2_TOOLCHAIN_HAS_THREADS \
  31. || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12