config BR2_PACKAGE_RTL8723BS_MP_DRIVER
	bool "rtl8723bs_mp_driver"
	depends on BR2_LINUX_KERNEL
	select BR2_PACKAGE_WIRELESS_TOOLS
	help
	  Linux kernel module for the MP Test with rtl8723bs SDIO WiFi module.

	  Make sure your target kernel has the following config
	  options enabled:

	    * CONFIG_MODULES: loadable module support
	    * CONFIG_CFG80211: cfg80211 wireless interface support

comment "rtl8723bs MP driver needs a Linux kernel to be built"
	depends on !BR2_LINUX_KERNEL

comment "rtl8723bs_mp_driver conflicts with rtl8723bs"
	depends on BR2_PACKAGE_RTL8723BS

if BR2_PACKAGE_RTL8723BS_MP_DRIVER
choice
	prompt "RTL8723BS MP Driver Version"
	help
	  Select the specific RTL8723BS MP Driver version you want to use

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_LATEST_VERSION
	bool "v4.3.16_13854.20150410_BTCOEX20150119-5844"

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_VERSION
	bool "Custom version"
	help
	  This option allows to use a specific official versions

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT
	bool "Custom Git repository"

endchoice

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_VERSION_VALUE
	string "RTL8723BS MP Driver version"
	depends on BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_VERSION

if BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_REPO_URL
	string "URL of custom repository"
	default BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT_REPO_URL \
		if BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT_REPO_URL != ""  # legacy

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_REPO_VERSION
	string "Custom repository version"
	default BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT_VERSION \
		if BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT_VERSION != ""  # legacy
	help
	  Revision to use in the typical format used by Git
	  E.G. a sha id, a tag, branch, ..

endif
endif

config BR2_PACKAGE_RTL8723BS_MP_DRIVER_VERSION
	string
	default "v4.3.16_13854.20150410_BTCOEX20150119-5844" \
		if BR2_PACKAGE_RTL8723BS_MP_DRIVER_LATEST_VERSION
	default BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_VERSION_VALUE \
		if BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_VERSION
	default BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_REPO_VERSION \
		if BR2_PACKAGE_RTL8723BS_MP_DRIVER_CUSTOM_GIT
