config BR2_PACKAGE_RDMA_CORE
	bool "rdma-core"
	depends on BR2_USE_MMU # fork() used in rstream example
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4  # iproute2
	depends on !BR2_STATIC_LIBS # dlopen()
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	select BR2_PACKAGE_IPROUTE2  # runtime
	select BR2_PACKAGE_LIBNL
	help
	  This is the userspace components for the Linux Kernel's
	  drivers/infiniband subsystem.

	  https://github.com/linux-rdma/rdma-core

comment "rdma-core needs a toolchain w/ headers >= 3.4, NPTL, dynamic library"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 \
		|| !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
