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