config BR2_PACKAGE_FRECON
	bool "frecon"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_PACKAGE_HAS_UDEV
	select BR2_PACKAGE_LIBDRM
	select BR2_PACKAGE_LIBPNG
	select BR2_PACKAGE_LIBTSM
	help
	  This is a terminal emulator that replaces the kernel Virtual
	  Terminal (VT) console.  It uses the Kernel Mode Setting (KMS)
	  support in the kernel.  It is similar to the kmscon project:
	    https://www.freedesktop.org/wiki/Software/kmscon

if BR2_PACKAGE_FRECON

config BR2_PACKAGE_FRECON_USE_GETTY
	bool "use getty"
	default n if BR2_TARGET_SERIAL_SHELL_SH

config BR2_PACKAGE_FRECON_VTS
	bool "enable vts"
	default y

config BR2_PACKAGE_FRECON_VT1
	bool "enable vt1"
	default y if !BR2_PACKAGE_WESTON && !BR2_PACKAGE_XORG7

config BR2_PACKAGE_FRECON_ROTATE
	int
	default 270 if BR2_PACKAGE_FRECON_ROTATE_270
	default 180 if BR2_PACKAGE_FRECON_ROTATE_180
	default 90 if BR2_PACKAGE_FRECON_ROTATE_90
	default 0

choice
	prompt "frecon rotate"
	default BR2_PACKAGE_FRECON_ROTATE_0

config BR2_PACKAGE_FRECON_ROTATE_0
	bool "0"

config BR2_PACKAGE_FRECON_ROTATE_90
	bool "90"

config BR2_PACKAGE_FRECON_ROTATE_180
	bool "180"

config BR2_PACKAGE_FRECON_ROTATE_270
	bool "270"

endchoice

config BR2_PACKAGE_FRECON_OUTPUT_CONFIG
	string "custom output configs"
	help
	  <monitor name>=<fit|strech>:<0|90|180|270>
	  For example:
	    DSI-1=fit:90,HDMI-A-2=strech:270

config BR2_PACKAGE_FRECON_SCALE
	int "frecon scale"
	range 1 100

config BR2_PACKAGE_FRECON_STATIC
	bool "Enable static"
	select BR2_PACKAGE_EUDEV_STATIC if BR2_PACKAGE_EUDEV
	select BR2_PACKAGE_LIBDRM_STATIC
	select BR2_PACKAGE_LIBPNG_STATIC
	select BR2_PACKAGE_LIBTSM_STATIC
	default y if BR2_STATIC_LIBS

endif
