config BR2_PACKAGE_RECOVERY
	bool "Rockchip recovery for linux"
	depends on BR2_TOOLCHAIN_HAS_THREADS # libpthread-stubs
	select BR2_PACKAGE_LIBDRM if !BR2_PACKAGE_RECOVERY_NO_UI
	select BR2_PACKAGE_LIBPNG if !BR2_PACKAGE_RECOVERY_NO_UI
	select BR2_PACKAGE_LIBPTHREAD_STUBS
	select BR2_PACKAGE_LIBZ
	select BR2_PACKAGE_E2FSPROGS if !BR2_PACKAGE_MTD
	select BR2_PACKAGE_E2FSPROGS_RESIZE2FS if !BR2_PACKAGE_MTD
	select BR2_PACKAGE_LIBCURL
	select BR2_PACKAGE_BZIP2
	help
	  Rockchip recovery for linux.

if BR2_PACKAGE_RECOVERY

config BR2_PACKAGE_RECOVERY_NO_UI
	bool "No UI for recovery"
	help
	  No UI for recovery

config BR2_PACKAGE_RECOVERY_BOOTCONTROL
	bool "Linux AB bool control"

choice
	default BR2_PACKAGE_RECOVERY_SUCCESSFUL_BOOT
	prompt "Linux A/B bringup features."
config BR2_PACKAGE_RECOVERY_SUCCESSFUL_BOOT
	bool "successful_boot"
config BR2_PACKAGE_RECOVERY_RETRY
	bool "retry time"
endchoice

choice
	default BR2_PACKAGE_RECOVERY_USE_RKUPDATE
	prompt "choice the update bin of recovery."

config BR2_PACKAGE_RECOVERY_USE_RKUPDATE
	bool "rkupdate"
	select BR2_PACKAGE_RECOVERY_RECOVERYBIN

config BR2_PACKAGE_RECOVERY_USE_UPDATEENGINE
	bool "updateEngine"
	select BR2_PACKAGE_RECOVERY_UPDATEENGINEBIN

endchoice

config BR2_PACKAGE_RECOVERY_RECOVERYBIN
	bool "recovery bin"

config BR2_PACKAGE_RECOVERY_UPDATEENGINEBIN
	bool "updateEngine bin"

config BR2_PACKAGE_RECOVERY_STATIC
	bool "Enable static"
	default y if BR2_STATIC_LIBS
	select BR2_PACKAGE_LIBCURL_STATIC
	select BR2_PACKAGE_LIBDRM_STATIC
	select BR2_PACKAGE_LIBPNG_STATIC

endif
