config BR2_PACKAGE_RTL8723BS
	bool "rtl8723bs"
	depends on BR2_LINUX_KERNEL
	help
	  Linux kernel module for the 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 needs a Linux kernel to be built"
	depends on !BR2_LINUX_KERNEL

comment "rtl8723bs conflicts with rtl8723bs_mp_driver"
	depends on BR2_PACKAGE_RTL8723BS_MP_DRIVER

if BR2_PACKAGE_RTL8723BS
choice
	prompt "RTL8723BS Version"
	help
	  Select the specific RTL8723BS version you want to use

config BR2_PACKAGE_RTL8723BS_LATEST_VERSION
	bool "2015.04"

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

config BR2_PACKAGE_RTL8723BS_CUSTOM_GIT
	bool "Custom Git repository"

endchoice

config BR2_PACKAGE_RTL8723BS_CUSTOM_VERSION_VALUE
	string "RTL8723BS version"
	depends on BR2_PACKAGE_RTL8723BS_CUSTOM_VERSION

if BR2_PACKAGE_RTL8723BS_CUSTOM_GIT

config BR2_PACKAGE_RTL8723BS_CUSTOM_REPO_URL
	string "URL of custom repository"
	default BR2_PACKAGE_RTL8723BS_CUSTOM_GIT_REPO_URL \
		if BR2_PACKAGE_RTL8723BS_CUSTOM_GIT_REPO_URL != ""  # legacy

config BR2_PACKAGE_RTL8723BS_CUSTOM_REPO_VERSION
	string "Custom repository version"
	default BR2_PACKAGE_RTL8723BS_CUSTOM_GIT_VERSION \
		if BR2_PACKAGE_RTL8723BS_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_VERSION
	string
	default "2015.04"	if BR2_PACKAGE_RTL8723BS_LATEST_VERSION
	default BR2_PACKAGE_RTL8723BS_CUSTOM_VERSION_VALUE \
		if BR2_PACKAGE_RTL8723BS_CUSTOM_VERSION
	default BR2_PACKAGE_RTL8723BS_CUSTOM_REPO_VERSION \
		if BR2_PACKAGE_RTL8723BS_CUSTOM_GIT
