config BR2_PACKAGE_LTTNG_LIBUST
	bool "lttng-libust"
	select BR2_PACKAGE_LIBURCU
	select BR2_PACKAGE_UTIL_LINUX
	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
	depends on BR2_USE_WCHAR # util-linux
	# liburcu only works on some architectures and requires threads support"
	depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_powerpc || BR2_x86_64
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_58854 # liburcu/gcc-4.8.x bug
	depends on BR2_TOOLCHAIN_HAS_THREADS
	help
	  Userspace tracing library for the LTTng 2.x tracing
	  infrastructure. It allows userspace programs to create
	  custom trace events that are integrated with all other
	  events gathered by LTTng.

	  http://lttng.org

comment "lttng-libust needs a toolchain w/ wchar, threads"
	depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_powerpc || BR2_x86_64
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_58854 # liburcu/gcc-4.8.x bug

comment "lttng-libust needs a toolchain not affected by GCC bug 58854"
	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_58854
