1# INCLUDE_BEGIN Config.in
2mainmenu "Freetz Configuration"
3
4config FREETZ_HAVE_DOT_CONFIG
5	bool
6	default y
7
8comment "General --------------------------------"
9
10config FREETZ_AVM_VERSION_04_30
11	bool
12config FREETZ_AVM_VERSION_04_33
13	bool
14config FREETZ_AVM_VERSION_04_40
15	bool
16config FREETZ_AVM_VERSION_04_49
17	bool
18config FREETZ_AVM_VERSION_04_57
19	bool
20config FREETZ_AVM_VERSION_04_67
21	bool
22config FREETZ_AVM_VERSION_04_70
23	bool
24config FREETZ_AVM_VERSION_04_76
25	bool
26config FREETZ_AVM_VERSION_04_80
27	bool
28config FREETZ_AVM_VERSION_04_87
29	bool
30config FREETZ_AVM_VERSION_7270_04_86
31	bool
32config FREETZ_AVM_VERSION_7270_05_05
33	bool
34config FREETZ_AVM_VERSION_7320_04_86
35	bool
36config FREETZ_AVM_VERSION_7390_04_90
37	bool
38config FREETZ_AVM_VERSION_7390_05_05
39	bool
40config FREETZ_AVM_VERSION_r7203
41	bool
42
43choice
44	prompt "Hardware type"
45		default FREETZ_TYPE_FON_WLAN_7270_V2
46		help
47			Select your box type here.
48
49	config FREETZ_TYPE_300IP_AS_FON
50		select FREETZ_AVM_VERSION_04_49
51		bool "300IP as Fon"
52
53	config FREETZ_TYPE_2170
54		select FREETZ_AVM_VERSION_04_57
55		bool "2170"
56
57	config FREETZ_TYPE_FON
58		select FREETZ_AVM_VERSION_04_33 if FREETZ_TYPE_LANG_DE
59		select FREETZ_AVM_VERSION_04_49 if ! FREETZ_TYPE_LANG_DE
60		bool "Fon"
61
62	config FREETZ_TYPE_FON_5010
63		select FREETZ_AVM_VERSION_04_40
64		bool "Fon 5010"
65
66	config FREETZ_TYPE_FON_5050
67		select FREETZ_AVM_VERSION_04_30
68		bool "Fon 5050"
69
70	config FREETZ_TYPE_FON_5124
71		select FREETZ_AVM_VERSION_04_76
72		bool "Fon 5124"
73
74	config FREETZ_TYPE_FON_5140
75		select FREETZ_AVM_VERSION_04_67
76		bool "Fon 5140"
77
78	config FREETZ_TYPE_FON_WLAN
79		select FREETZ_AVM_VERSION_04_33 if FREETZ_TYPE_LANG_DE
80		select FREETZ_AVM_VERSION_04_49 if ! FREETZ_TYPE_LANG_DE
81		bool "Fon WLAN"
82
83	config FREETZ_TYPE_FON_WLAN_7050
84		select FREETZ_AVM_VERSION_04_33
85		bool "Fon WLAN 7050"
86
87	config FREETZ_TYPE_FON_WLAN_7112
88		select FREETZ_AVM_VERSION_04_87
89		bool "Fon WLAN 7112"
90
91	config FREETZ_TYPE_FON_WLAN_7113
92		select FREETZ_AVM_VERSION_04_80 if FREETZ_TYPE_LANG_EN
93		select FREETZ_AVM_VERSION_04_67 if FREETZ_TYPE_LANG_DE
94		bool "Fon WLAN 7113"
95
96	config FREETZ_TYPE_FON_WLAN_7140
97		select FREETZ_AVM_VERSION_04_33 if FREETZ_TYPE_LANG_DE
98		select FREETZ_AVM_VERSION_04_76 if FREETZ_TYPE_LANG_A_CH
99		select FREETZ_AVM_VERSION_04_67 if FREETZ_TYPE_LANG_EN
100		bool "Fon WLAN 7140"
101
102	config FREETZ_TYPE_FON_WLAN_7141
103		select FREETZ_AVM_VERSION_04_76
104		bool "Fon WLAN 7141"
105
106	config FREETZ_TYPE_FON_7150
107		select FREETZ_AVM_VERSION_04_70
108		bool "Fon 7150"
109
110	config FREETZ_TYPE_FON_WLAN_7170
111		select FREETZ_AVM_VERSION_04_76 if FREETZ_TYPE_LANG_A_CH
112		select FREETZ_AVM_VERSION_04_80 if FREETZ_TYPE_LANG_EN
113		select FREETZ_AVM_VERSION_04_87 if FREETZ_TYPE_LANG_DE
114		bool "Fon WLAN 7170"
115
116	config FREETZ_TYPE_FON_WLAN_7240
117		select FREETZ_AVM_VERSION_7270_05_05
118		bool "Fon WLAN 7240"
119
120	config FREETZ_TYPE_FON_WLAN_7270_V1
121		select FREETZ_TYPE_FON_WLAN_7270
122		bool "Fon WLAN 7270 v1"
123
124	config FREETZ_TYPE_FON_WLAN_7270_V2
125		select FREETZ_TYPE_FON_WLAN_7270
126		bool "Fon WLAN 7270 v2"
127
128	config FREETZ_TYPE_FON_WLAN_7270_V3
129		select FREETZ_TYPE_FON_WLAN_7270
130		bool "Fon WLAN 7270 v3"
131
132	config FREETZ_TYPE_FON_WLAN_7320
133		select FREETZ_AVM_VERSION_7320_04_86
134		bool "Fon WLAN 7320"
135
136	config FREETZ_TYPE_FON_WLAN_7330
137		select FREETZ_AVM_VERSION_7320_04_86
138		bool "Fon WLAN 7330"
139
140	config FREETZ_TYPE_FON_WLAN_7340
141		select FREETZ_AVM_VERSION_7390_05_05
142		bool "Fon WLAN 7340"
143
144	config FREETZ_TYPE_FON_WLAN_7390
145		select FREETZ_AVM_VERSION_7390_05_05
146		bool "Fon WLAN 7390"
147
148	config FREETZ_TYPE_FON_WLAN_7570
149		select FREETZ_AVM_VERSION_7270_04_86
150		bool "Fon WLAN 7570 VDSL"
151
152	config FREETZ_TYPE_FON_WLAN_7570_IAD
153		bool "build firmware for Alice IAD 7570"
154		depends on FREETZ_TYPE_FON_WLAN_7570
155	comment "Hint: Use replace kernel to get max filesystem size"
156		depends on FREETZ_TYPE_FON_WLAN_7570_IAD
157
158	config FREETZ_TYPE_WLAN_3020
159		select FREETZ_AVM_VERSION_04_33
160		bool "WLAN 3020"
161
162	config FREETZ_TYPE_WLAN_3030
163		select FREETZ_AVM_VERSION_04_33
164		bool "WLAN 3030"
165
166	config FREETZ_TYPE_WLAN_3130
167		select FREETZ_AVM_VERSION_04_33
168		bool "WLAN 3130"
169
170	config FREETZ_TYPE_WLAN_3131
171		select FREETZ_AVM_VERSION_04_57
172		bool "WLAN 3131"
173
174	config FREETZ_TYPE_WLAN_3170
175		select FREETZ_AVM_VERSION_04_57
176		bool "WLAN 3170"
177
178	config FREETZ_TYPE_WLAN_3270
179		select FREETZ_AVM_VERSION_7270_05_05
180		bool "WLAN 3270 (v1 and v2 only)"
181
182	config FREETZ_TYPE_WLAN_3270_V3
183		select FREETZ_AVM_VERSION_7270_05_05
184		bool "WLAN 3270 (v3 only)"
185
186	config FREETZ_TYPE_SPEEDPORT_W501V
187		select FREETZ_AVM_VERSION_r7203
188		bool "Speedport W501V"
189
190	config FREETZ_TYPE_CUSTOM
191		bool "Custom"
192		depends on FREETZ_SHOW_ADVANCED
193		select FREETZ_DL_OVERRIDE
194
195endchoice # "Hardware type" #
196
197config FREETZ_TYPE_FON_WLAN_7270
198	depends on \
199		FREETZ_TYPE_FON_WLAN_7270_V1 || \
200		FREETZ_TYPE_FON_WLAN_7270_V2 || \
201		FREETZ_TYPE_FON_WLAN_7270_V3
202	select FREETZ_AVM_VERSION_7270_04_86 if \
203		FREETZ_TYPE_FON_WLAN_7270_V1
204	select FREETZ_AVM_VERSION_7270_05_05 if \
205		(FREETZ_TYPE_FON_WLAN_7270_V2 || FREETZ_TYPE_FON_WLAN_7270_V3)
206	bool
207
208choice
209	prompt "Firmware language"
210		default FREETZ_TYPE_LANG_DE
211
212	config FREETZ_TYPE_LANG_DE
213		bool "de - deutsch"
214		depends on \
215			! FREETZ_TYPE_FON_5010 && \
216			! FREETZ_TYPE_FON_5124 && \
217			! FREETZ_TYPE_FON_WLAN_7340 && \
218			! FREETZ_TYPE_FON_WLAN_7570
219
220	config FREETZ_TYPE_LANG_A_CH
221		bool "a-ch - deutsch"
222		depends on \
223			FREETZ_TYPE_FON_5010 || \
224			FREETZ_TYPE_FON_WLAN_7140 || \
225			FREETZ_TYPE_FON_WLAN_7170 \
226
227	config FREETZ_TYPE_LANG_EN
228		bool "en - international"
229		depends on \
230			FREETZ_TYPE_FON || \
231			FREETZ_TYPE_300IP_AS_FON || \
232			FREETZ_TYPE_FON_5124 || \
233			FREETZ_TYPE_FON_WLAN || \
234			FREETZ_TYPE_FON_WLAN_7113 || \
235			FREETZ_TYPE_FON_WLAN_7140 || \
236			FREETZ_TYPE_FON_WLAN_7170 || \
237			FREETZ_TYPE_FON_WLAN_7270_V2 || \
238			FREETZ_TYPE_FON_WLAN_7270_V3 || \
239			FREETZ_TYPE_FON_WLAN_7340 || \
240			FREETZ_TYPE_FON_WLAN_7390 || \
241			FREETZ_TYPE_FON_WLAN_7570 \
242
243endchoice # "Firmware language" #
244
245config FREETZ_TYPE_LANGUAGE
246	string
247	default "de"		if FREETZ_TYPE_LANG_DE
248	default "a-ch"		if FREETZ_TYPE_LANG_A_CH
249	default "en"		if FREETZ_TYPE_LANG_EN
250
251config FREETZ_TYPE_LABOR
252	bool "Beta/Labor"
253	depends on \
254		FREETZ_TYPE_LANG_DE && \
255		( \
256			FREETZ_TYPE_FON_WLAN_7390 || \
257			FREETZ_TYPE_FON_WLAN_7270_V2 || \
258			FREETZ_TYPE_FON_WLAN_7270_V3 \
259		)
260	default n
261	help
262		Enable this to compile the mod based on an AVM "beta/labor" firmware.
263
264choice
265	prompt "Labor version"
266		depends on FREETZ_TYPE_LABOR
267		default FREETZ_TYPE_LABOR_PREVIEW
268
269#	config FREETZ_TYPE_LABOR_DSL
270#		bool "DSL"
271#		help
272#			FRITZ!Lab DSL: This release optimizes the DSL (Digital Subscriber
273#			Line) software and adds related graphs.
274
275	config FREETZ_TYPE_LABOR_PREVIEW
276		bool "Preview"
277		depends on \
278			FREETZ_TYPE_FON_WLAN_7390 || \
279			FREETZ_TYPE_FON_WLAN_7270_V2 || \
280			FREETZ_TYPE_FON_WLAN_7270_V3
281		help
282			Labor Preview
283
284endchoice # "Labor version" #
285
286config FREETZ_TYPE_ALIEN_HARDWARE
287	bool "Compile image for \"alien\" hardware"
288	depends on \
289		FREETZ_TYPE_FON_WLAN_7170 || \
290		FREETZ_TYPE_FON_WLAN_7270 || \
291		FREETZ_TYPE_FON_WLAN_7570
292	default n
293	help
294		Enable this to compile the mod image for another hardware type
295
296choice
297	prompt "Alien hardware type"
298	depends on FREETZ_TYPE_ALIEN_HARDWARE
299#	default FREETZ_TYPE_SINUS_W500V_7150 if FREETZ_TYPE_FON_7150
300	default FREETZ_TYPE_SPEEDPORT_W701V_7170 if FREETZ_TYPE_FON_WLAN_7170
301	default FREETZ_TYPE_7240_7270 if FREETZ_TYPE_FON_WLAN_7270_V2
302	default FREETZ_TYPE_72702_72701 if FREETZ_TYPE_FON_WLAN_7270_V1
303
304#	config FREETZ_TYPE_SINUS_W500V_7150
305#		bool "Sinus W500V"
306#		depends on FREETZ_TYPE_FON_7150
307#		select FREETZ_MODULE_jffs2
308#		help
309#			Enable this to compile a mod image for T-Com Sinus W500V based
310#			on a 7150 image.
311
312	config FREETZ_TYPE_SPEEDPORT_W701V_7170
313		bool "W701V"
314		depends on FREETZ_TYPE_FON_WLAN_7170 && FREETZ_TYPE_LANG_DE
315		select FREETZ_REMOVE_FTPD
316		select FREETZ_REMOVE_MEDIASRV
317		select FREETZ_REMOVE_PRINTSERV
318		select FREETZ_REMOVE_PRINTSERV_MODULE if ! FREETZ_MODULE_usblp
319		select FREETZ_REMOVE_SMBD
320		help
321			Enable this to compile a mod image for T-Com Speedport W701V based
322			on a 7170 image.
323
324	config FREETZ_TYPE_SPEEDPORT_W900V_7170
325		bool "W900V"
326		depends on FREETZ_TYPE_FON_WLAN_7170 && FREETZ_TYPE_LANG_DE
327		help
328			Enable this to compile a mod image for T-Com Speedport W900V based
329			on a 7170 image.
330
331	config FREETZ_TYPE_SPEEDPORT_W920V_7570
332		bool "W920V"
333		depends on FREETZ_TYPE_FON_WLAN_7570
334		help
335			Enable this to compile a mod image for T-Com Speedport W920V based
336			on a 7570 image.
337
338	config FREETZ_TYPE_3170_7170
339		bool "3170"
340		depends on FREETZ_TYPE_FON_WLAN_7170
341		select FREETZ_REMOVE_VOIPD
342		select FREETZ_REMOVE_VOIP_ISDN
343		select FREETZ_REMOVE_CAPIOVERTCP
344		help
345			Enable this to compile a mod image for FritzBox FON WLAN 3170 based
346			on a 7170 image.
347
348	config FREETZ_TYPE_7112_7170
349		bool "7112"
350		depends on FREETZ_TYPE_FON_WLAN_7170
351		select FREETZ_REMOVE_FTPD
352		select FREETZ_REMOVE_MEDIASRV
353		select FREETZ_REMOVE_PRINTSERV
354		select FREETZ_REMOVE_PRINTSERV_MODULE if ! FREETZ_MODULE_usblp
355		select FREETZ_REMOVE_SMBD
356		help
357			Enable this to compile a mod image for FritzBox Fon WLAN 7112 based
358			on a 7170 image.
359
360	config FREETZ_TYPE_7113_7170
361		bool "7113"
362		depends on FREETZ_TYPE_FON_WLAN_7170
363		select FREETZ_REMOVE_FTPD
364		select FREETZ_REMOVE_MEDIASRV
365		select FREETZ_REMOVE_PRINTSERV
366		select FREETZ_REMOVE_PRINTSERV_MODULE if ! FREETZ_MODULE_usblp
367		select FREETZ_REMOVE_SMBD
368		help
369			Enable this to compile a mod image for FritzBox Fon WLAN 7113 based
370			on a 7170 image.
371
372	config FREETZ_TYPE_7140_7170
373		bool "7140"
374		depends on FREETZ_TYPE_FON_WLAN_7170
375		help
376			Enable this to compile a mod image for FritzBox FON WLAN 7140 based
377			on a 7170 image.
378
379	config FREETZ_TYPE_7141_7170
380		bool "7141"
381		depends on FREETZ_TYPE_FON_WLAN_7170
382		help
383			Enable this to compile a mod image for FritzBox FON WLAN 7141 based
384			on a 7170 image.
385
386	config FREETZ_TYPE_7240_7270
387		bool "7240"
388		depends on FREETZ_TYPE_FON_WLAN_7270_V2 || FREETZ_TYPE_FON_WLAN_7270_V3
389		help
390			Enable this to compile a mod image for FritzBox FON WLAN 7240 based
391			on a 7270 image.
392
393	config FREETZ_TYPE_7270_7270
394		bool "7270 v1"
395		depends on FREETZ_TYPE_FON_WLAN_7270_V2 && FREETZ_REPLACE_KERNEL_AVAILABLE
396		select FREETZ_REPLACE_KERNEL
397#		select FREETZ_REMOVE_AVM_VPN
398#		select FREETZ_REMOVE_CAPIOVERTCP
399#		select FREETZ_REMOVE_NTFS
400#		select FREETZ_REMOVE_SMBD
401#		select FREETZ_REMOVE_UMTSD
402#		select FREETZ_REMOVE_VOIPD
403#		select FREETZ_REMOVE_VOIP_ISDN
404#		select FREETZ_REMOVE_WEBDAV
405		help
406			Enable this to compile a mod image for FritzBox FON WLAN 7270 v1 based
407			on a 7270 v2 image.
408
409			Caution: To fit into 8MB ROM some AVM components (e.g. telephony) have
410			to be removed. Please use usbroot for a full featured image.
411
412	config FREETZ_TYPE_72702_72701
413		bool "7270 v2"
414		depends on FREETZ_TYPE_FON_WLAN_7270_V1 && FREETZ_REPLACE_KERNEL_AVAILABLE
415		help
416			Enable this to compile a mod image for FritzBox FON WLAN 7270 v2 based
417			on a 7270 v1 image.
418
419	config FREETZ_TYPE_IAD_3331_7170
420		bool "Alice IAD 3331"
421		depends on FREETZ_TYPE_FON_WLAN_7170 && FREETZ_TYPE_LANG_DE
422		select FREETZ_REMOVE_PIGLET_V1 if FREETZ_SHOW_ADVANCED
423		select FREETZ_ENFORCE_URLADER_SETTINGS
424		help
425			Enable this to compile a mod image for Alice IAD 3331 based
426			on a 7170 image.
427			The firmware_version has to be enforced, because this variable is unset
428			in the 7170_HN bootloader.
429			Initial flashing might only be possible via ./tools/push_firmware
430
431endchoice # "Alien hardware type" #
432
433config FREETZ_AVM_VERSION_STRING
434	string
435	default "04.30"			if FREETZ_AVM_VERSION_04_30
436	default "04.33"			if FREETZ_AVM_VERSION_04_33
437	default "04.40"			if FREETZ_AVM_VERSION_04_40
438	default "04.49"			if FREETZ_AVM_VERSION_04_49
439	default "04.57"			if FREETZ_AVM_VERSION_04_57
440	default "04.67"			if FREETZ_AVM_VERSION_04_67
441	default "04.70"			if FREETZ_AVM_VERSION_04_70
442	default "04.76"			if FREETZ_AVM_VERSION_04_76
443	default "04.80"			if FREETZ_AVM_VERSION_04_80
444	default "04.87"			if FREETZ_AVM_VERSION_04_87
445	default "7270_04.86"		if FREETZ_AVM_VERSION_7270_04_86
446	default "7270_05.05"		if FREETZ_AVM_VERSION_7270_05_05
447	default "7320_04.86"		if FREETZ_AVM_VERSION_7320_04_86
448	default "7390_04.90"		if FREETZ_AVM_VERSION_7390_04_90
449	default "7390_05.05"		if FREETZ_AVM_VERSION_7390_05_05
450	default "r7203"			if FREETZ_AVM_VERSION_r7203
451
452
453choice
454	prompt "Annex"
455		depends on FREETZ_TYPE_LANG_EN && \
456			! FREETZ_TYPE_FON_WLAN_7113 && \
457			! FREETZ_TYPE_FON_WLAN_7270 && \
458			! FREETZ_TYPE_FON_WLAN_7340 && \
459			! FREETZ_TYPE_FON_WLAN_7390 && \
460			! FREETZ_TYPE_FON_WLAN_7570
461		default FREETZ_TYPE_ANNEX_B
462
463	config FREETZ_TYPE_ANNEX_A
464		bool "A"
465
466	config FREETZ_TYPE_ANNEX_B
467		bool "B"
468
469endchoice # prompt "Annex" #
470
471config FREETZ_TYPE_PREFIX
472	string
473	default "300ip_as_fon"					if FREETZ_TYPE_300IP_AS_FON
474	default "2170"						if FREETZ_TYPE_2170
475	default "3020"						if FREETZ_TYPE_WLAN_3020
476	default "3030"						if FREETZ_TYPE_WLAN_3030
477	default "3130"						if FREETZ_TYPE_WLAN_3130
478	default "3131"						if FREETZ_TYPE_WLAN_3131
479	default "3170"						if FREETZ_TYPE_WLAN_3170
480	default "3270"						if FREETZ_TYPE_WLAN_3270
481	default "3270_v3"					if FREETZ_TYPE_WLAN_3270_V3
482	default "fon"						if FREETZ_TYPE_FON
483	default "5010"						if FREETZ_TYPE_FON_5010
484	default "5050"						if FREETZ_TYPE_FON_5050
485	default "5124"						if FREETZ_TYPE_FON_5124
486	default "5140"						if FREETZ_TYPE_FON_5140
487	default "fon_wlan"					if FREETZ_TYPE_FON_WLAN
488	default "7050"						if FREETZ_TYPE_FON_WLAN_7050
489	default "7112"						if FREETZ_TYPE_FON_WLAN_7112
490	default "7113"						if FREETZ_TYPE_FON_WLAN_7113
491	default "7140"						if FREETZ_TYPE_FON_WLAN_7140
492	default "7141"						if FREETZ_TYPE_FON_WLAN_7141
493	default "7150"						if FREETZ_TYPE_FON_7150
494	default "7170"						if FREETZ_TYPE_FON_WLAN_7170
495	default "7240"						if FREETZ_TYPE_FON_WLAN_7240 && ! FREETZ_TYPE_LABOR
496#	default "7240_preview"					if FREETZ_TYPE_FON_WLAN_7240 && FREETZ_TYPE_LABOR_PREVIEW
497	default "7270_v1"					if FREETZ_TYPE_FON_WLAN_7270_V1 && ! FREETZ_TYPE_LABOR
498#	default "7270_v1_preview"				if FREETZ_TYPE_FON_WLAN_7270_V1 && FREETZ_TYPE_LABOR_PREVIEW
499	default "7270_v2"					if ( ( FREETZ_TYPE_FON_WLAN_7270_V2 && ! FREETZ_TYPE_ALIEN_HARDWARE ) || \
500									FREETZ_TYPE_7270_7270 ) && \
501									! FREETZ_TYPE_LABOR
502	default "7270_v2_preview"				if ( ( FREETZ_TYPE_FON_WLAN_7270_V2 && ! FREETZ_TYPE_ALIEN_HARDWARE ) || \
503									FREETZ_TYPE_7270_7270 ) && \
504									FREETZ_TYPE_LABOR_PREVIEW
505	default "7270_v3"					if ( ( FREETZ_TYPE_FON_WLAN_7270_V3 && ! FREETZ_TYPE_ALIEN_HARDWARE ) || \
506									FREETZ_TYPE_7240_7270 ) && \
507									! FREETZ_TYPE_LABOR
508	default "7270_v3_preview"				if ( ( FREETZ_TYPE_FON_WLAN_7270_V3 && ! FREETZ_TYPE_ALIEN_HARDWARE ) || \
509									FREETZ_TYPE_7240_7270 ) && \
510									FREETZ_TYPE_LABOR_PREVIEW
511	default "7320"						if FREETZ_TYPE_FON_WLAN_7320 && ! FREETZ_TYPE_LABOR
512	default "7330"						if FREETZ_TYPE_FON_WLAN_7330
513	default "7340"						if FREETZ_TYPE_FON_WLAN_7340
514	default "7390"						if FREETZ_TYPE_FON_WLAN_7390 && ! FREETZ_TYPE_LABOR
515	default "7390_preview"					if FREETZ_TYPE_FON_WLAN_7390 && FREETZ_TYPE_LABOR_PREVIEW
516	default "7570"						if FREETZ_TYPE_FON_WLAN_7570
517	default "W501V"						if FREETZ_TYPE_SPEEDPORT_W501V
518	default "custom"					if FREETZ_TYPE_CUSTOM
519
520config FREETZ_TYPE_PREFIX_ALIEN_HARDWARE
521	string
522	default "W500V_"					if FREETZ_TYPE_SINUS_W500V_7150
523	default "W701V_"					if FREETZ_TYPE_SPEEDPORT_W701V_7170
524	default "W900V_"					if FREETZ_TYPE_SPEEDPORT_W900V_7170
525	default "W920V_"					if FREETZ_TYPE_SPEEDPORT_W920V_7570
526	default "3170_"						if FREETZ_TYPE_3170_7170
527	default "7112_"						if FREETZ_TYPE_7112_7170
528	default "7113_"						if FREETZ_TYPE_7113_7170
529	default "7140_"						if FREETZ_TYPE_7140_7170
530	default "7141_"						if FREETZ_TYPE_7141_7170
531	default "7240_"						if FREETZ_TYPE_7240_7270
532
533comment "Custom options -------------------------"
534	depends on FREETZ_TYPE_CUSTOM
535
536config FREETZ_INSTALL_BASE
537	bool
538	select FREETZ_PACKAGE_MOD
539	select FREETZ_PACKAGE_HASERL
540	select FREETZ_LIB_ld_uClibc
541	select FREETZ_LIB_libcrypt
542	select FREETZ_LIB_libdl
543	select FREETZ_LIB_libgcc_s
544	select FREETZ_LIB_libm
545	select FREETZ_LIB_libnsl
546	select FREETZ_LIB_libpthread
547	select FREETZ_LIB_librt
548	select FREETZ_LIB_libuClibc
549	select FREETZ_LIB_libfreetz if FREETZ_HAS_USB_HOST
550	default y
551	help
552		This is mandatory
553
554config FREETZ_REPLACE_BUSYBOX
555	bool
556	select FREETZ_BUSYBOX_REALPATH
557	default y
558	help
559		This is mandatory
560
561config FREETZ_SHOW_ADVANCED
562	bool "Show advanced options"
563	default n
564	help
565		Show advanced Options for patching the firmware. This is only useful
566		for experienced users who really know what they are doing
567
568if FREETZ_SHOW_ADVANCED
569
570comment "Replace kernel (currently not available)"
571	depends on ! FREETZ_REPLACE_KERNEL_AVAILABLE
572
573config FREETZ_REPLACE_KERNEL_AVAILABLE
574	bool
575	depends on \
576		! (FREETZ_TYPE_FON && FREETZ_TYPE_LANG_EN) && \
577		! FREETZ_TYPE_LABOR
578	default y
579
580config FREETZ_REPLACE_KERNEL
581	bool "Replace kernel"
582	depends on FREETZ_REPLACE_KERNEL_AVAILABLE
583	select FREETZ_MODULE_fuse if ( \
584					FREETZ_AVM_VERSION_7270_04_86 || \
585					FREETZ_AVM_VERSION_7270_05_05 || \
586					FREETZ_AVM_VERSION_7320_04_86 || \
587					FREETZ_AVM_VERSION_7390_04_90 || \
588					FREETZ_AVM_VERSION_7390_05_05 \
589					)
590	select FREETZ_MODULE_jffs2 if FREETZ_AVM_VERSION_7320_04_86
591	select FREETZ_MODULE_msdos if FREETZ_AVM_VERSION_7270_05_05
592	select FREETZ_MODULE_usbcore if \
593		FREETZ_KERNEL_LAYOUT_UR8 && FREETZ_AVM_VERSION_7270_04_86
594	select FREETZ_MODULE_vfat if FREETZ_AVM_VERSION_7270_05_05
595	default n
596	help
597		Replace AVM kernel with self-built kernel.
598
599endif # FREETZ_SHOW_ADVANCED #
600
601comment "Hint: Select build toolchain if you want to enable IPv6 support"
602	depends on \
603		( \
604			FREETZ_HAS_AVM_IPV6 || \
605			(FREETZ_SHOW_ADVANCED && FREETZ_REPLACE_KERNEL_AVAILABLE) \
606		) && \
607		(FREETZ_TARGET_UCLIBC_VERSION_0_9_28 && FREETZ_DOWNLOAD_TOOLCHAIN)
608
609config FREETZ_TARGET_IPV6_SUPPORT
610	bool "Enable IPv6 support"
611	depends on \
612		( \
613			FREETZ_HAS_AVM_IPV6 || \
614			(FREETZ_SHOW_ADVANCED && FREETZ_REPLACE_KERNEL_AVAILABLE) \
615		) && \
616		! (FREETZ_TARGET_UCLIBC_VERSION_0_9_28 && FREETZ_DOWNLOAD_TOOLCHAIN)
617	select FREETZ_REPLACE_KERNEL if ! (FREETZ_HAS_AVM_IPV6)
618	select FREETZ_MODULE_ipv6    if ! (FREETZ_HAS_AVM_IPV6) && FREETZ_REPLACE_KERNEL
619	select FREETZ_BUSYBOX_IP
620	select FREETZ_BUSYBOX_FEATURE_IP_ADDRESS
621	select FREETZ_BUSYBOX_FEATURE_IP_LINK
622	select FREETZ_BUSYBOX_FEATURE_IP_ROUTE
623	select FREETZ_BUSYBOX_FEATURE_IP_TUNNEL
624	default n
625	help
626		Copies the ipv6 kernel module to the firmware and enables ipv6 support
627		in uClibc and busybox.
628		Shows additional options for busybox and iptables and other packages.
629		To use IPv6 with Fritz!Box, at least the kernel, ucLibc and busybox
630		have to be recompiled with IPv6 enabled.
631		The toolchain will automatically be rebuild to achieve this.
632		It is also recommended to include the package iptables/ip6tables for
633		firewall settings.
634
635config FREETZ_TARGET_REF_4MB
636	bool
637	default y			if \
638		FREETZ_TYPE_2170 || \
639		FREETZ_TYPE_300IP_AS_FON || \
640		FREETZ_TYPE_FON || \
641		FREETZ_TYPE_FON_5010 || \
642		FREETZ_TYPE_FON_5050 || \
643		FREETZ_TYPE_FON_5140 || \
644		FREETZ_TYPE_FON_WLAN || \
645		FREETZ_TYPE_FON_WLAN_7050 || \
646		FREETZ_TYPE_SPEEDPORT_W501V || \
647		FREETZ_TYPE_WLAN_3020 || \
648		FREETZ_TYPE_WLAN_3030 || \
649		FREETZ_TYPE_WLAN_3130 || \
650		FREETZ_TYPE_WLAN_3131 || \
651		FREETZ_TYPE_WLAN_3170
652
653config FREETZ_TARGET_REF_8MB
654	bool
655	default y			if \
656		FREETZ_TYPE_FON_5124 || \
657		FREETZ_TYPE_FON_WLAN_7112 || \
658		FREETZ_TYPE_FON_WLAN_7113 || \
659		FREETZ_TYPE_FON_WLAN_7141 || \
660		FREETZ_TYPE_FON_WLAN_7140 || \
661		FREETZ_TYPE_FON_7150 || \
662		FREETZ_TYPE_FON_WLAN_7170 || \
663		( FREETZ_TYPE_FON_WLAN_7270_V1 && ! FREETZ_TYPE_72702_72701 )
664
665config FREETZ_TARGET_REF_16MB
666	bool
667	default y			if \
668		FREETZ_TYPE_FON_WLAN_7240 || \
669		( FREETZ_TYPE_FON_WLAN_7270_V1 && FREETZ_TYPE_72702_72701 ) || \
670		FREETZ_TYPE_FON_WLAN_7270_V2 || \
671		FREETZ_TYPE_FON_WLAN_7270_V3 || \
672		FREETZ_TYPE_FON_WLAN_7320 || \
673		FREETZ_TYPE_FON_WLAN_7330 || \
674		FREETZ_TYPE_FON_WLAN_7340 || \
675		FREETZ_TYPE_FON_WLAN_7390 || \
676		FREETZ_TYPE_FON_WLAN_7570 || \
677		FREETZ_TYPE_WLAN_3270 || \
678		FREETZ_TYPE_WLAN_3270_V3
679
680config FREETZ_TARGET_REF
681	string "Target ref"		if FREETZ_TYPE_CUSTOM
682	default "4mb"			if FREETZ_TARGET_REF_4MB
683	default "8mb"			if FREETZ_TARGET_REF_8MB
684	default "16mb"			if FREETZ_TARGET_REF_16MB
685
686config FREETZ_KERNEL_REF_4MB
687	bool
688	default y			if \
689		FREETZ_TYPE_2170 || \
690		FREETZ_TYPE_300IP_AS_FON || \
691		FREETZ_TYPE_FON || \
692		FREETZ_TYPE_FON_5010 || \
693		FREETZ_TYPE_FON_5050 || \
694		FREETZ_TYPE_FON_5140 || \
695		FREETZ_TYPE_FON_WLAN || \
696		FREETZ_TYPE_FON_WLAN_7050 || \
697		FREETZ_TYPE_SPEEDPORT_W501V || \
698		FREETZ_TYPE_WLAN_3020 || \
699		FREETZ_TYPE_WLAN_3030 || \
700		FREETZ_TYPE_WLAN_3130 || \
701		FREETZ_TYPE_WLAN_3131 || \
702		FREETZ_TYPE_WLAN_3170
703
704config FREETZ_KERNEL_REF_8MB
705	bool
706	default y			if \
707		FREETZ_TYPE_FON_5124 || \
708		FREETZ_TYPE_FON_WLAN_7112 || \
709		FREETZ_TYPE_FON_WLAN_7113 || \
710		FREETZ_TYPE_FON_WLAN_7141 || \
711		FREETZ_TYPE_FON_WLAN_7140 || \
712		FREETZ_TYPE_FON_7150 || \
713		FREETZ_TYPE_FON_WLAN_7170 || \
714		(FREETZ_TYPE_FON_WLAN_7270_V1 && ! FREETZ_TYPE_72702_72701)
715
716config FREETZ_KERNEL_REF_16MB
717	bool
718	default y			if \
719		FREETZ_TYPE_FON_WLAN_7240 || \
720		(FREETZ_TYPE_FON_WLAN_7270_V1 && FREETZ_TYPE_72702_72701) || \
721		FREETZ_TYPE_FON_WLAN_7270_V2 || \
722		FREETZ_TYPE_FON_WLAN_7270_V3 || \
723		FREETZ_TYPE_FON_WLAN_7320 || \
724		FREETZ_TYPE_FON_WLAN_7330 || \
725		FREETZ_TYPE_FON_WLAN_7340 || \
726		FREETZ_TYPE_FON_WLAN_7390 || \
727		FREETZ_TYPE_FON_WLAN_7570 || \
728		FREETZ_TYPE_WLAN_3270 || \
729		FREETZ_TYPE_WLAN_3270_V3
730
731config FREETZ_KERNEL_REF
732	string "Kernel ref"		if FREETZ_TYPE_CUSTOM
733	default "4mb"			if FREETZ_KERNEL_REF_4MB
734	default "8mb"			if FREETZ_KERNEL_REF_8MB
735	default "16mb"			if FREETZ_KERNEL_REF_16MB
736
737config FREETZ_KERNEL_MTD_SIZE
738	int "Kernel (64K blocks)"	if FREETZ_TYPE_CUSTOM
739	default 119			if \
740		FREETZ_TYPE_FON_5124 || \
741		FREETZ_TYPE_FON_7150 || \
742		FREETZ_TYPE_FON_WLAN_7112 || \
743		FREETZ_TYPE_FON_WLAN_7113 || \
744		FREETZ_TYPE_FON_WLAN_7140 || \
745		FREETZ_TYPE_FON_WLAN_7141 || \
746		(FREETZ_TYPE_FON_WLAN_7170 && ! FREETZ_TYPE_3170_7170) || \
747		(FREETZ_TYPE_FON_WLAN_7270_V1 && ! FREETZ_TYPE_72702_72701) || \
748		FREETZ_TYPE_7270_7270
749	default 122			if \
750		FREETZ_TYPE_FON_WLAN_7570_IAD && ! FREETZ_REPLACE_KERNEL
751	default 238 			if \
752		FREETZ_TYPE_FON_WLAN_7340 || \
753		FREETZ_TYPE_FON_WLAN_7390
754	default 244			if \
755		FREETZ_TYPE_FON_WLAN_7570_IAD && FREETZ_REPLACE_KERNEL
756	default 246			if \
757		FREETZ_TYPE_FON_WLAN_7240 || \
758		(FREETZ_TYPE_FON_WLAN_7270_V1 && FREETZ_TYPE_72702_72701) || \
759		FREETZ_TYPE_FON_WLAN_7270_V2 || \
760		FREETZ_TYPE_FON_WLAN_7270_V3 || \
761		FREETZ_TYPE_FON_WLAN_7320 || \
762		FREETZ_TYPE_FON_WLAN_7330 || \
763		(FREETZ_TYPE_FON_WLAN_7570 && ! FREETZ_TYPE_FON_WLAN_7570_IAD) || \
764		FREETZ_TYPE_WLAN_3270 || \
765		FREETZ_TYPE_WLAN_3270_V3
766	default 59
767	help
768		Number of 64K blocks in the kernel mtd device.
769
770config FREETZ_HAS_AVM_AURA_USB
771	bool "Has remote USB connection (AURA = AVM USB Remote-Architcture)"	if FREETZ_TYPE_CUSTOM
772	select FREETZ_REMOVE_AURA_USB if ! FREETZ_HAS_USB_HOST
773	default y		if \
774		FREETZ_HAS_USB_HOST || \
775		FREETZ_TYPE_SPEEDPORT_W701V_7170 || \
776		FREETZ_TYPE_7112_7170 || \
777		FREETZ_TYPE_7113_7170
778	default n
779	help
780		Select this if your original firmware has an aura-usb-daemon (remote USB
781		connection, USB-Fernanschluss)
782
783config FREETZ_HAS_AVM_MINID
784	bool "Has mini-daemon (minid)"	if FREETZ_TYPE_CUSTOM
785	select FREETZ_REMOVE_MINID if \
786		FREETZ_TYPE_7113_7170 || \
787		FREETZ_TYPE_7112_7170 || \
788		FREETZ_TYPE_3170_7170 || \
789		FREETZ_TYPE_SPEEDPORT_W701V_7170
790	default y		if \
791		FREETZ_TYPE_FON_WLAN_7141 || \
792		FREETZ_TYPE_FON_WLAN_7170 || \
793		FREETZ_TYPE_FON_WLAN_7240 || \
794		FREETZ_TYPE_FON_WLAN_7270_V2 || \
795		FREETZ_TYPE_FON_WLAN_7270_V3 || \
796		FREETZ_TYPE_WLAN_3270 || \
797		FREETZ_TYPE_WLAN_3270_V3
798	default n
799	help
800		Select this if your original firmware has a mini-daemon (minid)
801
802config FREETZ_HAS_AVM_NTFS
803	bool "Has AVM NTFS"	if FREETZ_TYPE_CUSTOM
804	default y		if \
805		FREETZ_TYPE_FON_WLAN_7240 || \
806		FREETZ_TYPE_FON_WLAN_7270_V2 || \
807		FREETZ_TYPE_FON_WLAN_7270_V3 || \
808		FREETZ_TYPE_FON_WLAN_7320 || \
809		FREETZ_TYPE_FON_WLAN_7330 || \
810		FREETZ_TYPE_FON_WLAN_7390 || \
811		FREETZ_TYPE_FON_WLAN_7570 || \
812		FREETZ_TYPE_WLAN_3270 || \
813		FREETZ_TYPE_WLAN_3270_V3
814	default n
815	help
816		Select this if your original firmware has ntfs support.
817
818config FREETZ_HAS_AVM_IPV6
819	bool "Has AVM IPv6"	if FREETZ_TYPE_CUSTOM
820	select FREETZ_TARGET_IPV6_SUPPORT
821	default y		if \
822		FREETZ_TYPE_FON_WLAN_7240 || \
823		FREETZ_TYPE_FON_WLAN_7270_V2 || \
824		FREETZ_TYPE_FON_WLAN_7270_V3 || \
825		FREETZ_TYPE_FON_WLAN_7320 || \
826		FREETZ_TYPE_FON_WLAN_7330 || \
827		FREETZ_TYPE_FON_WLAN_7340 || \
828		FREETZ_TYPE_FON_WLAN_7390 || \
829		FREETZ_TYPE_FON_WLAN_7570 || \
830		FREETZ_TYPE_WLAN_3270 || \
831		FREETZ_TYPE_WLAN_3270_V3
832	default n
833	help
834		Select this if your original firmware has IPv6 support.
835
836config FREETZ_HAS_AVM_WEBDAV
837	bool "Has AVM WebDAV"	if FREETZ_TYPE_CUSTOM
838	default y		if \
839		FREETZ_TYPE_FON_WLAN_7240 || \
840		FREETZ_TYPE_FON_WLAN_7270 || \
841		FREETZ_TYPE_FON_WLAN_7320 || \
842		FREETZ_TYPE_FON_WLAN_7330 || \
843		FREETZ_TYPE_FON_WLAN_7390 || \
844		FREETZ_TYPE_FON_WLAN_7570 || \
845		FREETZ_TYPE_WLAN_3270 || \
846		FREETZ_TYPE_WLAN_3270_V3
847	default n
848	help
849		Select this if your original firmware has WebDAV support.
850
851config FREETZ_HAS_AVM_INETD
852	bool "Has AVM inetd"	if FREETZ_TYPE_CUSTOM
853	select FREETZ_PACKAGE_INETD
854	default y		if \
855		FREETZ_TYPE_WLAN_3270 || \
856		FREETZ_TYPE_WLAN_3270_V3 || \
857		FREETZ_TYPE_FON_WLAN_7170 || \
858		FREETZ_TYPE_FON_WLAN_7240 || \
859		FREETZ_TYPE_FON_WLAN_7270 || \
860		FREETZ_TYPE_FON_WLAN_7320 || \
861		FREETZ_TYPE_FON_WLAN_7330 || \
862		FREETZ_TYPE_FON_WLAN_7340 || \
863		FREETZ_TYPE_FON_WLAN_7390 || \
864		FREETZ_TYPE_FON_WLAN_7570
865	default n
866	help
867		Select this if your original firmware has inetd support.
868
869config FREETZ_HAS_AVM_EXT3
870	bool "Has AVM ext3 built into the kernel"	if FREETZ_TYPE_CUSTOM
871	default y		if \
872		FREETZ_TYPE_FON_WLAN_7320 || \
873		FREETZ_TYPE_FON_WLAN_7330 || \
874		FREETZ_TYPE_FON_WLAN_7270_V2 || \
875		FREETZ_TYPE_FON_WLAN_7270_V3 || \
876		FREETZ_TYPE_FON_WLAN_7390
877	default n
878	help
879		Select this if your original firmware has ext3 support into the kernel.
880
881config FREETZ_HAS_AVM_TR069
882	bool "Has AVM tr069"	if FREETZ_TYPE_CUSTOM
883	default y		if \
884		FREETZ_TYPE_300IP_AS_FON || \
885		FREETZ_TYPE_FON || \
886		FREETZ_TYPE_FON_5124 || \
887		FREETZ_TYPE_FON_WLAN || \
888		FREETZ_TYPE_FON_WLAN_7050 || \
889		FREETZ_TYPE_FON_WLAN_7113 || \
890		FREETZ_TYPE_FON_WLAN_7140 || \
891		FREETZ_TYPE_FON_WLAN_7141 || \
892		FREETZ_TYPE_FON_7150 || \
893		FREETZ_TYPE_FON_WLAN_7170 || \
894		FREETZ_TYPE_FON_WLAN_7240 || \
895		FREETZ_TYPE_FON_WLAN_7270 || \
896		FREETZ_TYPE_FON_WLAN_7320 || \
897		FREETZ_TYPE_FON_WLAN_7330 || \
898		FREETZ_TYPE_FON_WLAN_7340 || \
899		FREETZ_TYPE_FON_WLAN_7390 || \
900		FREETZ_TYPE_FON_WLAN_7570 || \
901		FREETZ_TYPE_WLAN_3020 || \
902		FREETZ_TYPE_WLAN_3270 || \
903		FREETZ_TYPE_WLAN_3270_V3
904	default n
905	help
906		Select this if your original firmware has tr069 support (libtr069, libtr064).
907
908config FREETZ_HAS_CHRONYD
909	bool "Has chronyd"	if FREETZ_TYPE_CUSTOM
910	default y		if \
911		FREETZ_TYPE_WLAN_3270 || \
912		FREETZ_TYPE_WLAN_3270_V3 || \
913		FREETZ_TYPE_FON_WLAN_7240 || \
914		FREETZ_TYPE_FON_WLAN_7270 || \
915		FREETZ_TYPE_FON_WLAN_7320 || \
916		FREETZ_TYPE_FON_WLAN_7330 || \
917		FREETZ_TYPE_FON_WLAN_7340 || \
918		FREETZ_TYPE_FON_WLAN_7390 || \
919		FREETZ_TYPE_FON_WLAN_7570
920	default n
921	help
922		Select this if you have a box with chronyd.
923
924config FREETZ_HAS_DECT
925	bool "Has DECT"	if FREETZ_TYPE_CUSTOM
926	default y		if \
927		FREETZ_TYPE_FON_7150 || \
928		FREETZ_TYPE_FON_WLAN_7240 || \
929		FREETZ_TYPE_FON_WLAN_7270 || \
930		FREETZ_TYPE_FON_WLAN_7320 || \
931		FREETZ_TYPE_FON_WLAN_7330 || \
932		FREETZ_TYPE_FON_WLAN_7340 || \
933		FREETZ_TYPE_FON_WLAN_7390 || \
934		FREETZ_TYPE_FON_WLAN_7570 || \
935		FREETZ_TYPE_SPEEDPORT_W900V_7170
936	default n
937	help
938		Select this if you have a box with DECT.
939
940config FREETZ_HAS_OPENSSL_LIBS
941	bool "Has libssl"	if FREETZ_TYPE_CUSTOM
942	default n		if \
943		FREETZ_TYPE_300IP_AS_FON || \
944		FREETZ_TYPE_FON_5010 || \
945		FREETZ_TYPE_FON_5050 || \
946		FREETZ_TYPE_FON_WLAN || \
947		FREETZ_TYPE_FON_WLAN_7050 || \
948		FREETZ_TYPE_FON_WLAN_7140 || \
949		FREETZ_TYPE_SPEEDPORT_W501V || \
950		FREETZ_TYPE_WLAN_3020 || \
951		FREETZ_TYPE_WLAN_3030
952	default y
953	help
954		Select this if you have a box with AVM libcrypto and libssl.
955
956config FREETZ_HAS_LSOF
957	bool "Has lsof"		if FREETZ_TYPE_CUSTOM
958	default y		if \
959		FREETZ_TYPE_FON_WLAN_7240 || \
960		FREETZ_TYPE_FON_WLAN_7270_V2 || \
961		FREETZ_TYPE_FON_WLAN_7270_V3 || \
962		FREETZ_TYPE_FON_WLAN_7320 || \
963		FREETZ_TYPE_FON_WLAN_7330 || \
964		FREETZ_TYPE_FON_WLAN_7340 || \
965		FREETZ_TYPE_FON_WLAN_7390 || \
966		FREETZ_TYPE_WLAN_3270 || \
967		FREETZ_TYPE_WLAN_3270_V3
968	default n
969	help
970		Select this if you have a box with lsof binary.
971
972config FREETZ_HAS_NAS
973	bool "Has NAS"		if FREETZ_TYPE_CUSTOM
974	select FREETZ_BUSYBOX_TAR_OLDGNU_COMPATIBILITY
975	default y		if \
976		( \
977			FREETZ_TYPE_FON_WLAN_7240 || \
978			FREETZ_TYPE_FON_WLAN_7270_V2 || \
979			FREETZ_TYPE_FON_WLAN_7270_V3 || \
980			FREETZ_TYPE_FON_WLAN_7320 || \
981			FREETZ_TYPE_FON_WLAN_7330 || \
982			FREETZ_TYPE_FON_WLAN_7340 || \
983			FREETZ_TYPE_FON_WLAN_7390 || \
984			FREETZ_TYPE_WLAN_3270 || \
985			FREETZ_TYPE_WLAN_3270_V3 \
986		)
987	default n
988	help
989		Select this if you have a box with NAS support.
990
991config FREETZ_HAS_PHONE
992	bool "Has Phone"	if FREETZ_TYPE_CUSTOM
993	default n		if \
994		FREETZ_TYPE_2170 || \
995		FREETZ_TYPE_WLAN_3020 || \
996		FREETZ_TYPE_WLAN_3030 || \
997		FREETZ_TYPE_WLAN_3130 || \
998		FREETZ_TYPE_WLAN_3131 || \
999		FREETZ_TYPE_WLAN_3170 || \
1000		FREETZ_TYPE_WLAN_3270 || \
1001		FREETZ_TYPE_WLAN_3270_V3
1002	default y
1003	help
1004		Select this if you have a box with phone support.
1005
1006config FREETZ_HAS_STRACE
1007	bool "Has strace"	if FREETZ_TYPE_CUSTOM
1008	default y		if \
1009		FREETZ_TYPE_FON_WLAN_7240 || \
1010		FREETZ_TYPE_FON_WLAN_7270_V2 || \
1011		FREETZ_TYPE_FON_WLAN_7270_V3 || \
1012		FREETZ_TYPE_FON_WLAN_7320 || \
1013		FREETZ_TYPE_FON_WLAN_7330 || \
1014		FREETZ_TYPE_FON_WLAN_7340 || \
1015		FREETZ_TYPE_FON_WLAN_7390 || \
1016		FREETZ_TYPE_WLAN_3270 || \
1017		FREETZ_TYPE_WLAN_3270_V3
1018	default n
1019	help
1020		Select this if you have a box with strace binary.
1021
1022config FREETZ_HAS_TAM
1023	bool "Has TAM"		if FREETZ_TYPE_CUSTOM
1024	default y		if \
1025		FREETZ_TYPE_FON_7150 || \
1026		FREETZ_TYPE_FON_WLAN_7141 || \
1027		FREETZ_TYPE_FON_WLAN_7170 || \
1028		FREETZ_TYPE_FON_WLAN_7240 || \
1029		FREETZ_TYPE_FON_WLAN_7270 || \
1030		FREETZ_TYPE_FON_WLAN_7320 || \
1031		FREETZ_TYPE_FON_WLAN_7330 || \
1032		FREETZ_TYPE_FON_WLAN_7340 || \
1033		FREETZ_TYPE_FON_WLAN_7390 || \
1034		FREETZ_TYPE_FON_WLAN_7570
1035	default n
1036	help
1037		Select this if you have a box with TAM (Telephone Answering Machine) support.
1038
1039config FREETZ_HAS_UDEV
1040	bool "udev"		if FREETZ_TYPE_CUSTOM
1041	default y		if \
1042		FREETZ_TYPE_FON_WLAN_7240 || \
1043		FREETZ_TYPE_FON_WLAN_7270_V2 || \
1044		FREETZ_TYPE_FON_WLAN_7270_V3 || \
1045		FREETZ_TYPE_FON_WLAN_7320 || \
1046		FREETZ_TYPE_FON_WLAN_7330 || \
1047		FREETZ_TYPE_FON_WLAN_7340 || \
1048		FREETZ_TYPE_FON_WLAN_7390 || \
1049		FREETZ_TYPE_WLAN_3270 || \
1050		FREETZ_TYPE_WLAN_3270_V3
1051	default n
1052	help
1053		Select this if you have a box with udev.
1054
1055config FREETZ_HAS_USB_CLIENT
1056	bool "USB client"		if FREETZ_TYPE_CUSTOM
1057	default y				if \
1058		FREETZ_TYPE_2170 || \
1059		FREETZ_TYPE_300IP_AS_FON || \
1060		FREETZ_TYPE_FON || \
1061		FREETZ_TYPE_FON_5050 || \
1062		FREETZ_TYPE_FON_WLAN || \
1063		FREETZ_TYPE_FON_WLAN_7050 || \
1064		FREETZ_TYPE_WLAN_3020 || \
1065		FREETZ_TYPE_WLAN_3030 || \
1066		FREETZ_TYPE_WLAN_3131 || \
1067		FREETZ_TYPE_WLAN_3170
1068	default n
1069	help
1070		Select this if you have a box with USB.
1071
1072config FREETZ_HAS_USB_HOST
1073	bool "USB host"		if FREETZ_TYPE_CUSTOM
1074	default n		if \
1075		FREETZ_TYPE_300IP_AS_FON || \
1076		FREETZ_TYPE_FON || \
1077		FREETZ_TYPE_FON_5010 || \
1078		FREETZ_TYPE_FON_5050 || \
1079		FREETZ_TYPE_FON_5140 || \
1080		FREETZ_TYPE_FON_WLAN || \
1081		FREETZ_TYPE_FON_WLAN_7050 || \
1082		FREETZ_TYPE_FON_WLAN_7112 || \
1083		FREETZ_TYPE_7112_7170 || \
1084		FREETZ_TYPE_FON_WLAN_7113 || \
1085		FREETZ_TYPE_7113_7170 || \
1086		FREETZ_TYPE_WLAN_3020 || \
1087		FREETZ_TYPE_WLAN_3030 || \
1088		FREETZ_TYPE_SINUS_W500V_7150 || \
1089		FREETZ_TYPE_SPEEDPORT_W501V || \
1090		FREETZ_TYPE_SPEEDPORT_W701V_7170
1091	default y
1092	help
1093		Select this if your USB port is a host adapter.
1094
1095config FREETZ_HAS_USB_HOST_AVM
1096	bool "AVM USB host"	if FREETZ_TYPE_CUSTOM
1097	depends on FREETZ_HAS_USB_HOST
1098	default y		if \
1099		FREETZ_TYPE_2170 || \
1100		FREETZ_TYPE_FON_5124 || \
1101		FREETZ_TYPE_FON_7150 || \
1102		FREETZ_TYPE_FON_WLAN_7141 || \
1103		FREETZ_TYPE_FON_WLAN_7170 || \
1104		FREETZ_TYPE_WLAN_3130 || \
1105		FREETZ_TYPE_WLAN_3131 || \
1106		FREETZ_TYPE_WLAN_3170
1107	default n
1108	help
1109		Select this if you have a box with AVM USB host.
1110
1111config FREETZ_HAS_AVM_E2FSPROGS
1112	bool "Has AVM e2fsprogs files"	if FREETZ_TYPE_CUSTOM
1113	default y		if\
1114		FREETZ_TYPE_FON_WLAN_7240 || \
1115		FREETZ_TYPE_FON_WLAN_7270_V2 || \
1116		FREETZ_TYPE_FON_WLAN_7270_V3 || \
1117		FREETZ_TYPE_FON_WLAN_7340 || \
1118		FREETZ_TYPE_FON_WLAN_7390 || \
1119		FREETZ_TYPE_WLAN_3270 || \
1120		FREETZ_TYPE_WLAN_3270_V3
1121	default n
1122	help
1123		Select this if you have a firmware with blkid, fsck and mkfs.
1124
1125config FREETZ_HAS_WLAN
1126	bool "Has WLAN"		if FREETZ_TYPE_CUSTOM
1127	default n		if \
1128		FREETZ_TYPE_2170 || \
1129		FREETZ_TYPE_300IP_AS_FON || \
1130		FREETZ_TYPE_FON || \
1131		FREETZ_TYPE_FON_5010 || \
1132		FREETZ_TYPE_FON_5050 || \
1133		FREETZ_TYPE_FON_5124 || \
1134		FREETZ_TYPE_FON_5140
1135	default y
1136	help
1137		Select this if you have a box with WLAN.
1138
1139comment "Mod ------------------------------------"
1140
1141choice
1142	prompt "Freetz Language"
1143	default FREETZ_LANG_DE		if FREETZ_TYPE_LANG_DE
1144	default FREETZ_LANG_DE		if FREETZ_TYPE_LANG_A_CH
1145	default FREETZ_LANG_EN		if FREETZ_TYPE_LANG_EN
1146
1147	config FREETZ_LANG_DE
1148		bool "de - deutsch"
1149
1150	config FREETZ_LANG_EN
1151		bool "en - english"
1152
1153endchoice # "Freetz Language" #
1154
1155config FREETZ_LANG_STRING
1156	string
1157	default "de"			if FREETZ_LANG_DE
1158	default "en"			if FREETZ_LANG_EN
1159
1160menu "Patches"
1161
1162# INCLUDE_BEGIN patches/Config.in
1163comment "Web menu patches -----------------------"
1164
1165config FREETZ_PATCH_VCC
1166	bool "Patch 2nd VCC"
1167	depends on FREETZ_HAS_PHONE && FREETZ_TYPE_LANG_DE
1168	default n
1169	help
1170		Patches the setting for 2nd VCC into web menu. It also adds two additional
1171		settings (PCR & SCR) not available in the original AVM firmware.
1172
1173		Please also note that it is not possible to change the value of traffic_class
1174		setting via the web-interface. You have to do it some other way (e.g. using
1175		FBEditor or nvi ar7.cfg).
1176
1177		Warning: Please read up on what each VCC setting means before setting/changing it.
1178		Besides not working wrong values may cause additional costs for you as your provider
1179		may treat it as simultaneous dial-in attempts (Doppeleinwahl).
1180
1181		The correct values for an 1&1-Komplettanschluss are:
1182		  VPI = 1;
1183		  VCI = 35;
1184		  traffic_class = atm_traffic_class_CBR;
1185		  pcr = 603;
1186		  scr = 0;
1187
1188config FREETZ_PATCH_ATA
1189	bool "Patch ATA"
1190	depends on \
1191		FREETZ_TYPE_SPEEDPORT_W501V
1192	default n
1193	help
1194		Patches the ATA mode configuration pages into the web menu.
1195
1196config FREETZ_PATCH_ENUM
1197	bool "Patch enum"
1198	depends on \
1199		FREETZ_TYPE_LANG_DE && \
1200		( \
1201		FREETZ_TYPE_FON || \
1202		FREETZ_TYPE_300IP_AS_FON || \
1203		FREETZ_TYPE_FON_5050 || \
1204		FREETZ_TYPE_FON_WLAN || \
1205		FREETZ_TYPE_FON_WLAN_7050 || \
1206		FREETZ_TYPE_FON_WLAN_7140 \
1207		)
1208	default n
1209	help
1210		Patches the enum configuration pages into the web menu.
1211
1212config FREETZ_PATCH_DSL_EXPERT
1213	bool
1214#	bool "Patch extended DSL settings"
1215	depends on \
1216		! FREETZ_TYPE_LABOR_DSL && \
1217		! FREETZ_REMOVE_DSLD && \
1218		FREETZ_TYPE_LANG_DE && \
1219		( \
1220		FREETZ_TYPE_FON_WLAN_7170 || \
1221		FREETZ_TYPE_FON_WLAN_7240 || \
1222		FREETZ_TYPE_FON_WLAN_7270 || \
1223		FREETZ_TYPE_FON_WLAN_7320 \
1224		)
1225	default n
1226	help
1227		Patches the extended dsl-settings from labor-dsl into all-in-one-firmwares.
1228
1229config FREETZ_ADD_REGEXT_GUI
1230	bool "Patch GUI to enable external SIP connections"
1231	depends on \
1232	FREETZ_TYPE_FON_WLAN_7570 || \
1233	( \
1234		FREETZ_TYPE_FON_WLAN_7170 || \
1235		FREETZ_TYPE_FON_WLAN_7240 || \
1236		FREETZ_TYPE_FON_WLAN_7270 || \
1237		FREETZ_TYPE_FON_WLAN_7390 \
1238	) && FREETZ_TYPE_LANG_DE
1239	default n
1240	help
1241		Patches the WebUI and add a checkbox to enable setting "reg_from_outside" in the voip.conf.
1242
1243#config FREETZ_PATCH_INTERNATIONAL
1244#	bool "Patch international"
1245#	depends on FREETZ_HAS_PHONE && FREETZ_TYPE_LANG_DE
1246#	default y
1247#	help
1248#		Reveals some options from the international firmware in the web menu.
1249
1250config FREETZ_PATCH_ALARMCLOCK
1251	bool "Patch third alarm-clock"
1252	depends on ( \
1253		FREETZ_TYPE_FON_WLAN_7150 || \
1254		FREETZ_TYPE_FON_WLAN_7112 || \
1255		FREETZ_TYPE_FON_WLAN_7141 || \
1256		(FREETZ_TYPE_FON_WLAN_7170 && FREETZ_TYPE_LANG_DE) || \
1257		FREETZ_TYPE_FON_WLAN_7270_V1 || \
1258		FREETZ_TYPE_FON_WLAN_7320 || \
1259		FREETZ_TYPE_FON_WLAN_7570 \
1260		)
1261	default n
1262	help
1263		Adds a third alarm-clock to AVM-Webinterface
1264
1265config FREETZ_PATCH_SIGNED
1266	bool "Patch web menu signed message"
1267	default n
1268	help
1269		Hides the "unsupported changes" message from the web interface.
1270
1271if FREETZ_HAS_USB_HOST
1272comment "USB storage patches --------------------"
1273
1274config FREETZ_PATCH_FREETZMOUNT
1275	bool "FREETZMOUNT: Patch AVMs hotplug scripts, USB storage names, ..."
1276	select FREETZ_USBSTORAGE_AUTOMOUNT
1277	select FREETZ_BUSYBOX_BLKID if FREETZ_REMOVE_AVM_E2FSPROGS || ! FREETZ_HAS_AVM_E2FSPROGS
1278	select FREETZ_BUSYBOX_BLKID_TYPE if FREETZ_REMOVE_AVM_E2FSPROGS || ! FREETZ_HAS_AVM_E2FSPROGS
1279	select FREETZ_BUSYBOX_VOLUMEID
1280	default y
1281	help
1282		1. Replaces and deselects usb-storage patch.
1283		   - The names of USB storage directories can be defined by WebIF (default uStorXY) (or by volume LABEL).
1284		2. Replaces and deselects autorun.sh/autoend.sh patch.
1285		   - autorun/autoend behaviour can be activated/deactivated via WebIF.
1286		   - autorun/autoend are useful to start/terminate applications located on USB devices, eg
1287		     apache, samba or even swapfiles, after connecting or before disconnecting of USB devices.
1288		3. Auto-mounted USB storage devices will be fully accessible, eg it is now possible to put
1289		   user home directories for (e.g. for FTP) on a FAT32-formatted partition and permit shell
1290		   and FTP users to actually write to their own home directories.
1291		4. Avoid deleting whole filesystems on USB devices.
1292		5. Enhanced behaviour during mounting and unmounting.
1293		6. Provides mount-by-label feature.
1294
1295		It is highly recommended to select this patch.
1296
1297config FREETZ_USBSTORAGE_AUTOMOUNT
1298	bool "Automount filesystems"
1299	depends on FREETZ_PATCH_FREETZMOUNT
1300	default y
1301	help
1302		The filesystems ext2, ext3, ext4, fat, hfs, hfs+, ntfs and reiserfs and swap are mounted
1303		automatically. Detection is done by blkid utility . It depends on the original firmware
1304		which of the following points you have to select.
1305
1306if FREETZ_USBSTORAGE_AUTOMOUNT
1307config FREETZ_AUTOMOUNT_EXT2
1308	bool "ext2"
1309	select FREETZ_BUSYBOX_VOLUMEID_EXT
1310	select FREETZ_MODULE_ext2
1311	default n
1312	help
1313		This adds ext2 module to your firmware.
1314
1315config FREETZ_AUTOMOUNT_EXT3
1316	bool "ext3"
1317	select FREETZ_BUSYBOX_VOLUMEID_EXT
1318	select FREETZ_MODULE_ext3 if ! FREETZ_HAS_AVM_EXT3
1319	default n
1320	help
1321		This adds ext3 module to your firmware.
1322
1323config FREETZ_AUTOMOUNT_EXT4
1324	bool "ext4"
1325	depends on FREETZ_KERNEL_VERSION_2_6_28 || \
1326		FREETZ_KERNEL_VERSION_2_6_32
1327	select FREETZ_BUSYBOX_VOLUMEID_EXT
1328	select FREETZ_MODULE_ext4
1329	default n
1330	help
1331		This adds ext4 module to your firmware.
1332
1333config FREETZ_AUTOMOUNT_FAT
1334	bool "fat"
1335	select FREETZ_BUSYBOX_VOLUMEID_FAT
1336	default n
1337	help
1338		This enables detection of fat partitions.
1339
1340config FREETZ_AUTOMOUNT_HFS
1341	bool "HFS"
1342	select FREETZ_BUSYBOX_VOLUMEID_HFS
1343	select FREETZ_MODULE_hfs
1344	default n
1345	help
1346		This adds hfs module to your firmware.
1347
1348config FREETZ_AUTOMOUNT_HFS_PLUS
1349	bool "HFS+"
1350	select FREETZ_BUSYBOX_VOLUMEID_HFS
1351	select FREETZ_MODULE_hfsplus
1352	default n
1353	help
1354		This adds hfs+ module to your firmware.
1355
1356config FREETZ_AUTOMOUNT_LUKS
1357	bool "luks"
1358	select FREETZ_BUSYBOX_VOLUMEID_LUKS
1359	default n
1360	help
1361		This enables detection (not mounting) of luks partitions.
1362
1363config FREETZ_AUTOMOUNT_NTFS
1364	bool "NTFS"
1365	select FREETZ_PACKAGE_NTFS if ! FREETZ_HAS_AVM_NTFS
1366	select FREETZ_BUSYBOX_VOLUMEID_NTFS
1367	default n
1368	help
1369		This adds ntfs-3g mount helper to your firmware.
1370
1371config FREETZ_AUTOMOUNT_REISER_FS
1372	bool "ReiserFS"
1373	select FREETZ_BUSYBOX_VOLUMEID_REISERFS
1374	select FREETZ_MODULE_reiserfs
1375	default n
1376	help
1377		This adds reiserfs module to your firmware.
1378
1379config FREETZ_AUTOMOUNT_LINUXSWAP
1380	bool "swap"
1381	select FREETZ_BUSYBOX_VOLUMEID_LINUXSWAP
1382	default n
1383	help
1384		This enables detection of linux-swap partitions.
1385
1386endif
1387
1388config FREETZ_PATCH_MAXDEVCOUNT
1389	bool "Raise the count of connectable usb device to 9"
1390	default n
1391	help
1392		Use this patch if you would connect more than 3 device to the box
1393
1394config FREETZ_PATCH_MULTIPLE_PRINTERS
1395	bool "Add support for multiple printers"
1396	depends on ! FREETZ_REMOVE_PRINTSERV && \
1397		( \
1398		( FREETZ_TYPE_FON_WLAN_7140 && ! FREETZ_TYPE_LANG_DE ) || \
1399		FREETZ_TYPE_FON_WLAN_7570 || \
1400		FREETZ_TYPE_FON_5124 || \
1401		FREETZ_TYPE_2170 || \
1402		FREETZ_TYPE_WLAN_3131 || \
1403		FREETZ_TYPE_WLAN_3170 || \
1404		FREETZ_TYPE_FON_WLAN_7141 || \
1405		FREETZ_TYPE_FON_7150 || \
1406		FREETZ_TYPE_FON_WLAN_7170 || \
1407		FREETZ_TYPE_FON_WLAN_7270_V1 || \
1408		FREETZ_TYPE_WLAN_3270 || \
1409		FREETZ_TYPE_WLAN_3270_V3 \
1410		)
1411		# no patch available atm: 7140_DE 2070 3070 3050 3130
1412	default n
1413	help
1414		Use this patch if you want to use more than one printer.
1415
1416endif
1417
1418comment "Removal patches ------------------------"
1419
1420config FREETZ_REMOVE_ANNEX_A_FIRMWARE
1421	bool "Remove Annex A firmware file"
1422	depends on \
1423		FREETZ_TYPE_FON_WLAN_7270_V2 || \
1424		FREETZ_TYPE_FON_WLAN_7270_V3 || \
1425		FREETZ_TYPE_FON_WLAN_7320
1426	default n
1427	help
1428		Remove lib/modules/dsp_ur8/ur8-A-dsl.bin. This saves about 400 KB of
1429		uncompressed data size.
1430
1431config FREETZ_REMOVE_ANNEX_B_FIRMWARE
1432	bool "Remove Annex B firmware file"
1433	depends on \
1434		FREETZ_TYPE_FON_WLAN_7240 || \
1435		FREETZ_TYPE_FON_WLAN_7270 || \
1436		FREETZ_TYPE_FON_WLAN_7320
1437	default n
1438	help
1439		Remove lib/modules/dsp_ur8/ur8-B-dsl.bin. This saves about 400 KB of
1440		uncompressed data size.
1441
1442menu "Remove v1/v2 piglet file(s)"
1443	depends on FREETZ_SHOW_ADVANCED && \
1444		( \
1445			(FREETZ_TYPE_FON_WLAN_7170 && ! FREETZ_TYPE_ALIEN_HARDWARE) || \
1446			FREETZ_TYPE_SPEEDPORT_W701V_7170 || \
1447			FREETZ_TYPE_SPEEDPORT_W900V_7170 || \
1448			FREETZ_TYPE_IAD_3331_7170 \
1449		)
1450
1451	config FREETZ_REMOVE_PIGLET_V1
1452	bool "Remove v1 piglet file(s)"
1453	help
1454		The firmware of this model contains double piglet files. Which instance is needed depends
1455		on the hardware version (v1 or v2) of your box. You can safely remove the
1456		unneeded instance.
1457
1458		Hint: If "echo $HWRevision_BitFileCount" returns "1" you could select this patch.
1459
1460
1461	config FREETZ_REMOVE_PIGLET_V2
1462	bool "Remove v2 piglet file(s)"
1463	help
1464		The firmware of this model contains double piglet files. Which instance is needed depends
1465		on the hardware version (v1 or v2) of your box. You can safely remove the
1466		unneeded instance.
1467
1468		Hint: If "echo $HWRevision_BitFileCount" returns "" (nothing) you could select this patch.
1469
1470endmenu
1471
1472comment "WARNING: Both (v1 and v2) piglet files are selected for removal."
1473	depends on \
1474		FREETZ_REMOVE_PIGLET_V1 && \
1475		FREETZ_REMOVE_PIGLET_V2
1476
1477menu "Remove ISDN/POTS piglet file(s) (EXPERIMENTAL)"
1478	depends on FREETZ_SHOW_ADVANCED && \
1479		( \
1480			FREETZ_TYPE_FON_5113 || \
1481			FREETZ_TYPE_FON_WLAN_7113 || \
1482			FREETZ_TYPE_FON_WLAN_7240 || \
1483			FREETZ_TYPE_FON_WLAN_7340 || \
1484			FREETZ_TYPE_5113_7170 || \
1485			FREETZ_TYPE_7113_7170 \
1486		)
1487
1488	config FREETZ_REMOVE_PIGLET_ISDN
1489	bool "Remove ISDN piglet file(s) (EXPERIMENTAL)"
1490	help
1491		The firmware of this model contains separate piglet files for ISDN and POTS. Depending
1492		on your type of fixed line usage you can safely remove the unneeded bitfile(s).
1493
1494		Hint: If you are using POTS fixed line you could select this patch.
1495
1496
1497	config FREETZ_REMOVE_PIGLET_POTS
1498	bool "Remove POTS piglet file(s) (EXPERIMENTAL)"
1499	help
1500		The firmware of this model contains separate piglet files for ISDN and POTS. Depending
1501		on your type of fixed line usage you can safely remove the unneeded bitfile(s).
1502
1503		Hint: If you are using ISDN fixed line you could select this patch.
1504
1505endmenu
1506
1507comment "WARNING: Both (ISDN and POTS) piglet files are selected for removal."
1508	depends on \
1509		FREETZ_REMOVE_PIGLET_ISDN && \
1510		FREETZ_REMOVE_PIGLET_POTS
1511
1512config FREETZ_REMOVE_ASSISTANT
1513	bool "Remove assistant"
1514	default n
1515	depends on \
1516	! ( \
1517		( \
1518		FREETZ_TYPE_FON_5124 || \
1519		FREETZ_TYPE_FON_WLAN_7140 || \
1520		FREETZ_TYPE_FON_WLAN_7170 \
1521		) \
1522		&& FREETZ_TYPE_LANG_EN \
1523	)
1524	help
1525		Removes the installation assistant from the web menu.
1526
1527config FREETZ_REMOVE_AURA_USB
1528	bool "Remove remote USB connection (AURA = AVM USB Remote-Architcture)" if FREETZ_SHOW_ADVANCED
1529	default n
1530	depends on FREETZ_HAS_AVM_AURA_USB
1531	help
1532		Remove the aura-usb-daemon (remote USB connection, USB-Fernanschluss) and some
1533		related files.
1534
1535		This patch only removes the files, not the settings in AVM's web interface.
1536
1537config FREETZ_REMOVE_USB_MODULE
1538	bool "Remove avalanche_usb.ko" if FREETZ_SHOW_ADVANCED
1539	depends on FREETZ_HAS_USB_CLIENT
1540	default n
1541	help
1542		Removes avalanche_usb.ko to save 60kB uncompressed space.
1543
1544config FREETZ_REMOVE_NAS
1545	bool "Remove AVM NAS Webinterface"
1546	default n
1547	depends on FREETZ_HAS_NAS && FREETZ_TYPE_LANG_DE
1548	help
1549		Removes the AVM NAS Webinterface and internal memory file (saves about 390 KB in compressed image).
1550
1551config FREETZ_REMOVE_AVM_VPN
1552	bool "Remove AVM vpn" if FREETZ_SHOW_ADVANCED
1553	default n
1554	depends on \
1555		FREETZ_TYPE_2170 || \
1556		FREETZ_TYPE_FON_7150 || \
1557		(FREETZ_TYPE_FON_WLAN_7170 && FREETZ_TYPE_LANG_DE) || \
1558		FREETZ_TYPE_FON_WLAN_7240 || \
1559		FREETZ_TYPE_FON_WLAN_7270 || \
1560		FREETZ_TYPE_FON_WLAN_7320 || \
1561		FREETZ_TYPE_FON_WLAN_7330 || \
1562		FREETZ_TYPE_FON_WLAN_7340 || \
1563		FREETZ_TYPE_FON_WLAN_7390 || \
1564		FREETZ_TYPE_FON_WLAN_7570 || \
1565		FREETZ_TYPE_WLAN_3170 || \
1566		FREETZ_TYPE_WLAN_3270 || \
1567		FREETZ_TYPE_WLAN_3270_V3
1568
1569	help
1570		Remove AVM's vpn and some other related files
1571		This patch removes the files and related Web UI entrys, but not the
1572		vpn settings. This will save about 120kB compressed size.
1573
1574config FREETZ_REMOVE_WEBSRV
1575	bool "Remove AVM web server (replaced by httpd)"
1576	depends on \
1577		! FREETZ_TYPE_2170 \
1578		&& ! FREETZ_TYPE_FON_5124 \
1579		&& ! FREETZ_TYPE_FON_5140 \
1580		&& ! FREETZ_TYPE_FON_WLAN_7112 \
1581		&& ! ( FREETZ_TYPE_FON_WLAN_7140 && FREETZ_TYPE_LANG_EN ) \
1582		&& ! ( FREETZ_TYPE_FON_WLAN_7140 && FREETZ_TYPE_LANG_A_CH ) \
1583		&& ! ( FREETZ_TYPE_FON && FREETZ_TYPE_LANG_EN ) \
1584		&& ! ( FREETZ_TYPE_300IP_AS_FON && FREETZ_TYPE_LANG_EN ) \
1585		&& ! ( FREETZ_TYPE_FON_WLAN && FREETZ_TYPE_LANG_EN ) \
1586		&& ! FREETZ_TYPE_FON_WLAN_7141 \
1587		&& ! FREETZ_TYPE_FON_WLAN_7170 \
1588		&& ! FREETZ_TYPE_FON_WLAN_7240 \
1589		&& ! FREETZ_TYPE_FON_WLAN_7270 \
1590		&& ! FREETZ_TYPE_FON_WLAN_7320 \
1591		&& ! FREETZ_TYPE_FON_WLAN_7340 \
1592		&& ! FREETZ_TYPE_FON_WLAN_7390 \
1593		&& ! FREETZ_TYPE_FON_WLAN_7570 \
1594		&& ! FREETZ_TYPE_WLAN_3131 \
1595		&& ! FREETZ_TYPE_WLAN_3170 \
1596		&& ! FREETZ_TYPE_WLAN_3270 \
1597		&& ! FREETZ_TYPE_WLAN_3270_V3
1598
1599	default n
1600	help
1601		Patch init scripts so BusyBox's httpd is used instead of AVM's websrv.
1602		The websrv binary will be removed from the firmware image.
1603
1604		If "Remove UPnP daemon (igdd/upnpd)" patch is also selected and "Integrate
1605		Media Server from USB Labor firmware" is not selected, 'libwebsrv.so'
1606		will also be removed, because only those three binaries use it.
1607
1608comment "No brandings available to remove"
1609	depends on \
1610		FREETZ_TYPE_SPEEDPORT_W501V
1611
1612menu "Remove brandings"
1613	depends on \
1614		! FREETZ_TYPE_SPEEDPORT_W501V
1615
1616comment "avm and tcom branding can't be removed"
1617	depends on \
1618		FREETZ_TYPE_ALIEN_HARDWARE
1619
1620config FREETZ_REMOVE_BRANDING_1und1
1621	bool "1&1"
1622	depends on \
1623		FREETZ_TYPE_LANG_DE && \
1624		( \
1625		FREETZ_TYPE_FON || \
1626		FREETZ_TYPE_FON_5050 || \
1627		FREETZ_TYPE_FON_5140 || \
1628		FREETZ_TYPE_FON_WLAN || \
1629		FREETZ_TYPE_FON_WLAN_7050 || \
1630		FREETZ_TYPE_FON_WLAN_7112 || \
1631		FREETZ_TYPE_FON_WLAN_7113 || \
1632		FREETZ_TYPE_FON_WLAN_7141 || \
1633		FREETZ_TYPE_FON_WLAN_7170 || \
1634		FREETZ_TYPE_FON_WLAN_7240 || \
1635		FREETZ_TYPE_FON_WLAN_7270 || \
1636		FREETZ_TYPE_FON_WLAN_7320 || \
1637		FREETZ_TYPE_FON_WLAN_7330 || \
1638		FREETZ_TYPE_FON_WLAN_7340 || \
1639		FREETZ_TYPE_FON_WLAN_7390 || \
1640		FREETZ_TYPE_WLAN_3020 || \
1641		FREETZ_TYPE_WLAN_3030 || \
1642		FREETZ_TYPE_WLAN_3130 || \
1643		FREETZ_TYPE_CUSTOM \
1644		)
1645	default n
1646	help
1647		1&1 branding
1648
1649		Each branding provides the web UI templates for a certain manufacturer or OEM.
1650
1651		NOTE: Make sure not to remove the branding corresponding to the one defined
1652		in your box's boot loader environment. It can be determined by calling the
1653		following command from the box's shell prompt:
1654
1655		echo $(cat /proc/sys/urlader/firmware_version)
1656
1657config FREETZ_REMOVE_BRANDING_avm
1658	bool "AVM"
1659	depends on \
1660		( \
1661		FREETZ_TYPE_LANG_A_CH || \
1662		FREETZ_TYPE_LANG_DE || \
1663		FREETZ_TYPE_CUSTOM \
1664		) \
1665		&& ! FREETZ_TYPE_ALIEN_HARDWARE
1666	default n
1667	help
1668		AVM branding
1669
1670		Each branding provides the web UI templates for a certain manufacturer or OEM.
1671
1672		NOTE: Make sure not to remove the branding corresponding to the one defined
1673		in your box's boot loader environment. It can be determined by calling the
1674		following command from the box's shell prompt:
1675
1676		echo $(cat /proc/sys/urlader/firmware_version)
1677
1678config FREETZ_REMOVE_BRANDING_avme
1679	bool "AVM international"
1680	depends on \
1681		( \
1682		FREETZ_TYPE_LANG_EN || \
1683		FREETZ_TYPE_CUSTOM \
1684		)
1685	default n
1686	help
1687		AVM international branding
1688
1689		Each branding provides the web UI templates for a certain manufacturer or OEM.
1690
1691		NOTE: Make sure not to remove the branding corresponding to the one defined
1692		in your box's boot loader environment. It can be determined by calling the
1693		following command from the box's shell prompt:
1694
1695		echo $(cat /proc/sys/urlader/firmware_version)
1696
1697config FREETZ_DL_KERNEL_SITE
1698	string "Kernel site"						if	FREETZ_DL_OVERRIDE
1699	default "ftp.avm.de/develper/opensrc"				if	FREETZ_AVM_VERSION_04_30 || \
1700										FREETZ_AVM_VERSION_04_33 || \
1701										FREETZ_AVM_VERSION_04_40 || \
1702										FREETZ_AVM_VERSION_04_49 || \
1703										FREETZ_AVM_VERSION_04_57 || \
1704										FREETZ_AVM_VERSION_04_67 || \
1705										FREETZ_AVM_VERSION_04_70
1706	default "@AVM/fritzbox.fon_wlan_7170/x_misc/opensrc"		if	FREETZ_AVM_VERSION_04_76
1707	default "@AVM/fritzbox.fon_wlan_7170/x_misc/opensrc"		if	FREETZ_AVM_VERSION_04_80
1708	default "@AVM/fritzbox.fon_wlan_7170/x_misc/opensrc"		if	FREETZ_AVM_VERSION_04_87
1709	default "@AVM/fritzbox.fon_wlan_7270_v1/x_misc/opensrc"		if	FREETZ_AVM_VERSION_7270_04_86
1710	default "@AVM/fritzbox.fon_wlan_7270_v3/x_misc/opensrc"		if	FREETZ_AVM_VERSION_7270_05_05
1711	default "@AVM/fritzbox.fon_wlan_7320/x_misc/opensrc"		if	FREETZ_AVM_VERSION_7320_04_86
1712	default "http://gpl.back2roots.org/source/fritzbox"		if	FREETZ_AVM_VERSION_7390_04_90
1713	default "@AVM/fritzbox.fon_wlan_7390/x_misc/opensrc"		if	FREETZ_AVM_VERSION_7390_05_05
1714	default "@TELEKOM/Speedport/Speedport_W501V"			if	FREETZ_AVM_VERSION_r7203
1715
1716config FREETZ_DL_KERNEL_SOURCE
1717	string "Kernel source"					if	FREETZ_DL_OVERRIDE
1718	default "fritzbox7141-source-files-04.30.tar.bz2"	if	FREETZ_AVM_VERSION_04_30
1719	default "fritzbox-source-files-04.33.tar.bz2"		if	FREETZ_AVM_VERSION_04_33
1720	default "fritzbox-source-files.04.40.tar.bz2"		if	FREETZ_AVM_VERSION_04_40
1721	default "fritzbox-source-files-04.49.tar.gz"		if	FREETZ_AVM_VERSION_04_49
1722	default "fritzbox-source-files.04.57.tar.gz"		if	FREETZ_AVM_VERSION_04_57
1723	default "fritzbox-source-files.04.67.tar.gz"		if	FREETZ_AVM_VERSION_04_67
1724	default "fritzbox-source-files-04.70.tar.gz"		if	FREETZ_AVM_VERSION_04_70
1725	default "fritzbox7170-source-files-04.76.tar.gz"	if	FREETZ_AVM_VERSION_04_76
1726	default "fritzbox7170-source-files-04.80.tar.gz"	if	FREETZ_AVM_VERSION_04_80
1727	default "fritzbox7170-source-files-04.87.tar.gz"	if	FREETZ_AVM_VERSION_04_87
1728	default "fritzbox7270-source-files-04.86.tar.gz"	if	FREETZ_AVM_VERSION_7270_04_86
1729	default "fritzbox-source-files-05.05.tar.gz"		if	FREETZ_AVM_VERSION_7270_05_05
1730	default "fritzbox7320-source-files-04.86.tar.gz"	if	FREETZ_AVM_VERSION_7320_04_86
1731	default "fritz_box_fon_wlan_7390_source_files.04.91.tar.gz"	if	FREETZ_AVM_VERSION_7390_04_90
1732	default "fritz_box_fon_wlan_7390_source_files.05.05.tar.gz"	if	FREETZ_AVM_VERSION_7390_05_05
1733	default "GPL-r7203-4mb_26-tar.bz2"			if	FREETZ_AVM_VERSION_r7203
1734
1735config FREETZ_DL_KERNEL_SOURCE_MD5
1736	string "MD5 checksum for downloaded Kernel source file" if	FREETZ_DL_OVERRIDE
1737	default "1a43eaf94b7989b8cf8e50b2e50c756c"		if	FREETZ_AVM_VERSION_04_30
1738	default "99b6a701f9cd09319086c8655fced242"		if	FREETZ_AVM_VERSION_04_33
1739	default "008ecd257e584fc5bbf5e276d4b03ff1"		if	FREETZ_AVM_VERSION_04_40
1740	default "e6889745b437bde0f5bdb5ada93c913d"		if	FREETZ_AVM_VERSION_04_49
1741	default "702f4adf12638bfa34a6b10c0ede4b55"		if	FREETZ_AVM_VERSION_04_57
1742	default "ec2c233bb836e822d9018fd41e123a91"		if	FREETZ_AVM_VERSION_04_67
1743	default "855d4ad80fc894d9dff52fcaf55d3c12"		if	FREETZ_AVM_VERSION_04_70
1744	default "4ffc088502c896c11931ba81536fa0e6"		if	FREETZ_AVM_VERSION_04_76
1745	default "6bf92b81b48a3a05efd3aae6c05fe3e2"		if	FREETZ_AVM_VERSION_04_80
1746	default "cad33bda041910e2aae01f027465162b"		if	FREETZ_AVM_VERSION_04_87
1747	default "55a11af7dcfd617c39e75877045ab468"		if	FREETZ_AVM_VERSION_7270_04_86
1748	default "19280ad861a7e88698d41211996c5ac6"		if	FREETZ_AVM_VERSION_7270_05_05
1749	default "0e2ddf32808eb329efc4b486c6de0011"		if	FREETZ_AVM_VERSION_7320_04_86
1750	default "2cad066e0e57aa3e58bf784b396ee676"		if	FREETZ_AVM_VERSION_7390_04_90
1751	default "fbf515bd77f3d3a64a3095889777cc13"		if	FREETZ_AVM_VERSION_7390_05_05
1752	default "582c74f0959a687c41c1bcfa599ace9c"		if	FREETZ_AVM_VERSION_r7203
1753
1754config FREETZ_DL_SITE
1755	string "Firmware site"						if	FREETZ_DL_OVERRIDE
1756	depends on ! FREETZ_TYPE_LABOR
1757	default "@AVM/fritzbox.2170/firmware/deutsch"			if	FREETZ_TYPE_2170
1758	default "@AVM/fritzbox.fon/firmware/deutsch"			if	(FREETZ_TYPE_300IP_AS_FON || \
1759											FREETZ_TYPE_FON) && \
1760											FREETZ_TYPE_LANG_DE
1761	default "@AVM/fritzbox.fon/firmware/english/annex_a"		if	(FREETZ_TYPE_300IP_AS_FON || \
1762											FREETZ_TYPE_FON) && \
1763											FREETZ_TYPE_LANG_EN && \
1764											FREETZ_TYPE_ANNEX_A
1765	default "@AVM/fritzbox.fon/firmware/english/annex_b"		if 	(FREETZ_TYPE_300IP_AS_FON || \
1766											FREETZ_TYPE_FON) && \
1767											FREETZ_TYPE_LANG_EN && \
1768											FREETZ_TYPE_ANNEX_B
1769	default "@AVM/fritzbox.fon_5010/firmware/deutsch_a-ch"		if	FREETZ_TYPE_FON_5010
1770	default "@AVM/fritzbox.fon_5050/firmware"			if	FREETZ_TYPE_FON_5050
1771	default "@AVM/fritzbox.fon_5124/firmware/english/annex_a"	if	FREETZ_TYPE_FON_5124 && \
1772											FREETZ_TYPE_LANG_EN && \
1773											FREETZ_TYPE_ANNEX_A
1774	default "@AVM/fritzbox.fon_5124/firmware/english/annex_b"	if	FREETZ_TYPE_FON_5124 && \
1775											FREETZ_TYPE_LANG_EN && \
1776											FREETZ_TYPE_ANNEX_B
1777	default "@AVM/fritzbox.fon_5140/firmware"			if	FREETZ_TYPE_FON_5140
1778	default "@AVM/fritzbox.fon_wlan/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN && \
1779											FREETZ_TYPE_LANG_DE
1780	default "@AVM/fritzbox.fon_wlan/firmware/english/annex_a"	if	FREETZ_TYPE_FON_WLAN && \
1781											FREETZ_TYPE_LANG_EN && \
1782											FREETZ_TYPE_ANNEX_A
1783	default "@AVM/fritzbox.fon_wlan/firmware/english/annex_b"	if	FREETZ_TYPE_FON_WLAN && \
1784											FREETZ_TYPE_LANG_EN && \
1785											FREETZ_TYPE_ANNEX_B
1786	default "@AVM/fritzbox.fon_wlan_7050/firmware"			if	FREETZ_TYPE_FON_WLAN_7050
1787	default "@AVM/fritzbox.fon_wlan_7112/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7112
1788	default "@AVM/fritzbox.fon_wlan_7113/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7113 && \
1789											FREETZ_TYPE_LANG_DE
1790	default "@AVM/fritzbox.fon_wlan_7113/firmware/english/annex_a" 	if	FREETZ_TYPE_FON_WLAN_7113 && \
1791											FREETZ_TYPE_LANG_EN
1792	default "@AVM/fritzbox.fon_wlan_7140/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7140 && \
1793											FREETZ_TYPE_LANG_DE
1794	default "@AVM/fritzbox.fon_wlan_7140/firmware/deutsch_a-ch"	if	FREETZ_TYPE_FON_WLAN_7140 && \
1795											FREETZ_TYPE_LANG_A_CH
1796	default "@AVM/fritzbox.fon_wlan_7140/firmware/english/annex_a"	if	FREETZ_TYPE_FON_WLAN_7140 && \
1797											FREETZ_TYPE_LANG_EN && \
1798											FREETZ_TYPE_ANNEX_A
1799	default "@AVM/fritzbox.fon_wlan_7140/firmware/english/annex_b"	if	FREETZ_TYPE_FON_WLAN_7140 && \
1800											FREETZ_TYPE_LANG_EN && \
1801											FREETZ_TYPE_ANNEX_B
1802	default "@AVM/fritzbox.fon_wlan_7141/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7141
1803	default "@AVM/fritzfon.7150/firmware"				if	FREETZ_TYPE_FON_7150
1804	default "@AVM/fritzbox.fon_wlan_7170/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7170 && \
1805											FREETZ_TYPE_LANG_DE
1806	default "@AVM/fritzbox.fon_wlan_7170/firmware/deutsch_a-ch"	if	FREETZ_TYPE_FON_WLAN_7170 && \
1807											FREETZ_TYPE_LANG_A_CH
1808	default "@AVM/fritzbox.fon_wlan_7170/firmware/english/annex_a"	if	FREETZ_TYPE_FON_WLAN_7170 && \
1809											FREETZ_TYPE_LANG_EN && \
1810											FREETZ_TYPE_ANNEX_A
1811	default "@AVM/fritzbox.fon_wlan_7170/firmware/english/annex_b"	if	FREETZ_TYPE_FON_WLAN_7170 && \
1812											FREETZ_TYPE_LANG_EN && \
1813											FREETZ_TYPE_ANNEX_B
1814	default "@AVM/fritzbox.fon_wlan_7240/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7240
1815	default "@AVM/fritzbox.fon_wlan_7270_v1/firmware/deutsch"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V1 && \
1816											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1817											FREETZ_TYPE_72702_72701 ) && \
1818											FREETZ_TYPE_LANG_DE
1819	default "@AVM/fritzbox.fon_wlan_7270_v2/firmware/deutsch"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V2 && \
1820											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1821											FREETZ_TYPE_7270_7270 ) && \
1822											! FREETZ_TYPE_LABOR && \
1823											FREETZ_TYPE_LANG_DE
1824	default "@AVM/fritzbox.fon_wlan_7270_v2/firmware/english"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V2 && \
1825											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1826											FREETZ_TYPE_7270_7270 ) && \
1827											FREETZ_TYPE_LANG_EN
1828	default "@AVM/fritzbox.fon_wlan_7270_v3/firmware/deutsch"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V3 && \
1829											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1830											FREETZ_TYPE_7240_7270 ) && \
1831											! FREETZ_TYPE_LABOR && \
1832											FREETZ_TYPE_LANG_DE
1833	default "@AVM/fritzbox.fon_wlan_7270_v3/firmware/english"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V3 && \
1834											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1835											FREETZ_TYPE_7240_7270 ) && \
1836											FREETZ_TYPE_LANG_EN
1837	default "@AVM/fritzbox.fon_wlan_7320/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7320
1838	default "@AVM/fritzbox.fon_wlan_7330/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7330
1839	default "@AVM/fritzbox.fon_wlan_7340/firmware/english"		if	FREETZ_TYPE_FON_WLAN_7340
1840	default "@AVM/fritzbox.fon_wlan_7390/firmware/deutsch"		if	FREETZ_TYPE_FON_WLAN_7390 && \
1841											FREETZ_TYPE_LANG_DE
1842	default "@AVM/fritzbox.fon_wlan_7390/firmware/english"		if	FREETZ_TYPE_FON_WLAN_7390 && \
1843											FREETZ_TYPE_LANG_EN
1844	default "@AVM/fritzbox.fon_wlan_7570/firmware/english"		if	FREETZ_TYPE_FON_WLAN_7570
1845	default "@AVM/fritzbox.sl_wlan/firmware"			if	FREETZ_TYPE_WLAN_3020
1846	default "@AVM/fritzbox.wlan_3030/firmware"			if	FREETZ_TYPE_WLAN_3030
1847	default "@AVM/fritzbox.wlan_3130/firmware"			if	FREETZ_TYPE_WLAN_3130
1848	default "@AVM/fritzbox.wlan_3131/firmware/deutsch"		if	FREETZ_TYPE_WLAN_3131
1849	default "@AVM/fritzbox.wlan_3170/firmware/deutsch"		if	FREETZ_TYPE_WLAN_3170
1850	default "@AVM/fritzbox.wlan_3270/firmware/deutsch"		if	FREETZ_TYPE_WLAN_3270
1851	default "@AVM/fritzbox.wlan_3270_v3/firmware/deutsch"		if	FREETZ_TYPE_WLAN_3270_V3
1852	default "@TELEKOM/Speedport/Speedport_W501V"			if	FREETZ_TYPE_SPEEDPORT_W501V
1853	default "@AVM/..."						if	FREETZ_TYPE_CUSTOM
1854
1855config FREETZ_DL_SOURCE
1856	string "Firmware source"						if	FREETZ_DL_OVERRIDE
1857	default "FRITZ.Box_2170.51.04.57.image"					if	FREETZ_TYPE_2170
1858	default "fritz.box_fon.06.04.33.image"					if	(FREETZ_TYPE_300IP_AS_FON || \
1859											FREETZ_TYPE_FON) && \
1860											FREETZ_TYPE_LANG_DE
1861	default "fritz.box_fon.annexa.en.06.04.49.image"			if	(FREETZ_TYPE_300IP_AS_FON || \
1862											FREETZ_TYPE_FON) && \
1863											FREETZ_TYPE_LANG_EN && \
1864											FREETZ_TYPE_ANNEX_A
1865	default "fritz.box_fon.en.06.04.49.image"				if	(FREETZ_TYPE_300IP_AS_FON || \
1866											FREETZ_TYPE_FON) && \
1867											FREETZ_TYPE_LANG_EN && \
1868											FREETZ_TYPE_ANNEX_B
1869	default "fritz.box_fon_5010.annexa.48.04.43.image"			if	FREETZ_TYPE_FON_5010
1870	default "fritz.box_fon_5050.12.04.31.image"				if	FREETZ_TYPE_FON_5050
1871	default "FRITZ.Box_Fon_5124.AnnexA.en.57.04.76.image"			if	FREETZ_TYPE_FON_5124 && \
1872											FREETZ_TYPE_LANG_EN && \
1873											FREETZ_TYPE_ANNEX_A
1874	default "FRITZ.Box_Fon_5124.AnnexB.en.56.04.76.image"			if	FREETZ_TYPE_FON_5124 && \
1875											FREETZ_TYPE_LANG_EN && \
1876											FREETZ_TYPE_ANNEX_B
1877	default "FRITZ.Box_Fon_5140.AnnexB.43.04.67.image"			if	FREETZ_TYPE_FON_5140
1878	default "fritz.box_fon_wlan.08.04.34.image"				if	FREETZ_TYPE_FON_WLAN && \
1879											FREETZ_TYPE_LANG_DE
1880	default "FRITZ.Box_Fon_WLAN.AnnexA.en.08.04.49.image"			if	FREETZ_TYPE_FON_WLAN && \
1881											FREETZ_TYPE_LANG_EN && \
1882											FREETZ_TYPE_ANNEX_A
1883	default "FRITZ.Box_Fon_WLAN.AnnexB.en.08.04.49.image"			if	FREETZ_TYPE_FON_WLAN && \
1884											FREETZ_TYPE_LANG_EN && \
1885											FREETZ_TYPE_ANNEX_B
1886	default "fritz.box_fon_wlan_7050.14.04.33.image"			if	FREETZ_TYPE_FON_WLAN_7050
1887	default "FRITZ.Box_Fon_WLAN_7112.87.04.87.image"			if	FREETZ_TYPE_FON_WLAN_7112
1888	default "FRITZ.Box_Fon_WLAN_7113.60.04.68.image"			if	FREETZ_TYPE_FON_WLAN_7113 && \
1889											FREETZ_TYPE_LANG_DE
1890	default "FRITZ.Box_Fon_WLAN_7113.AnnexA.de-en-es-it-fr.90.04.84.image"	if	FREETZ_TYPE_FON_WLAN_7113 && \
1891											FREETZ_TYPE_LANG_EN
1892	default "fritz.box_fon_wlan_7140.annexb.30.04.33.image"			if	FREETZ_TYPE_FON_WLAN_7140 && \
1893											FREETZ_TYPE_LANG_DE
1894	default "FRITZ.Box_Fon_WLAN_7140.AnnexA.39.04.76.image"			if	FREETZ_TYPE_FON_WLAN_7140 && \
1895											FREETZ_TYPE_LANG_A_CH
1896	default "FRITZ.Box_Fon_WLAN_7140.AnnexA.en.39.04.67.image"		if	FREETZ_TYPE_FON_WLAN_7140 && \
1897											FREETZ_TYPE_LANG_EN && \
1898											FREETZ_TYPE_ANNEX_A
1899	default "FRITZ.Box_Fon_WLAN_7140.AnnexB.en.30.04.67.image"		if	FREETZ_TYPE_FON_WLAN_7140 && \
1900											FREETZ_TYPE_LANG_EN && \
1901											FREETZ_TYPE_ANNEX_B
1902	default "FRITZ.Box_Fon_WLAN_7141.40.04.76.image"			if	FREETZ_TYPE_FON_WLAN_7141
1903	default "fritz.fon_7150.annexb.38.04.71.image"				if	FREETZ_TYPE_FON_7150
1904	default "FRITZ.Box_Fon_WLAN_7170.29.04.87.image"			if	FREETZ_TYPE_FON_WLAN_7170 && \
1905											FREETZ_TYPE_LANG_DE
1906	default "FRITZ.Box_Fon_WLAN_7170.AnnexA.58.04.76.image"			if	FREETZ_TYPE_FON_WLAN_7170 && \
1907											FREETZ_TYPE_LANG_A_CH
1908	default "FRITZ.Box_Fon_WLAN_7170.AnnexA.en.58.04.84.image"		if	FREETZ_TYPE_FON_WLAN_7170 && \
1909											FREETZ_TYPE_LANG_EN && \
1910											FREETZ_TYPE_ANNEX_A
1911	default "FRITZ.Box_Fon_WLAN_7170.AnnexB.en.29.04.82.image"		if	FREETZ_TYPE_FON_WLAN_7170 && \
1912											FREETZ_TYPE_LANG_EN && \
1913											FREETZ_TYPE_ANNEX_B
1914	default "FRITZ.Box_Fon_WLAN_7240.73.05.05.image"			if	FREETZ_TYPE_FON_WLAN_7240 && \
1915											! FREETZ_TYPE_LABOR
1916#	default "Labor_FRITZ.Box_Fon_WLAN_7240.73.05.04-20170.image"		if	FREETZ_TYPE_FON_WLAN_7240 && \
1917#											FREETZ_TYPE_LABOR_PREVIEW
1918	default "FRITZ.Box_Fon_WLAN_7270_v1.54.04.88.image"			if	FREETZ_TYPE_FON_WLAN_7270_V1 && \
1919											! FREETZ_TYPE_LABOR && \
1920											FREETZ_TYPE_LANG_DE
1921#	default "Labor_FRITZ.Box_Fon_WLAN_7270_v1.54.04.86-18582.image"		if	FREETZ_TYPE_FON_WLAN_7270_V1 && \
1922#											FREETZ_TYPE_LABOR_PREVIEW
1923	default "FRITZ.Box_Fon_WLAN_7270_v2.54.05.05.image"			if	( ( FREETZ_TYPE_FON_WLAN_7270_V2 && \
1924											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1925											FREETZ_TYPE_7270_7270 ) && \
1926											! FREETZ_TYPE_LABOR && \
1927											FREETZ_TYPE_LANG_DE
1928	default "FRITZ.Box_Fon_WLAN_7270_v2_Labor.54.05.07-20870.image"		if	FREETZ_TYPE_FON_WLAN_7270_V2 && \
1929											FREETZ_TYPE_LABOR_PREVIEW
1930	default "FRITZ.Box_Fon_WLAN_7270_16.en-de-es-it-fr.54.05.05.image"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V2 && \
1931											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1932											FREETZ_TYPE_7270_7270 ) && \
1933											FREETZ_TYPE_LANG_EN
1934	default "FRITZ.Box_Fon_WLAN_7270_v3.74.05.05.image"			if	( ( FREETZ_TYPE_FON_WLAN_7270_V3 && \
1935											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1936											FREETZ_TYPE_7240_7270 ) && \
1937											! FREETZ_TYPE_LABOR && \
1938											FREETZ_TYPE_LANG_DE
1939	default "FRITZ.Box_Fon_WLAN_7270_v3.en-de-es-it-fr.74.05.05.image"	if	( ( FREETZ_TYPE_FON_WLAN_7270_V3 && \
1940											! FREETZ_TYPE_ALIEN_HARDWARE ) || \
1941											FREETZ_TYPE_7240_7270 ) && \
1942											FREETZ_TYPE_LANG_EN
1943	default "FRITZ.Box_Fon_WLAN_7270_v3_Labor.74.05.07-20870.image"		if	( FREETZ_TYPE_FON_WLAN_7270_V3 || \
1944											( FREETZ_TYPE_FON_WLAN_7270 && \
1945											FREETZ_TYPE_ALIEN_HARDWARE ) ) && \
1946											FREETZ_TYPE_LABOR_PREVIEW
1947	default "FRITZ.Box_Fon_WLAN_7320.100.04.89.image"			if	FREETZ_TYPE_FON_WLAN_7320 && \
1948											! FREETZ_TYPE_LABOR
1949	default "FRITZ.Box_7330.107.05.06.image"				if	FREETZ_TYPE_FON_WLAN_7330
1950	default "FRITZ.Box_Fon_WLAN_7340.en-de-es-it-fr.99.05.05.image"		if	FREETZ_TYPE_FON_WLAN_7340
1951	default "FRITZ.Box_Fon_WLAN_7390.84.05.05.image"			if	FREETZ_TYPE_FON_WLAN_7390 && \
1952											! FREETZ_TYPE_LABOR && \
1953											FREETZ_TYPE_LANG_DE
1954	default "FRITZ.Box_Fon_WLAN_7390.en-de-es-it-fr.84.05.05.image"		if	FREETZ_TYPE_FON_WLAN_7390 && \
1955											! FREETZ_TYPE_LANG_DE
1956	default "FRITZ.Box_Fon_WLAN_7390_Labor.84.05.07-20869.image"		if	FREETZ_TYPE_FON_WLAN_7390 && \
1957											FREETZ_TYPE_LABOR_PREVIEW
1958	default "FRITZ.Box_Fon_WLAN_7570_vDSL.en-de-fr.75.04.91.image"		if	FREETZ_TYPE_FON_WLAN_7570
1959	default "fritz.box_sl_wlan.09.04.34.image"				if	FREETZ_TYPE_WLAN_3020
1960	default "fritz.box_wlan_3030.21.04.34.image"				if	FREETZ_TYPE_WLAN_3030
1961	default "fritz.box_wlan_3130.44.04.34.image"				if	FREETZ_TYPE_WLAN_3130
1962	default "fritz.box_wlan_3131.50.04.57.image"				if	FREETZ_TYPE_WLAN_3131
1963	default "fritz.box_wlan_3170.49.04.58.image"				if	FREETZ_TYPE_WLAN_3170
1964	default "fritz.box_wlan_3270.67.05.05.image"				if	FREETZ_TYPE_WLAN_3270
1965	default "fritz.box_wlan_3270_v3.96.05.05.image"				if	FREETZ_TYPE_WLAN_3270_V3
1966	default "fw_Speedport_W501V_v_28.04.38.image"				if	FREETZ_TYPE_SPEEDPORT_W501V
1967	default "fritz.box..."							if	FREETZ_TYPE_CUSTOM
1968
1969endmenu # "Toolchain options" #
1970
1971endmenu # "Advanced options" #
1972
1973# INCLUDE_END Config.in
1974