config FREETZ_PACKAGE_SUNDTEK
	bool "Sundtek DVB-C/T/T2 driver"
	depends on FREETZ_KERNEL_VERSION_2_6_19_MIN
	select FREETZ_LIB_libdl
	select FREETZ_LIB_libpthread
	select FREETZ_LIB_librt if FREETZ_TARGET_ARCH_MIPS && FREETZ_TARGET_ARCH_BE
	default n
	help
		Sundtek closed-source linux driver daemon & client.
		To use this driver you have to run:
		export LD_PRELOAD=/usr/lib/libsundtekmediaclient.so

choice
	depends on FREETZ_PACKAGE_SUNDTEK
	prompt "Version"
	default FREETZ_PACKAGE_SUNDTEK_VERSION_2017

	config FREETZ_PACKAGE_SUNDTEK_VERSION_2013
	bool "130210.134617"

	config FREETZ_PACKAGE_SUNDTEK_VERSION_2017
	bool "170310.204343"

	config FREETZ_PACKAGE_SUNDTEK_VERSION_LATEST
	bool "latest available"
endchoice

config FREETZ_PACKAGE_SUNDTEK_ARCH
	depends on FREETZ_PACKAGE_SUNDTEK
	string
	default "openwrtmipsr3"  if FREETZ_TARGET_ARCH_MIPS && FREETZ_TARGET_ARCH_BE &&  FREETZ_TARGET_UCLIBC_0_9_33
	default "openwrtmipsr2"  if FREETZ_TARGET_ARCH_MIPS && FREETZ_TARGET_ARCH_BE && !FREETZ_TARGET_UCLIBC_0_9_33
	default "mipselbcm"      if FREETZ_TARGET_ARCH_MIPS && FREETZ_TARGET_ARCH_LE

if FREETZ_PACKAGE_SUNDTEK
comment "Note: Try using older version if you experience any problems"
	depends on FREETZ_KERNEL_VERSION_2_6_19_MAX && !FREETZ_PACKAGE_SUNDTEK_VERSION_2013

comment "CAUTION: Use 'replace kernel' to avoid memory leaks!"
	depends on FREETZ_KERNEL_VERSION_2_6_19 && !FREETZ_REPLACE_KERNEL
endif
