config BR2_PACKAGE_NETDATA
	bool "netdata"
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_MMU # fork()
	depends on !BR2_STATIC_LIBS # libuv
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libuv
	select BR2_PACKAGE_LIBUV
	select BR2_PACKAGE_UTIL_LINUX
	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
	select BR2_PACKAGE_ZLIB
	help
	  Netdata is distributed, real-time, performance and health
	  monitoring for systems and applications. It is a highly
	  optimized monitoring agent you install on all your systems and
	  containers.

	  https://github.com/netdata/netdata

if BR2_PACKAGE_NETDATA

config BR2_PACKAGE_NETDATA_PROMETHEUS
	bool "prometheus remote write backend"
	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # protobuf
	select BR2_PACKAGE_PROTOBUF
	select BR2_PACKAGE_SNAPPY
	help
	  Enable prometheus remote write backend

comment "prometheus remote write backend needs a toolchain w/ gcc >= 8"
	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS

endif

comment "netdata needs a toolchain w/ C++, NPTL, dynamic library, gcc >= 4.9"
	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
		|| !BR2_INSTALL_LIBSTDCPP \
		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
