###
### kernel/replace-kernel related symbols
###

config FREETZ_REPLACE_KERNEL_AVAILABLE
	bool
# Note: the conditions are grouped according to the system type
	depends on \
		! (FREETZ_TYPE_FON && FREETZ_TYPE_LANG_EN) && \
		\
		! (FREETZ_SYSTEM_TYPE_AR10 && (FREETZ_TYPE_FIRMWARE_06_5X || FREETZ_TYPE_FIRMWARE_06_8X)) && \
		\
		! (FREETZ_SYSTEM_TYPE_AR934x && (FREETZ_TYPE_FIRMWARE_06_5X || FREETZ_TYPE_FIRMWARE_06_8X)) && \
		\
		! (FREETZ_SYSTEM_TYPE_GRX5) && \
		\
		! (FREETZ_SYSTEM_TYPE_IKS_VX185) && \
		\
		! (FREETZ_SYSTEM_TYPE_IPQ40xx) && \
		\
		! (FREETZ_SYSTEM_TYPE_QCA955x) && \
		\
		! (FREETZ_SYSTEM_TYPE_QCA956x) && \
		\
		! FREETZ_TYPE_FIRMWARE_LABOR
	default y
	help
		Select this if source code exactly matching the firmware version used is available for your box.

config FREETZ_REPLACE_KERNEL_EXPERIMENTAL
	bool
	depends on \
		FREETZ_AVM_SOURCE_3390_06_51 || \
		FREETZ_AVM_SOURCE_3490_06_31 || \
		FREETZ_AVM_SOURCE_4020_06_50 || \
		FREETZ_AVM_SOURCE_4020_07_01 || \
		FREETZ_AVM_SOURCE_5491_07_01 || \
		FREETZ_AVM_SOURCE_5491_07_12 || \
		FREETZ_AVM_SOURCE_6490_06_87 || \
		FREETZ_AVM_SOURCE_6490_07_02 || \
		FREETZ_AVM_SOURCE_6490_07_10 || \
		FREETZ_AVM_SOURCE_6590_06_87 || \
		FREETZ_AVM_SOURCE_6590_07_02 || \
		FREETZ_AVM_SOURCE_6810_06_21 || \
		FREETZ_AVM_SOURCE_7270_06_05 || \
		FREETZ_AVM_SOURCE_7272_06_20 || \
		FREETZ_AVM_SOURCE_7320_06_30 || \
		FREETZ_AVM_SOURCE_7330_06_50 || \
		FREETZ_AVM_SOURCE_7340_06_06 || \
		FREETZ_AVM_SOURCE_7360_06_20 || \
		FREETZ_AVM_SOURCE_7390_06_30 || \
		FREETZ_AVM_SOURCE_7390_06_51 || \
		FREETZ_AVM_SOURCE_7390_06_80 || \
		FREETZ_AVM_SOURCE_7490_06_30 || \
		FREETZ_AVM_SOURCE_7490_06_51 || \
		FREETZ_AVM_SOURCE_7490_06_60 || \
		FREETZ_AVM_SOURCE_7490_06_83 || \
		FREETZ_AVM_SOURCE_7490_06_93 || \
		FREETZ_AVM_SOURCE_7490_07_01 || \
		FREETZ_AVM_SOURCE_7490_07_11 || \
		FREETZ_AVM_SOURCE_7580_06_53 || \
		FREETZ_AVM_SOURCE_7580_06_81 || \
		FREETZ_AVM_SOURCE_7583_07_10 || \
		FREETZ_AVM_SOURCE_7590_06_92 || \
		FREETZ_AVM_SOURCE_7590_07_01
	default y

# at the moment enabled for all configurations fulfilling the condition
# "kernel version used by Freetz" == "kernel version used by AVM"
config FREETZ_REPLACE_MODULE_AVAILABLE
	bool
	depends on !FREETZ_SYSTEM_TYPE_IPQ40xx # evaloader-related kernel build rules need to be adjusted
	depends on !FREETZ_SYSTEM_TYPE_QCA955x # no sources at all for this system type
#	depends on \
#		FREETZ_REPLACE_KERNEL_AVAILABLE || \
#		!FREETZ_AVM_VERSION_07_0X
	default y
	help
		Select this if only source code from a previous firmware version is available for your box.
		Note: Loading of the modules built by Freetz may work or may not!
