config BR2_PACKAGE_RPI_USERLAND
	bool "rpi-userland"
	depends on BR2_arm || BR2_aarch64
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_STATIC_LIBS
	select BR2_PACKAGE_HAS_LIBEGL if BR2_arm
	select BR2_PACKAGE_HAS_LIBGLES if BR2_arm
	select BR2_PACKAGE_HAS_LIBOPENVG if BR2_arm
	select BR2_PACKAGE_HAS_LIBOPENMAX if BR2_arm
	help
	  Raspberry Pi Userland contains the necessary library to use
	  the VideoCore driver.

	  Includes source for the ARM side code to interface to: EGL,
	  mmal, GLESv2, vcos, openmaxil, vchiq_arm, bcm_host, WFC,
	  OpenVG.

	  https://github.com/raspberrypi/userland/

if BR2_PACKAGE_RPI_USERLAND && BR2_arm

config BR2_PACKAGE_PROVIDES_LIBEGL
	default "rpi-userland"

config BR2_PACKAGE_PROVIDES_LIBGLES
	default "rpi-userland"

config BR2_PACKAGE_PROVIDES_LIBOPENVG
	default "rpi-userland"

config BR2_PACKAGE_PROVIDES_LIBOPENMAX
	default "rpi-userland"

config BR2_PACKAGE_RPI_USERLAND_HELLO
	bool "hello_pi examples"
	help
	  Install the hello-pi examples to test the HW (GPU, camera...)

endif

comment "rpi-userland needs a toolchain w/ C++, threads, dynamic library"
	depends on BR2_arm || BR2_aarch64
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
		BR2_STATIC_LIBS
