config BR2_PACKAGE_LXC
	bool "lxc"
	select BR2_PACKAGE_LIBCAP
	depends on BR2_INET_IPV6
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_LARGEFILE
	depends on BR2_USE_MMU # fork()
	depends on !BR2_avr32 # no timerfd
	# the toolchain doesn't support setns syscall
	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # libcap
	help
	  Linux Containers (LXC), provides the ability to group and isolate
	  of a set of processes in a jail by virtualizing and accounting the
	  kernel resources. It is similar to Linux-Vserver or Openvz.

	  https://linuxcontainers.org/

comment "lxc needs a toolchain w/ IPv6, threads, largefile, headers >= 3.0"
	depends on BR2_USE_MMU
	depends on !BR2_avr32 # no timerfd
	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
	depends on !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS \
		|| !BR2_LARGEFILE || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
