1config BR2_PACKAGE_LIBBPF_ARCH_SUPPORTS 2 bool 3 # see src/bpf.c 4 default y if BR2_arc 5 default y if BR2_aarch64 || BR2_aarch64_be 6 default y if BR2_i386 || BR2_x86_64 7 default y if BR2_sparc || BR2_sparc64 8 default y if BR2_s390x 9 10config BR2_PACKAGE_LIBBPF 11 bool "libbpf" 12 depends on BR2_PACKAGE_LIBBPF_ARCH_SUPPORTS 13 depends on BR2_USE_WCHAR # elfutils 14 depends on !BR2_STATIC_LIBS # elfutils 15 depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils 16 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 17 depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils 18 select BR2_PACKAGE_ELFUTILS 19 select BR2_PACKAGE_ZLIB 20 help 21 libbpf library. 22 A mirror of bpf-next linux tree bpf-next/tools/lib/bpf 23 directory plus its supporting header files. The version 24 of the package reflects the version of ABI. 25 26 https://github.com/libbpf/libbpf 27 28comment "libbpf needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads, headers >= 4.13" 29 depends on BR2_PACKAGE_LIBBPF_ARCH_SUPPORTS 30 depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \ 31 || !BR2_TOOLCHAIN_HAS_THREADS \ 32 || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 \ 33 || !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC) 34