2 # Toplevel Makefile for the BCM947xx Linux Router release
4 # Copyright 2005, Broadcom Corporation
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 # $Id: Makefile,v 1.53 2005/04/25 03:54:37 tallest Exp $
15 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
17 # To rebuild everything and all configurations:
19 # make V1=whatever V2=sub-whatever VPN=vpn3.6 a b c d m n o
20 # The 1st "whatever" would be the build number, the sub-whatever would
21 # be the update to the version.
24 # make V1=8516 V2="-jffs.1" a b c d m s n o
26 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29 export ac_cv_func_malloc_0_nonnull
=yes
30 export SRCBASE
:= $(shell pwd
)
31 export SRCBASEDIR
:= $(shell pwd | sed
's/.*release\///g')
32 RELEASEDIR
:= $(shell (cd
$(SRCBASE
)/..
&& pwd
-P
))
33 PATH
:= $(RELEASEDIR
)/tools
:$(PATH
)
38 # Normally you'd do something like "make V1=8516 V2=-sub-ver a b c d"
39 # But if you don't give anything for "V1", it'll get a default from tomato_version.
42 ifeq ($(CONFIG_LINUX26
),y
)
43 ifeq ($(CONFIG_BCMWL6
),y
)
66 WNRTOOL
=$(SRCBASE
)/wnrtool
67 BOARD_FILE
=$(WNRTOOL
)/comp-wnr3500lv2.txt
68 fw_cfg_file
:= $(WNRTOOL
)/ambitCfg-wnr3500lv2.h
72 EXTRA_64KDESC
= ' -64K'
73 EXTRA_64KCFLAG
= '-DTCONFIG_NVRAM_64K'
79 -include tomato_profile.mak
81 # This could be simpler by just using $(TOMATO_PROFILE_NAME) like it used to be,
82 # but that's fragile. If you make one certain innocuous change elsewhere in the
83 # makefile(s), the build will silently be wrong. This way it works properly every time.
84 current_BUILD_NAME
= $(strip $(shell grep
"^TOMATO_BUILD_NAME" tomato_profile.mak | cut
-d
"=" -f2
))
85 current_BUILD_DESC
= $(strip $(shell grep
"^TOMATO_BUILD_DESC" tomato_profile.mak | cut
-d
"=" -f2 | sed
-e
"s/ //g"))
86 current_BUILD_USB
= $(strip $(shell grep
"^TOMATO_BUILD_USB" tomato_profile.mak | cut
-d
"=" -f2 | sed
-e
"s/ //g"))
87 current_TOMATO_VER
= $(strip $(shell grep
"TOMATO_MAJOR" router
/shared
/tomato_version.h | cut
-d
"\"" -f2
)).
$(strip $(shell grep
"TOMATO_MINOR" router
/shared
/tomato_version.h | cut
-d
"\"" -f2
))
88 current_TOMATO_V1
= $(V1
)
89 current_TOMATO_V2
= $(V2
)
91 uppercase_N
= $(shell echo
$(N
) | tr a-z A-Z
)
92 lowercase_N
= $(shell echo
$(N
) | tr A-Z a-z
)
93 uppercase_B
= $(shell echo
$(B
) | tr a-z A-Z
)
94 lowercase_B
= $(shell echo
$(B
) | tr A-Z a-z
)
96 ifeq ($(CONFIG_LINUX26
),y
)
97 mips_rev
= $(if
$(filter $(MIPS32
),r2
),MIPSR2
,MIPSR1
)
104 beta
= $(if
$(filter $(TOMATO_EXPERIMENTAL
),1),-beta
,)
108 @btools
/uversion.pl
--gen
$(V1
) $(mips_rev
)$(beta
)$(V2
) $(ND
) $(current_BUILD_USB
) $(current_BUILD_DESC
)
110 ifeq ($(TOMATO_BUILD
),)
119 @echo
"Building Tomato $(ND) $(current_BUILD_USB) $(current_TOMATO_VER).$(V1)$(mips_rev)$(beta)$(V2) $(current_BUILD_DESC) $(current_BUILD_NAME) with $(TOMATO_PROFILE_NAME) Profile"
125 @
$(MAKE
) -C router
all
126 @
$(MAKE
) -C router
install
129 @
rm -f image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx
130 @
rm -f image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
132 ifneq ($(ASUS_TRX
),0)
133 ifeq ($(ASUS_TRX
),R6300V1
)
135 ctools
/objcopy
-O binary
-R .reginfo
-R .note
-R .comment
-R .mdebug
-S
$(LINUXDIR
)/vmlinux ctools
/piggy
136 ctools
/lzma_4k e ctools
/piggy ctools
/vmlinuz-lzma
137 ctools
/mksquashfs router
/mipsel-uclibc
/target ctools
/target.squashfs
-noappend
-all-root
138 ctools
/trx
-o image
/linux-lzma.trx ctools
/vmlinuz-lzma ctools
/target.squashfs
139 # For mkchkimg, have to redirect stderr to stdout ... for some reason mkchkimg outputs to stderr (confirmed in source code!),
140 # and tee only reads from stdout (not stderr)
141 @echo
"*********************** Convert TRX to CHK (add Netgear Checksum) ************************" >>fpkg.log
142 @echo
"Creating Firmware for Netgear R6300 v1 .... "
143 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-Netgear-R6300V1_
$(V1
)$(V2
)-$(current_BUILD_DESC
).chk \
144 -k image
/linux-lzma.trx \
145 -b U12H218T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
146 @
rm -f image
/linux-lzma.trx
149 ifeq ($(ASUS_TRX
),WNDR4500V1
)
151 ctools
/objcopy
-O binary
-R .reginfo
-R .note
-R .comment
-R .mdebug
-S
$(LINUXDIR
)/vmlinux ctools
/piggy
152 ctools
/lzma_4k e ctools
/piggy ctools
/vmlinuz-lzma
153 ctools
/mksquashfs router
/mipsel-uclibc
/target ctools
/target.squashfs
-noappend
-all-root
154 ctools
/trx
-o image
/linux-lzma.trx ctools
/vmlinuz-lzma ctools
/target.squashfs
155 # For mkchkimg, have to redirect stderr to stdout ... for some reason mkchkimg outputs to stderr (confirmed in source code!),
156 # and tee only reads from stdout (not stderr)
157 @echo
"*********************** Convert TRX to CHK (add Netgear Checksum) ************************" >>fpkg.log
158 @echo
"Creating Firmware for Netgear WNDR4500 v1 .... "
159 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-Netgear-WNDR4500V1_
$(V1
)$(V2
)-$(current_BUILD_DESC
).chk \
160 -k image
/linux-lzma.trx \
161 -b U12H189T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
162 @
rm -f image
/linux-lzma.trx
165 ifeq ($(ASUS_TRX
),WNDR4500V2
)
167 ctools
/objcopy
-O binary
-R .reginfo
-R .note
-R .comment
-R .mdebug
-S
$(LINUXDIR
)/vmlinux ctools
/piggy
168 ctools
/lzma_4k e ctools
/piggy ctools
/vmlinuz-lzma
169 ctools
/mksquashfs router
/mipsel-uclibc
/target ctools
/target.squashfs
-noappend
-all-root
170 ctools
/trx
-o image
/linux-lzma.trx ctools
/vmlinuz-lzma ctools
/target.squashfs
171 # For mkchkimg, have to redirect stderr to stdout ... for some reason mkchkimg outputs to stderr (confirmed in source code!),
172 # and tee only reads from stdout (not stderr)
173 @echo
"*********************** Convert TRX to CHK (add Netgear Checksum) ************************" >>fpkg.log
174 @echo
"Creating Firmware for Netgear WNDR4500 v2 .... "
175 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-Netgear-WNDR4500V2_
$(V1
)$(V2
)-$(current_BUILD_DESC
).chk \
176 -k image
/linux-lzma.trx \
177 -b U12H224T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
178 @
rm -f image
/linux-lzma.trx
182 ctools
/objcopy
-O binary
-R .reginfo
-R .note
-R .comment
-R .mdebug
-S
$(LINUXDIR
)/vmlinux ctools
/piggy
183 ctools
/lzma_4k e ctools
/piggy ctools
/vmlinuz-lzma
184 ctools
/mksquashfs router
/mipsel-uclibc
/target ctools
/target.squashfs
-noappend
-all-root
185 ctools
/trx
-o image
/linux-lzma.trx ctools
/vmlinuz-lzma ctools
/target.squashfs
186 ctools
/trx_asus
-i image
/linux-lzma.trx
-r
$(BUILD_NAME
),$(KERNEL_VER
).
$(FS_VER
),image
/tomato-
$(ASUS_TRX
)_
$(V1
)$(V2
)-$(current_BUILD_DESC
).trx
187 @
rm -f image
/linux-lzma.trx
194 ifeq ($(WNR3500LV2
),1)
195 @echo
"Creating Firmware for Netgear WNR3500L v2 .... "
196 mipsel-uclibc-objcopy
-O binary
-g
$(LINUXDIR
)/vmlinux image
/vmlinux.bin
197 $(WNRTOOL
)/lzma e image
/vmlinux.bin image
/vmlinux.lzma
198 $(WNRTOOL
)/trx
-o image
/tomato-wnr3500lv2.trx image
/vmlinux.lzma
$(SRCBASE
)/router
/mipsel-uclibc
/target.image
199 rm -f image
/vmlinux.bin image
/vmlinux.lzma
200 cd image
&& touch rootfs
201 cd image
&& $(WNRTOOL
)/packet
-k tomato-wnr3500lv2.trx
-f rootfs
-b
$(BOARD_FILE
) -ok kernel_image
-oall kernel_rootfs_image
-or rootfs_image
-i
$(fw_cfg_file
) && rm -f rootfs
&& \
202 cp kernel_rootfs_image.chk tomato-Netgear-3500Lv2-
$(ND
)$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(V2
)-$(current_BUILD_DESC
).chk
204 # rm -f image/*image.chk image/*.trx
209 @
rm -f image
/tomato-WRT54
*$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
210 @
rm -f image
/tomato-WRTSL54
*$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
211 @
rm -f image
/tomato-WR850G
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
214 ifeq ($(LINKSYS_E
),y
)
215 @
rm -f image
/tomato-E??????
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
217 ifeq ($(LINKSYS_E_64k
),y
)
218 @
rm -f image
/tomato-E??????
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
220 ifeq ($(LINKSYS_E1200v1
),y
)
221 @
rm -f image
/tomato-E1200v1
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
223 ifeq ($(LINKSYS_E1000v2
),y
)
224 @
rm -f image
/tomato-E1000v2-v21
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
225 @
rm -f image
/tomato-Cisco-M10v2
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
227 ifeq ($(LINKSYS_E2500
),y
)
228 @
rm -f image
/tomato-E2500
$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
230 ifeq ($(LINKSYS_E3200
),y
)
231 @
rm -f image
/tomato-E3200
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
232 @
rm -f image
/tomato-E2500v3
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
235 ifneq ($(NVRAM_SIZE
),60)
236 @
rm -f image
/tomato-F7D????
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(current_TOMATO_V1
)$(mips_rev
)$(beta
)$(current_TOMATO_V2
)-$(current_BUILD_DESC
).bin
237 @
rm -f image
/tomato-F5D8235v3
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(current_TOMATO_V1
)$(mips_rev
)$(beta
)$(current_TOMATO_V2
)-$(current_BUILD_DESC
).bin
241 @echo
"***********************" `date` "************************" >>fpkg.log
242 @cat router
/shared
/tomato_version
>>fpkg.log
244 @cat router
/target.
info >>fpkg.log
247 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
248 -l W54G
,image
/tomato-WRT54G_WRT54GL
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
249 -l W54S
,image
/tomato-WRT54GS
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
250 -l W54s
,image
/tomato-WRT54GSv4
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
251 -l W54U
,image
/tomato-WRTSL54GS
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
252 -m
0x10577050,image
/tomato-WR850G
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin
256 ifeq ($(LINKSYS_E
),y
)
257 # Linksys E-series(60k Nvram) images
258 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
259 -l
1550,image
/tomato-E1550
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
260 -l
4200,image
/tomato-E4200
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
261 -l
61XN
,image
/tomato-E3000
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
262 -l
32XN
,image
/tomato-E2000
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
265 ifeq ($(LINKSYS_E2500
),y
)
266 # Linksys E2500(60k Nvram) image
267 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
268 -l E25X
,image
/tomato-E2500
$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
271 ifeq ($(LINKSYS_E3200
),y
)
272 # Linksys E3200/E2500v3(60k Nvram) image
273 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
274 -l
25V3
,image
/tomato-E2500v3
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
275 -l
3200,image
/tomato-E3200
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
278 ifeq ($(LINKSYS_E_64k
),y
)
279 # Linksys E-series(64k Nvram) images
280 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
281 -l E800
,image
/tomato-E800
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
282 -l E900
,image
/tomato-E900
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
283 -l E122
,image
/tomato-E1200v2
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
284 -l E150
,image
/tomato-E1500
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
287 ifeq ($(LINKSYS_E1000v2
),y
)
288 # Linksys E1000v2/v2.1 images
289 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
290 -l E100
,image
/tomato-E1000v2-v21
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
291 -l M010
,image
/tomato-Cisco-M10v2
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
294 ifeq ($(LINKSYS_E1200v1
),y
)
295 # Linksys E1200v1 images
296 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
297 -l E120
,image
/tomato-E1200v1
$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
301 ifneq ($(NVRAM_SIZE
),60)
302 # Create Belkin images
303 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
304 -b
0x20100322,image
/tomato-F7D3301
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
305 -b
0x20090928,image
/tomato-F7D3302
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
306 -b
0x20091006,image
/tomato-F7D4302
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
307 -b
0x00017116,image
/tomato-F5D8235v3
$(current_BUILD_USB
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).bin \
312 @echo
"Creating Firmware for Netgear WNDR Routers ..."
313 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
314 -t image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx \
316 # For mkchkimg, have to redirect stderr to stdout ... for some reason mkchkimg outputs to stderr (confirmed in source code!),
317 # and tee only reads from stdout (not stderr)
318 @echo
"*********************** Convert TRX to CHK (add Netgear Checksum) ************************" >>fpkg.log
319 # Make multiple versions / files, as file is HW specific (HW information is captured in the .chk file itself!)
320 # Make WNDR4000, Checksum starts at 0x6FFFF8 => Max size (to not touch the last 64kB block) = 7274496
321 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-WNDR4000-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk \
322 -k image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx \
323 -b U12H181T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
324 @
$(MAKE
) netgear-check MAXFSIZE
=7274496 NG_FNAME
=image
/tomato-WNDR4000-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk
326 # Make WNDR3700v3, Checksum starts at 0x6FFFF8 => Max size (to not touch the last 64kB block) = 7274496
327 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-WNDR3700v3-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk \
328 -k image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx \
329 -b U12H194T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
330 @
$(MAKE
) netgear-check MAXFSIZE
=7274496 NG_FNAME
=image
/tomato-WNDR3700v3-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk
332 # Make WNDR3400, Checksum starts at 0x6CFFF8 => Max size (to not touch the last 64kB block) = 7077888
333 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-WNDR3400-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk \
334 -k image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx \
335 -b U12H155T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
336 @
$(MAKE
) netgear-check MAXFSIZE
=7077888 NG_FNAME
=image
/tomato-WNDR3400-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk
338 # Make WNDR3400v2, Checksum starts at 0x6FFFF8 => Max size (to not touch the last 64kB block) = 7274496
339 @
$(SRCBASE
)/wnrtool
/mkchkimg
-o image
/tomato-WNDR3400v2-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk \
340 -k image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx \
341 -b U12H187T00_NETGEAR
-r
2 2>&1 | tee
-a fpkg.log
342 @
$(MAKE
) netgear-check MAXFSIZE
=7274496 NG_FNAME
=image
/tomato-WNDR3400v2-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).chk
345 @cp fpkg.log image
/fpkg-
$(V1
)$(mips_rev
)$(beta
)$(V2
).log
346 @
rm -f image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx
349 # Create generic TRX image
350 @btools
/fpkg
-i lzma-loader
/loader.gz
-i
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/vmlinuz
-a
1024 -i router
/mipsel-uclibc
/target.image \
351 -t image
/tomato-
$(ND
)$(current_BUILD_USB
)$(if
$(filter $(NVRAM_SIZE
),0),,-NVRAM
$(NVRAM_SIZE
)K
)-$(current_TOMATO_VER
).
$(V1
)$(mips_rev
)$(beta
)$(V2
)-$(current_BUILD_DESC
).trx \
354 @cp fpkg.log image
/fpkg-
$(V1
)$(mips_rev
)$(beta
)$(V2
).log
356 @echo
"-----------------"
357 @echo
`cat router/shared/tomato_version` " ready"
358 @echo
"-----------------"
359 ifneq ($(NOVERSION
),1)
360 @cp router
/shared
/tomato_version router
/shared
/tomato_version_last
361 @btools
/uversion.pl
--bump
367 $(eval FSIZE
= $(shell stat
-c
%s
$(NG_FNAME
)))
368 @if
[ ${FSIZE} -gt
${MAXFSIZE} ] ; then \
369 echo
"Router Filesize exceeds Netgear Hardware limits - file will be deleted!"; \
370 echo
" -> File to be deleted: " $(NG_FNAME
); \
374 echo
"Router Filesize meets Netgear Hardware limits - no action required."; \
379 @touch router
/.config
380 @
rm -f router
/config_
[a-z
]
381 @
rm -f router
/busybox
/config_
[a-z
]
382 @
$(MAKE
) -C router
$@
383 @
rm -rf router
/mipsel-uclibc
388 @
rm -f router
/.config
389 @touch router
/.config
393 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs
clean
394 @
$(MAKE
) -C btools
clean
398 mv .config save-config
&& \
399 $(MAKE
) distclean || true
; \
400 cp
-p save-config .config || true
403 @
$(MAKE
) -C router kernel
404 @ls
-l
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed
/zImage
406 distclean: clean cleanimage cleankernel cleantools
407 ifneq ($(INSIDE_MAK
),1)
408 @
$(MAKE
) -C router
$@ INSIDE_MAK
=1
410 mv router
/busybox
/.config busybox-saved-config || true
411 @
$(MAKE
) -C router
/busybox
distclean
412 @
rm -f router
/busybox
/config_current
413 @cp
-p busybox-saved-config router
/busybox
/.config || true
414 @cp
-p router
/busybox
/.config router
/busybox
/config_current || true
415 @
rm -f router
/config_current
416 @
rm -f router
/.config.cmd router
/.config.old router
/.config
417 @
rm -f router
/libfoo_xref.txt
418 @
rm -f tomato_profile.mak router
/shared
/tomato_profile.h
419 @touch tomato_profile.mak
420 @touch router
/shared
/tomato_profile.h
425 rm -f config_current
; \
426 ln
-s config_base config_current
; \
427 cp
-f config_current .config
428 $(MAKE
) -C
$(LINUXDIR
) oldconfig
429 ifneq ($(CONFIG_LINUX26
),y
)
430 $(MAKE
) -C
$(LINUXDIR
) dep
435 @echo
"$(current_BUILD_DESC)-$(current_BUILD_NAME)-$(TOMATO_PROFILE_NAME) Profile"
439 # The methodology for making the different builds is to
440 # copy the "base" config file to the "target" config file in
441 # the appropriate directory, and then edit it by removing and
442 # inserting the desired configuration lines.
443 # You can't just delete the "whatever=y" line, you must have
444 # a "...is not set" line, or the make oldconfig will stop and ask
447 # Options for "make bin" :
448 # BUILD_DESC (Std|Lite|Ext|...)
454 # NO_CIFS, NO_SSH, NO_ZEBRA, NO_SAMBA, NO_HTTPS, NO_XXTP, NO_LIBOPT
455 # SAMBA3, OPENVPN, IPV6SUPP, EBTABLES, NTFS, UFSD, MEDIASRV, BBEXTRAS, USBEXTRAS, BCM57, SLIM, NOCAT CTF NGINX NANO
456 # NFS BTCLIENT BTGUI TR_EXTRAS SNMP SDHC HFS UPS DNSCRYPT PPTPD TOR IPSEC RAID MICROSD USBAP NO_USBAPP
460 if
[ "$(CONFIG_LINUX26)" = "y" ] ||
[ "$(SAMBA3)" = "y" ]; then \
461 sed
-i
"/TCONFIG_SAMBA3/d" $(1); \
462 echo
"TCONFIG_SAMBA3=y" >>$(1); \
464 sed
-i
"/TCONFIG_EMF/d" $(1); \
465 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
466 if
[ "$(SLIM)" = "y" ]; then \
467 echo
"# TCONFIG_EMF is not set" >>$(1); \
469 echo
"TCONFIG_EMF=y" >>$(1); \
472 echo
"# TCONFIG_EMF is not set" >>$(1); \
474 sed
-i
"/TCONFIG_JFFSV1/d" $(1); \
475 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
476 if
[ "$(JFFSv1)" = "y" ]; then \
477 echo
"TCONFIG_JFFSV1=y" >>$(1); \
479 echo
"# TCONFIG_JFFSV1 is not set" >>$(1); \
482 echo
"TCONFIG_JFFSV1=y" >>$(1); \
484 if
[ "$(CONFIG_LINUX26)" = "y" ] && [ "$(IPSEC)" = "y" ]; then \
485 echo
"TCONFIG_IPSEC=y" >>$(1); \
487 echo
"# TCONFIG_IPSEC is not set" >>$(1); \
489 if
[ "$(CONFIG_LINUX26)" = "y" ] && [ "$(RAID)" = "y" ]; then \
490 echo
"TCONFIG_RAID=y" >>$(1); \
492 echo
"# TCONFIG_RAID is not set" >>$(1); \
494 if
[ "$(USB)" = "USB" ]; then \
495 sed
-i
"/TCONFIG_USB is not set/d" $(1); \
496 echo
"TCONFIG_USB=y" >>$(1); \
497 if
[ "$(USBEXTRAS)" = "y" ]; then \
498 sed
-i
"/TCONFIG_USB_EXTRAS/d" $(1); \
499 echo
"TCONFIG_USB_EXTRAS=y" >>$(1); \
501 if
[ "$(NTFS)" = "y" ]; then \
502 sed
-i
"/TCONFIG_NTFS/d" $(1); \
503 echo
"TCONFIG_NTFS=y" >>$(1); \
505 if
[ "$(UFSD)" = "y" ]; then \
506 sed
-i
"/TCONFIG_UFSD/d" $(1); \
507 echo
"TCONFIG_UFSD=y" >>$(1); \
509 if
[ "$(MEDIASRV)" = "y" ]; then \
510 sed
-i
"/TCONFIG_MEDIA_SERVER/d" $(1); \
511 echo
"TCONFIG_MEDIA_SERVER=y" >>$(1); \
514 sed
-i
"/TCONFIG_USB=y/d" $(1); \
515 echo
"# TCONFIG_USB is not set" >>$(1); \
517 if
[ "$(NO_SAMBA)" = "y" ]; then \
518 sed
-i
"/TCONFIG_SAMBASRV/d" $(1); \
519 echo
"# TCONFIG_SAMBASRV is not set" >>$(1); \
521 if
[ "$(NO_ZEBRA)" = "y" ]; then \
522 sed
-i
"/TCONFIG_ZEBRA/d" $(1); \
523 echo
"# TCONFIG_ZEBRA is not set" >>$(1); \
525 if
[ "$(NO_JFFS)" = "y" ]; then \
526 sed
-i
"/TCONFIG_JFFS2/d" $(1); \
527 echo
"# TCONFIG_JFFS2 is not set" >>$(1); \
528 sed
-i
"/TCONFIG_JFFSV1/d" $(1); \
529 echo
"# TCONFIG_JFFSV1 is not set" >>$(1); \
531 if
[ "$(NO_CIFS)" = "y" ]; then \
532 sed
-i
"/TCONFIG_CIFS/d" $(1); \
533 echo
"# TCONFIG_CIFS is not set" >>$(1); \
535 if
[ "$(NO_SSH)" = "y" ]; then \
536 sed
-i
"/TCONFIG_SSH/d" $(1); \
537 echo
"# TCONFIG_SSH is not set" >>$(1); \
539 if
[ "$(NO_HTTPS)" = "y" ]; then \
540 sed
-i
"/TCONFIG_HTTPS/d" $(1); \
541 echo
"# TCONFIG_HTTPS is not set" >>$(1); \
543 if
[ "$(NO_XXTP)" = "y" ]; then \
544 sed
-i
"/TCONFIG_L2TP/d" $(1); \
545 echo
"# TCONFIG_L2TP is not set" >>$(1); \
546 sed
-i
"/TCONFIG_PPTP/d" $(1); \
547 echo
"# TCONFIG_PPTP is not set" >>$(1); \
549 if
[ "$(NO_LIBOPT)" = "y" ]; then \
550 sed
-i
"/TCONFIG_OPTIMIZE_SHARED_LIBS/d" $(1); \
551 echo
"# TCONFIG_OPTIMIZE_SHARED_LIBS is not set" >>$(1); \
553 if
[ "$(EBTABLES)" = "y" ]; then \
554 sed
-i
"/TCONFIG_EBTABLES/d" $(1); \
555 echo
"TCONFIG_EBTABLES=y" >>$(1); \
557 if
[ "$(IPV6SUPP)" = "y" ]; then \
558 sed
-i
"/TCONFIG_IPV6/d" $(1); \
559 echo
"TCONFIG_IPV6=y" >>$(1); \
561 if
[ "$(NOCAT)" = "y" ]; then \
562 sed
-i
"/TCONFIG_NOCAT/d" $(1); \
563 echo
"TCONFIG_NOCAT=y" >>$(1); \
565 if
[ "$(NGINX)" = "y" ]; then \
566 sed
-i
"/TCONFIG_NGINX/d" $(1); \
567 echo
"TCONFIG_NGINX=y" >>$(1); \
569 if
[ "$(OPENVPN)" = "y" ]; then \
570 sed
-i
"/TCONFIG_LZO/d" $(1); \
571 echo
"TCONFIG_LZO=y" >>$(1); \
572 sed
-i
"/TCONFIG_OPENVPN/d" $(1); \
573 echo
"TCONFIG_OPENVPN=y" >>$(1); \
574 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
575 sed
-i
"/TCONFIG_FTP_SSL/d" $(1); \
576 echo
"TCONFIG_FTP_SSL=y" >>$(1); \
579 if
[ "$(PPTPD)" = "y" ]; then \
580 sed
-i
"/TCONFIG_PPTPD/d" $(1); \
581 echo
"TCONFIG_PPTPD=y" >>$(1); \
583 if
[ "$(BTCLIENT)" = "y" ]; then \
584 sed
-i
"/TCONFIG_BT/d" $(1); \
585 echo
"TCONFIG_BT=y" >>$(1); \
586 sed
-i
"/TCONFIG_BBT/d" $(1); \
587 echo
"TCONFIG_BBT=y" >>$(1); \
589 if
[ "$(BTGUI)" = "y" ]; then \
590 sed
-i
"/TCONFIG_BT/d" $(1); \
591 echo
"TCONFIG_BT=y" >>$(1); \
593 if
[ "$(TR_EXTRAS)" = "y" ]; then \
594 sed
-i
"/TCONFIG_TR_EXTRAS/d" $(1); \
595 echo
"TCONFIG_TR_EXTRAS=y" >>$(1); \
597 if
[ "$(NFS)" = "y" ]; then \
598 sed
-i
"/TCONFIG_NFS/d" $(1); \
599 echo
"TCONFIG_NFS=y" >>$(1); \
601 if
[ "$(SNMP)" = "y" ]; then \
602 sed
-i
"/TCONFIG_SNMP/d" $(1); \
603 echo
"TCONFIG_SNMP=y" >>$(1); \
605 if
[ "$(SDHC)" = "y" ]; then \
606 sed
-i
"/TCONFIG_SDHC/d" $(1); \
607 echo
"TCONFIG_SDHC=y" >>$(1); \
609 if
[ "$(DNSSEC)" = "y" ]; then \
610 sed
-i
"/TCONFIG_DNSSEC/d" $(1); \
611 echo
"TCONFIG_DNSSEC=y" >>$(1); \
613 if
[ "$(HFS)" = "y" ]; then \
614 sed
-i
"/TCONFIG_HFS/d" $(1); \
615 echo
"TCONFIG_HFS=y" >>$(1); \
617 if
[ "$(UPS)" = "y" ]; then \
618 sed
-i
"/TCONFIG_UPS/d" $(1); \
619 echo
"TCONFIG_UPS=y" >>$(1); \
621 if
[ "$(NANO)" = "y" ]; then \
622 sed
-i
"/TCONFIG_NANO/d" $(1); \
623 echo
"TCONFIG_NANO=y" >>$(1); \
625 if
[ "$(DNSCRYPT)" = "y" ]; then \
626 sed
-i
"/TCONFIG_DNSCRYPT/d" $(1); \
627 echo
"TCONFIG_DNSCRYPT=y" >>$(1); \
629 if
[ "$(NVRAM_64K)" = "y" ]; then \
630 sed
-i
"/TCONFIG_NVRAM_64K/d" $(1); \
631 echo
"TCONFIG_NVRAM_64K=y" >>$(1); \
633 if
[ "$(TOR)" = "y" ]; then \
634 sed
-i
"/TCONFIG_TOR/d" $(1); \
635 echo
"TCONFIG_TOR=y" >>$(1); \
637 if
[ "$(MICROSD)" = "y" ]; then \
638 sed
-i
"/TCONFIG_MICROSD/d" $(1); \
639 echo
"TCONFIG_MICROSD=y" >>$(1); \
641 if
[ "$(USBAP)" = "y" ]; then \
642 sed
-i
"/TCONFIG_USBAP/d" $(1); \
643 echo
"TCONFIG_USBAP=y" >>$(1); \
644 if
[ "$(NO_USBAPP)" = "y" ]; then \
645 sed
-i
"/TCONFIG_REMOVE_USBAPP/d" $(1); \
646 echo
"TCONFIG_REMOVE_USBAPP=y" >>$(1); \
647 sed
-i
"/TCONFIG_FTP/d" $(1); \
648 echo
"# TCONFIG_FTP is not set" >>$(1); \
649 echo
"# TCONFIG_FTP_SSL is not set" >>$(1); \
650 sed
-i
"/TCONFIG_SAMBA/d" $(1); \
651 echo
"# TCONFIG_SAMBASRV is not set" >>$(1); \
652 echo
"# TCONFIG_SAMBA3 is not set" >>$(1); \
655 if
[ "$(ASUS_TRX)" = "RT-AC66U" ]; then \
656 sed
-i
"/TCONFIG_AC66U/d" $(1); \
657 echo
"TCONFIG_AC66U=y" >>$(1); \
659 sed
-i
"/TCONFIG_AC66U/d" $(1); \
660 echo
"# TCONFIG_AC66U is not set" >>$(1); \
662 if
[ "$(ASUS_TRX)" = "R6300V1" ]; then \
663 sed
-i
"/TCONFIG_R6300V1/d" $(1); \
664 echo
"TCONFIG_R6300V1=y" >>$(1); \
666 if
[ "$(ASUS_TRX)" = "WNDR4500V1" ]; then \
667 sed
-i
"/TCONFIG_WNDR4500V1/d" $(1); \
668 echo
"TCONFIG_WNDR4500V1=y" >>$(1); \
670 if
[ "$(ASUS_TRX)" = "WNDR4500V2" ]; then \
671 sed
-i
"/TCONFIG_WNDR4500V2/d" $(1); \
672 echo
"TCONFIG_WNDR4500V2=y" >>$(1); \
674 if
[ "$(CTF)" = "y" ]; then \
675 sed
-i
"/TCONFIG_CTF/d" $(1); \
676 echo
"TCONFIG_CTF=y" >>$(1); \
678 if
[ "$(NAND)" = "y" ]; then \
679 sed
-i
"/TCONFIG_NAND/d" $(1); \
680 echo
"TCONFIG_NAND=y" >>$(1); \
682 if
[ "$(TINC)" = "y" ]; then \
683 sed
-i
"/TCONFIG_TINC/d" $(1); \
684 echo
"TCONFIG_TINC=y" >>$(1); \
689 define BusyboxOptions
691 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
692 sed
-i
"/CONFIG_FEATURE_2_4_MODULES/d" $(1); \
693 echo
"# CONFIG_FEATURE_2_4_MODULES is not set" >>$(1); \
694 sed
-i
"/CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT/d" $(1); \
695 echo
"CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y" >>$(1); \
696 sed
-i
"/CONFIG_FEATURE_DEVFS/d" $(1); \
697 echo
"# CONFIG_FEATURE_DEVFS is not set" >>$(1); \
698 sed
-i
"/CONFIG_MKNOD/d" $(1); \
699 echo
"CONFIG_MKNOD=y" >>$(1); \
700 sed
-i
"/CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE/d" $(1); \
701 echo
"CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=512" >>$(1); \
703 sed
-i
"/CONFIG_UDHCPC=y/d" $(1); \
704 sed
-i
"/CONFIG_UDHCPC_OLD/d" $(1); \
705 echo
"CONFIG_UDHCPC_OLD=y" >>$(1); \
706 echo
"# CONFIG_UDHCPC is not set" >>$(1); \
708 if
[ "$(NO_CIFS)" = "y" ]; then \
709 sed
-i
"/CONFIG_FEATURE_MOUNT_CIFS/d" $(1); \
710 echo
"# CONFIG_FEATURE_MOUNT_CIFS is not set" >>$(1); \
712 if
[ "$(BBEXTRAS)" = "y" ]; then \
713 sed
-i
"/CONFIG_SENDMAIL/d" $(1); \
714 echo
"CONFIG_SENDMAIL=y" >>$(1); \
715 sed
-i
"/CONFIG_WHOIS/d" $(1); \
716 echo
"CONFIG_WHOIS=y" >>$(1); \
717 sed
-i
"/CONFIG_FEATURE_SORT_BIG/d" $(1); \
718 echo
"CONFIG_FEATURE_SORT_BIG=y" >>$(1); \
719 sed
-i
"/CONFIG_CLEAR/d" $(1); \
720 echo
"CONFIG_CLEAR=y" >>$(1); \
721 sed
-i
"/CONFIG_NICE/d" $(1); \
722 echo
"CONFIG_NICE=y" >>$(1); \
723 sed
-i
"/CONFIG_SETCONSOLE/d" $(1); \
724 echo
"CONFIG_SETCONSOLE=y" >>$(1); \
725 sed
-i
"/CONFIG_MKFIFO/d" $(1); \
726 echo
"CONFIG_MKFIFO=y" >>$(1); \
727 sed
-i
"/CONFIG_SEQ/d" $(1); \
728 echo
"CONFIG_SEQ=y" >>$(1); \
729 sed
-i
"/CONFIG_STTY/d" $(1); \
730 echo
"CONFIG_STTY=y" >>$(1); \
732 if
[ "$(USB)" = "USB" ]; then \
733 if
[ "$(USBEXTRAS)" = "y" ]; then \
734 sed
-i
"/CONFIG_E2FSCK/d" $(1); \
735 echo
"CONFIG_E2FSCK=y" >>$(1); \
736 sed
-i
"/CONFIG_MKE2FS/d" $(1); \
737 echo
"CONFIG_MKE2FS=y" >>$(1); \
738 sed
-i
"/CONFIG_FDISK/d" $(1); \
739 echo
"CONFIG_FDISK=y" >>$(1); \
740 sed
-i
"/CONFIG_FEATURE_FDISK_WRITABLE/d" $(1); \
741 echo
"CONFIG_FEATURE_FDISK_WRITABLE=y" >>$(1); \
742 sed
-i
"/CONFIG_MKFS_VFAT/d" $(1); \
743 echo
"CONFIG_MKFS_VFAT=y" >>$(1); \
744 sed
-i
"/CONFIG_MKSWAP/d" $(1); \
745 echo
"CONFIG_MKSWAP=y" >>$(1); \
746 sed
-i
"/CONFIG_FLOCK/d" $(1); \
747 echo
"CONFIG_FLOCK=y" >>$(1); \
748 sed
-i
"/CONFIG_FSYNC/d" $(1); \
749 echo
"CONFIG_FSYNC=y" >>$(1); \
750 sed
-i
"/CONFIG_TUNE2FS/d" $(1); \
751 echo
"CONFIG_TUNE2FS=y" >>$(1); \
752 sed
-i
"/CONFIG_E2LABEL/d" $(1); \
753 echo
"CONFIG_E2LABEL=y" >>$(1); \
754 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
755 sed
-i
"/CONFIG_LSUSB/d" $(1); \
756 echo
"CONFIG_LSUSB=y" >>$(1); \
757 sed
-i
"/CONFIG_FEATURE_WGET_STATUSBAR/d" $(1); \
758 echo
"CONFIG_FEATURE_WGET_STATUSBAR=y" >>$(1); \
759 sed
-i
"/CONFIG_FEATURE_VERBOSE_USAGE/d" $(1); \
760 echo
"CONFIG_FEATURE_VERBOSE_USAGE=y" >>$(1); \
764 sed
-i
"/CONFIG_FEATURE_MOUNT_LOOP/d" $(1); \
765 echo
"# CONFIG_FEATURE_MOUNT_LOOP is not set" >>$(1); \
766 sed
-i
"/CONFIG_FEATURE_DEVFS/d" $(1); \
767 echo
"# CONFIG_FEATURE_DEVFS is not set" >>$(1); \
768 sed
-i
"/CONFIG_FEATURE_MOUNT_LABEL/d" $(1); \
769 echo
"# CONFIG_FEATURE_MOUNT_LABEL is not set" >>$(1); \
770 sed
-i
"/CONFIG_FEATURE_MOUNT_FSTAB/d" $(1); \
771 echo
"# CONFIG_FEATURE_MOUNT_FSTAB is not set" >>$(1); \
772 sed
-i
"/CONFIG_VOLUMEID/d" $(1); \
773 echo
"# CONFIG_VOLUMEID is not set" >>$(1); \
774 sed
-i
"/CONFIG_BLKID/d" $(1); \
775 echo
"# CONFIG_BLKID is not set" >>$(1); \
776 sed
-i
"/CONFIG_SWAPONOFF/d" $(1); \
777 echo
"# CONFIG_SWAPONOFF is not set" >>$(1); \
778 sed
-i
"/CONFIG_CHROOT/d" $(1); \
779 echo
"# CONFIG_CHROOT is not set" >>$(1); \
780 sed
-i
"/CONFIG_PIVOT_ROOT/d" $(1); \
781 echo
"# CONFIG_PIVOT_ROOT is not set" >>$(1); \
782 sed
-i
"/CONFIG_TRUE/d" $(1); \
783 echo
"# CONFIG_TRUE is not set" >>$(1); \
785 if
[ "$(IPV6SUPP)" = "y" ]; then \
786 sed
-i
"/CONFIG_FEATURE_IPV6/d" $(1); \
787 echo
"CONFIG_FEATURE_IPV6=y" >>$(1); \
788 sed
-i
"/CONFIG_PING6/d" $(1); \
789 echo
"CONFIG_PING6=y" >>$(1); \
790 sed
-i
"/CONFIG_TRACEROUTE6/d" $(1); \
791 echo
"CONFIG_TRACEROUTE6=y" >>$(1); \
792 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
793 sed
-i
"/CONFIG_FEATURE_UDHCP_RFC5969/d" $(1); \
794 echo
"CONFIG_FEATURE_UDHCP_RFC5969=y" >>$(1); \
797 if
[ "$(SLIM)" = "y" ]; then \
798 sed
-i
"/CONFIG_AWK/d" $(1); \
799 echo
"# CONFIG_AWK is not set" >>$(1); \
800 sed
-i
"/CONFIG_BASENAME/d" $(1); \
801 echo
"# CONFIG_BASENAME is not set" >>$(1); \
802 sed
-i
"/CONFIG_FEATURE_DEVFS/d" $(1); \
803 echo
"# CONFIG_FEATURE_DEVFS is not set" >>$(1); \
804 sed
-i
"/CONFIG_BLKID/d" $(1); \
805 echo
"# CONFIG_BLKID is not set" >>$(1); \
806 sed
-i
"/CONFIG_TELNET=y/d" $(1); \
807 echo
"# CONFIG_TELNET is not set" >>$(1); \
808 sed
-i
"/CONFIG_ARPING/d" $(1); \
809 echo
"# CONFIG_ARPING is not set" >>$(1); \
810 sed
-i
"/CONFIG_FEATURE_LS_COLOR/d" $(1); \
811 echo
"# CONFIG_FEATURE_LS_COLOR is not set" >>$(1); \
812 sed
-i
"/CONFIG_CHOWN/d" $(1); \
813 echo
"# CONFIG_CHOWN is not set" >>$(1); \
815 sed
-i
"/CONFIG_FEATURE_LS_COLOR/d" $(1); \
816 echo
"CONFIG_FEATURE_LS_COLOR=y" >>$(1); \
817 sed
-i
"/CONFIG_FEATURE_LS_COLOR_IS_DEFAULT/d" $(1); \
818 echo
"CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y" >>$(1); \
825 sed
-i
"/CONFIG_NVRAM_SIZE/d" $(1); \
826 echo
"CONFIG_NVRAM_SIZE="$(NVRAM_SIZE
) >>$(1); \
827 sed
-i
"/CONFIG_CC_OPTIMIZE_FOR_SIZE/d" $(1); \
828 if
[ "$(KERN_SIZE_OPT)" = "y" ]; then \
829 echo
"CONFIG_CC_OPTIMIZE_FOR_SIZE=y" >>$(1); \
831 echo
"# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set" >>$(1); \
833 if
[ "$(CONFIG_LINUX26)" = "y" ] && [ "$(MIPS32)" = "r2" ]; then \
834 sed
-i
"/CONFIG_CPU_MIPS32_R1/d" $(1); \
835 echo
"# CONFIG_CPU_MIPS32_R1 is not set" >>$(1); \
836 sed
-i
"/CONFIG_CPU_MIPS32_R2/d" $(1); \
837 echo
"CONFIG_CPU_MIPS32_R2=y" >>$(1); \
838 sed
-i
"/CONFIG_CPU_MIPSR1/d" $(1); \
839 echo
"CONFIG_CPU_MIPSR2=y" >>$(1); \
840 if
[ "$(NAND)" = "y" ]; then \
841 sed
-i
"/CONFIG_MTD_NFLASH/d" $(1); \
842 echo
"CONFIG_MTD_NFLASH=y" >>$(1); \
843 sed
-i
"/CONFIG_MTD_NAND/d" $(1); \
844 echo
"CONFIG_MTD_NAND=y" >>$(1); \
845 echo
"CONFIG_MTD_NAND_IDS=y" >>$(1); \
846 echo
"# CONFIG_MTD_NAND_VERIFY_WRITE is not set" >>$(1); \
847 echo
"# CONFIG_MTD_NAND_ECC_SMC is not set" >>$(1); \
848 echo
"# CONFIG_MTD_NAND_MUSEUM_IDS is not set" >>$(1); \
849 echo
"# CONFIG_MTD_NAND_DISKONCHIP is not set" >>$(1); \
850 echo
"# CONFIG_MTD_NAND_CAFE is not set" >>$(1); \
851 echo
"# CONFIG_MTD_NAND_NANDSIM is not set" >>$(1); \
852 echo
"# CONFIG_MTD_NAND_PLATFORM is not set" >>$(1); \
853 echo
"# CONFIG_MTD_NAND_ONENAND is not set" >>$(1); \
854 sed
-i
"/CONFIG_MTD_BRCMNAND/d" $(1); \
855 echo
"CONFIG_MTD_BRCMNAND=y" >>$(1); \
857 if
[ "$(WNR3500LV2)" = "1" ]; then \
858 sed
-i
"/CONFIG_MTD_NFLASH/d" $(1); \
859 echo
"CONFIG_MTD_NFLASH=y" >>$(1); \
862 if
[ "$(UPS)" = "y" ]; then \
863 sed
-i
"/CONFIG_INPUT=m/d" $(1); \
864 echo
"CONFIG_INPUT=y" >>$(1); \
865 sed
-i
"/CONFIG_USB=m/d" $(1); \
866 echo
"CONFIG_USB=y" >>$(1); \
867 sed
-i
"/CONFIG_HID=m/d" $(1); \
868 echo
"CONFIG_HID=y" >>$(1); \
869 sed
-i
"/CONFIG_USB_HID=m/d" $(1); \
870 echo
"CONFIG_USB_HID=y" >>$(1); \
871 sed
-i
"/CONFIG_USB_HIDDEV=m/d" $(1); \
872 echo
"CONFIG_USB_HIDDEV=y" >>$(1); \
873 sed
-i
"/CONFIG_USB_DEVICEFS=m/d" $(1); \
874 echo
"CONFIG_USB_DEVICEFS=y" >>$(1); \
876 if
[ "$(USB)" = "" ]; then \
877 sed
-i
"/CONFIG_EFI_PARTITION/d" $(1); \
878 echo
"# CONFIG_EFI_PARTITION is not set" >>$(1); \
880 if
[ "$(IPV6SUPP)" = "y" ]; then \
881 sed
-i
"/CONFIG_IPV6 is not set/d" $(1); \
882 echo
"CONFIG_IPV6=y" >>$(1); \
883 sed
-i
"/CONFIG_IP6_NF_IPTABLES/d" $(1); \
884 echo
"CONFIG_IP6_NF_IPTABLES=y" >>$(1); \
885 sed
-i
"/CONFIG_IP6_NF_MATCH_RT/d" $(1); \
886 echo
"CONFIG_IP6_NF_MATCH_RT=y" >>$(1); \
887 sed
-i
"/CONFIG_IP6_NF_FILTER/d" $(1); \
888 echo
"CONFIG_IP6_NF_FILTER=m" >>$(1); \
889 sed
-i
"/CONFIG_IP6_NF_TARGET_LOG/d" $(1); \
890 echo
"CONFIG_IP6_NF_TARGET_LOG=m" >>$(1); \
891 sed
-i
"/CONFIG_IP6_NF_TARGET_REJECT/d" $(1); \
892 echo
"CONFIG_IP6_NF_TARGET_REJECT=m" >>$(1); \
893 sed
-i
"/CONFIG_IP6_NF_MANGLE/d" $(1); \
894 echo
"CONFIG_IP6_NF_MANGLE=m" >>$(1); \
895 if
[ "$(CONFIG_LINUX26)" = "y" ]; then \
896 sed
-i
"/CONFIG_NF_CONNTRACK_IPV6/d" $(1); \
897 echo
"CONFIG_NF_CONNTRACK_IPV6=m" >>$(1); \
898 sed
-i
"/CONFIG_NETFILTER_XT_MATCH_HL/d" $(1); \
899 echo
"CONFIG_NETFILTER_XT_MATCH_HL=m" >>$(1); \
900 sed
-i
"/CONFIG_IPV6_ROUTER_PREF/d" $(1); \
901 echo
"CONFIG_IPV6_ROUTER_PREF=y" >>$(1); \
902 sed
-i
"/CONFIG_IPV6_SIT/d" $(1); \
903 echo
"CONFIG_IPV6_SIT=m" >>$(1); \
904 sed
-i
"/CONFIG_IPV6_SIT_6RD/d" $(1); \
905 echo
"CONFIG_IPV6_SIT_6RD=y" >>$(1); \
906 sed
-i
"/CONFIG_IPV6_MULTIPLE_TABLES/d" $(1); \
907 echo
"CONFIG_IPV6_MULTIPLE_TABLES=y" >>$(1); \
908 sed
-i
"/CONFIG_IP6_NF_RAW/d" $(1); \
909 echo
"CONFIG_IP6_NF_RAW=m" >>$(1); \
910 sed
-i
"/CONFIG_IPV6_OPTIMISTIC_DAD/d" $(1); \
911 echo
"CONFIG_IPV6_OPTIMISTIC_DAD=y" >>$(1); \
912 sed
-i
"/CONFIG_IPV6_MROUTE/d" $(1); \
913 echo
"CONFIG_IPV6_MROUTE=y" >>$(1); \
914 sed
-i
"/CONFIG_IP6_NF_TARGET_ROUTE/d" $(1); \
915 echo
"CONFIG_IP6_NF_TARGET_ROUTE=m" >>$(1); \
916 sed
-i
"/CONFIG_INET6_XFRM_TUNNEL/d" $(1); \
917 echo
"CONFIG_INET6_XFRM_TUNNEL=m" >>$(1); \
918 sed
-i
"/CONFIG_INET6_AH/d" $(1); \
919 echo
"CONFIG_INET6_AH=m" >>$(1); \
920 sed
-i
"/CONFIG_INET6_ESP/d" $(1); \
921 echo
"CONFIG_INET6_ESP=m" >>$(1); \
922 sed
-i
"/CONFIG_INET6_IPCOMP/d" $(1); \
923 echo
"CONFIG_INET6_IPCOMP=m" >>$(1); \
924 sed
-i
"/CONFIG_INET6_XFRM_MODE_TRANSPORT/d" $(1); \
925 echo
"CONFIG_INET6_XFRM_MODE_TRANSPORT=m" >>$(1); \
926 sed
-i
"/CONFIG_INET6_XFRM_MODE_TUNNEL/d" $(1); \
927 echo
"CONFIG_INET6_XFRM_MODE_TUNNEL=m" >>$(1); \
928 sed
-i
"/CONFIG_INET6_XFRM_MODE_BEET/d" $(1); \
929 echo
"CONFIG_INET6_XFRM_MODE_BEET=m" >>$(1); \
931 sed
-i
"/CONFIG_IP6_NF_CONNTRACK/d" $(1); \
932 echo
"CONFIG_IP6_NF_CONNTRACK=m" >>$(1); \
933 sed
-i
"/CONFIG_IP6_NF_MATCH_HL/d" $(1); \
934 echo
"CONFIG_IP6_NF_MATCH_HL=m" >>$(1); \
935 sed
-i
"/CONFIG_IP6_NF_FTP/d" $(1); \
936 echo
"CONFIG_IP6_NF_FTP=m" >>$(1); \
937 sed
-i
"/CONFIG_IP6_NF_MATCH_LIMIT/d" $(1); \
938 echo
"CONFIG_IP6_NF_MATCH_LIMIT=m" >>$(1); \
939 sed
-i
"/CONFIG_IP6_NF_MATCH_CONDITION/d" $(1); \
940 echo
"CONFIG_IP6_NF_MATCH_CONDITION=m" >>$(1); \
941 sed
-i
"/CONFIG_IP6_NF_MATCH_MAC/d" $(1); \
942 echo
"CONFIG_IP6_NF_MATCH_MAC=m" >>$(1); \
943 sed
-i
"/CONFIG_IP6_NF_MATCH_MULTIPORT/d" $(1); \
944 echo
"CONFIG_IP6_NF_MATCH_MULTIPORT=m" >>$(1); \
945 sed
-i
"/CONFIG_IP6_NF_MATCH_MARK/d" $(1); \
946 echo
"CONFIG_IP6_NF_MATCH_MARK=m" >>$(1); \
947 sed
-i
"/CONFIG_IP6_NF_MATCH_LENGTH/d" $(1); \
948 echo
"CONFIG_IP6_NF_MATCH_LENGTH=m" >>$(1); \
949 sed
-i
"/CONFIG_IP6_NF_MATCH_STATE/d" $(1); \
950 echo
"CONFIG_IP6_NF_MATCH_STATE=m" >>$(1); \
951 sed
-i
"/CONFIG_IP6_NF_TARGET_MARK/d" $(1); \
952 echo
"CONFIG_IP6_NF_TARGET_MARK=m" >>$(1); \
953 sed
-i
"/CONFIG_IP6_NF_TARGET_TCPMSS/d" $(1); \
954 echo
"CONFIG_IP6_NF_TARGET_TCPMSS=m" >>$(1); \
955 sed
-i
"/CONFIG_IP6_NF_TARGET_ROUTE/d" $(1); \
956 echo
"CONFIG_IP6_NF_TARGET_ROUTE=m" >>$(1); \
959 sed
-i
"/CONFIG_BCM57XX/d" $(1); \
960 if
[ "$(BCM57)" = "y" ]; then \
961 echo
"CONFIG_BCM57XX=m" >>$(1); \
963 echo
"# CONFIG_BCM57XX is not set" >>$(1); \
965 if
[ "$(USBAP)" = "y" ]; then \
966 echo
"CONFIG_WL_USBAP=y" >>$(1); \
967 echo
'CONFIG_WL_APSTA="wlconfig_lx_router_high"' >>$(1); \
969 echo
"# CONFIG_WL_USBAP is not set" >>$(1); \
970 echo
'CONFIG_WL_APSTA="wlconfig_lx_router_apsta"' >>$(1); \
972 if
[ "$(CONFIG_LINUX26)" = "y" ] && [ "$(EBTABLES)" = "y" ]; then \
973 sed
-i
"/CONFIG_BRIDGE_NF_EBTABLES/d" $(1); \
974 echo
"CONFIG_BRIDGE_NF_EBTABLES=m" >>$(1); \
975 if
[ "$(IPV6SUPP)" = "y" ]; then \
976 sed
-i
"/CONFIG_BRIDGE_EBT_IP6/d" $(1); \
977 echo
"CONFIG_BRIDGE_EBT_IP6=m" >>$(1); \
980 sed
-i
"/CONFIG_NVRAM_64K/d" $(1); \
981 if
[ "$(NVRAM_64K)" = "y" ]; then \
982 echo
"CONFIG_NVRAM_64K=y" >>$(1); \
984 echo
"# CONFIG_NVRAM_64K is not set" >>$(1); \
992 @echo
$@
" is not a valid target!"
995 @cp router
/config_base router
/config_
$(lowercase_B
)
996 @cp router
/busybox
/config_base router
/busybox
/config_
$(lowercase_B
)
997 @cp
$(LINUXDIR
)/config_base
$(LINUXDIR
)/config_
$(lowercase_B
)
999 $(call RouterOptions
, router
/config_
$(lowercase_B
))
1000 $(call KernelConfig
, $(LINUXDIR
)/config_
$(lowercase_B
))
1001 $(call BusyboxOptions
, router
/busybox
/config_
$(lowercase_B
))
1003 @
$(MAKE
) setprofile N
=$(TPROFILE
) B
=$(B
) DESC
="$(BUILD_DESC)" USB
="$(USB)"
1006 ## mini-USB - K24 only
1008 ifneq ($(CONFIG_LINUX26
),y
)
1009 @
$(MAKE
) bin BBEXTRAS
=y USBEXTRAS
=y B
=E BUILD_DESC
="mini-USB" USB
="USB"
1014 ifeq ($(CONFIG_LINUX26
),y
)
1015 @
$(MAKE
) bin OPENVPN
=y NTFS
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=E BUILD_DESC
="$(VPN)" USB
="USB" DNSCRYPT
=y PPTPD
=y
1017 @
$(MAKE
) bin OPENVPN
=y NTFS
=y BBEXTRAS
=y USBEXTRAS
=y B
=E BUILD_DESC
="$(VPN)" USB
="USB" DNSCRYPT
=y PPTPD
=y
1022 ifeq ($(CONFIG_LINUX26
),y
)
1023 @
$(MAKE
) bin NTFS
=y OPENVPN
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=M BUILD_DESC
="BTgui-VPN" USB
="USB" BTGUI
=y NO_JFFS
=y PPTPD
=y
1025 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y B
=M BUILD_DESC
="BTgui" USB
="USB" BTGUI
=y DNSCRYPT
=y PPTPD
=y
1030 ifeq ($(CONFIG_LINUX26
),y
)
1031 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=M BUILD_DESC
="Nocat-VPN" USB
="USB" BTGUI
=y NOCAT
=y OPENVPN
=y DNSCRYPT
=y PPTPD
=y
1033 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y B
=M BUILD_DESC
="Nocat-VPN" USB
="USB" BTGUI
=y NOCAT
=y OPENVPN
=y DNSCRYPT
=y PPTPD
=y
1038 ifeq ($(CONFIG_LINUX26
),y
)
1039 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=M BUILD_DESC
="Tor-VPN" USB
="USB" BTGUI
=y TOR
=y OPENVPN
=y PPTPD
=y NO_CIFS
=y NO_JFFS
=y
1041 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y B
=M BUILD_DESC
="Tor-VPN" USB
="USB" BTGUI
=y TOR
=y OPENVPN
=y PPTPD
=y NO_CIFS
=y NO_JFFS
=y
1046 ifeq ($(CONFIG_LINUX26
),y
)
1047 @
$(MAKE
) bin NTFS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=M BUILD_DESC
="BT" USB
="USB" BTCLIENT
=y
1049 @
$(MAKE
) bin NTFS
=y USBEXTRAS
=y B
=M BUILD_DESC
="BT" USB
="USB" BTCLIENT
=y
1054 ifeq ($(CONFIG_LINUX26
),y
)
1055 @
$(MAKE
) bin OPENVPN
=y NTFS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=M BUILD_DESC
="BT-VPN" USB
="USB" BTCLIENT
=y NO_JFFS
=y PPTPD
=y
1057 @
$(MAKE
) bin OPENVPN
=y NTFS
=y USBEXTRAS
=y B
=M BUILD_DESC
="BT-VPN" USB
="USB" BTCLIENT
=y NO_JFFS
=y PPTPD
=y
1062 ifeq ($(CONFIG_LINUX26
),y
)
1063 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=M BUILD_DESC
="Big-VPN" USB
="USB" BTGUI
=y NFS
=y NOCAT
=y OPENVPN
=y DNSCRYPT
=y PPTPD
=y NO_JFFS
=y NO_CIFS
=y
1065 @
$(MAKE
) bin NTFS
=y BBEXTRAS
=y USBEXTRAS
=y B
=M BUILD_DESC
="Big-VPN" USB
="USB" BTGUI
=y NOCAT
=y NFS
=y OPENVPN
=y DNSCRYPT
=y PPTPD
=y NO_JJFS
=y NO_CIFS
=y
1070 ifeq ($(CONFIG_LINUX26
),y
)
1071 @
$(MAKE
) bin OPENVPN
=y NTFS
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=E BUILD_DESC
="Mega-VPN" USB
="USB" NOCAT
=y BTCLIENT
=y DNSCRYPT
=y SNMP
=y UPS
=y PPTPD
=y TR_EXTRAS
=y TOR
=y IPSEC
=y RAID
=y DNSSEC
=y TINC
=y NANO
=y
1073 ## All-In-One (AIO) MIPS1 - only for router with more than 8MB flash!! ZTE H618B
1075 @
$(MAKE
) bin OPENVPN
=y NTFS
=y BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y MEDIASRV
=y IPV6SUPP
=y B
=E BUILD_DESC
="AIO" USB
="USB" NOCAT
=y BTCLIENT
=y TR_EXTRAS
=y NFS
=y SNMP
=y HFS
=y DNSCRYPT
=y UPS
=y PPTPD
=y TOR
=y IPSEC
=y RAID
=y NGINX
=y DNSSEC
=y TINC
=y NANO
=y
1078 #################################
1080 ifeq ($(CONFIG_LINUX26
),y
)
1082 ## Mini - targeted for Netgear routers
1084 @
$(MAKE
) bin NO_JFFS
=y NO_CIFS
=y NO_ZEBRA
=y B
=F BUILD_DESC
="Mini" USB
=""
1086 ## MiniIPv6 - for 4MB routers
1088 @
$(MAKE
) bin NO_JFFS
=y NO_CIFS
=y NO_ZEBRA
=y IPV6SUPP
=y B
=I BUILD_DESC
="MiniIPv6" USB
="" NO_HTTPS
=y
1090 ## MiniVPN - for 4MB routers
1092 @
$(MAKE
) bin NO_JFFS
=y NO_CIFS
=y NO_ZEBRA
=y B
=V BUILD_DESC
="MiniVPN" USB
="" PPTPD
=y OPENVPN
=y
1095 ## VPN with no USB support (IPv6 in K26 build)
1097 ifeq ($(CONFIG_LINUX26
),y
)
1098 @
$(MAKE
) bin OPENVPN
=y NO_JFFS
=y B
=V BUILD_DESC
="IPv6-$(VPN)" USB
="" PPTPD
=y IPV6SUPP
=y
1100 @
$(MAKE
) bin OPENVPN
=y BBEXTRAS
=y BCM57
=y B
=V BUILD_DESC
="$(VPN)" USB
="" PPTPD
=y
1103 ## Max build for router with 8MB flash without USB Support
1105 ifeq ($(CONFIG_LINUX26
),y
)
1106 @
$(MAKE
) bin OPENVPN
=y BBEXTRAS
=y EBTABLES
=y IPV6SUPP
=y B
=E BUILD_DESC
="Max" USB
="" NOCAT
=y NFS
=y SNMP
=y DNSCRYPT
=y PPTPD
=y TOR
=y IPSEC
=y
1109 ## SD-VPN - Only k24
1111 ifneq ($(CONFIG_LINUX26
),y
)
1112 @
$(MAKE
) bin OPENVPN
=y BBEXTRAS
=y BCM57
=y B
=V BUILD_DESC
="SD-VPN" USB
="" SDHC
=y DNSCRYPT
=y PPTPD
=y
1116 ## Make Mips32r2 builds ##
1117 ifeq ($(CONFIG_LINUX26
),y
)
1119 #AIO MIPS2 for RT-N16 and E4200
1121 @
$(MAKE
) z MIPS32
=r2
1124 @
$(MAKE
) e MIPS32
=r2
1127 @
$(MAKE
) c MIPS32
=r2
1130 @
$(MAKE
) u MIPS32
=r2
1133 @
$(MAKE
) t MIPS32
=r2
1136 @
$(MAKE
) d MIPS32
=r2
1139 @
$(MAKE
) g MIPS32
=r2
1142 @
$(MAKE
) b MIPS32
=r2
1145 @
$(MAKE
) o MIPS32
=r2
1148 @
$(MAKE
) f MIPS32
=r2 BELKIN
=y
1151 @
$(MAKE
) i MIPS32
=r2
1154 @
$(MAKE
) j MIPS32
=r2
1157 @
$(MAKE
) v MIPS32
=r2
1160 @
$(MAKE
) m MIPS32
=r2
1162 #Linksys E-series witk 60K NVRAM builds
1164 @
$(MAKE
) r2z NVRAM_SIZE
=60 LINKSYS_E
=y
1167 @
$(MAKE
) r2e NVRAM_SIZE
=60 LINKSYS_E
=y
1170 @
$(MAKE
) r2c NVRAM_SIZE
=60 LINKSYS_E
=y
1173 @
$(MAKE
) r2u NVRAM_SIZE
=60 LINKSYS_E
=y
1176 @
$(MAKE
) r2t NVRAM_SIZE
=60 LINKSYS_E
=y
1179 @
$(MAKE
) r2b NVRAM_SIZE
=60 LINKSYS_E
=y
1182 @
$(MAKE
) r2d NVRAM_SIZE
=60 LINKSYS_E
=y
1185 @
$(MAKE
) r2g NVRAM_SIZE
=60 LINKSYS_E
=y
1188 @
$(MAKE
) r2o NVRAM_SIZE
=60 LINKSYS_E
=y
1191 @
$(MAKE
) r2i NVRAM_SIZE
=60 LINKSYS_E
=y
1194 @
$(MAKE
) r2j NVRAM_SIZE
=60 LINKSYS_E
=y
1197 @
$(MAKE
) r2v NVRAM_SIZE
=60 LINKSYS_E
=y
1200 @
$(MAKE
) r2m NVRAM_SIZE
=60 LINKSYS_E
=y
1202 #Linksys E-Series with 64K Nvram Builds
1205 @
$(MAKE
) r2z NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1208 @
$(MAKE
) r2e NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1211 @
$(MAKE
) r2c NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1214 @
$(MAKE
) r2u NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1217 @
$(MAKE
) r2t NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1220 @
$(MAKE
) r2b NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1223 @
$(MAKE
) r2d NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1226 @
$(MAKE
) r2g NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1229 @
$(MAKE
) r2o NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1232 @
$(MAKE
) r2v NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1235 @
$(MAKE
) r2m NVRAM_SIZE
=64 LINKSYS_E_64k
=y
1238 #Linksys E-Series with 4MB Flash (Max Flashsize=3866624)
1241 @
$(MAKE
) bin MIPS32
=r2 NVRAM_SIZE
=32 LINKSYS_E1000v2
=y NO_JFFS
=y NO_ZEBRA
=y B
=F BUILD_DESC
="Mini" USB
="" NO_HTTPS
=y KERN_SIZE_OPT
=y
1244 @
$(MAKE
) bin MIPS32
=r2 NVRAM_SIZE
=32 LINKSYS_E1000v2
=y NO_JFFS
=y NO_CIFS
=y NO_ZEBRA
=y IPV6SUPP
=y B
=I USB
="" NO_HTTPS
=y KERN_SIZE_OPT
=y BUILD_DESC
="MiniIPv6"
1247 @
$(MAKE
) bin MIPS32
=r2 NVRAM_SIZE
=64 LINKSYS_E1200v1
=y NO_JFFS
=y NO_ZEBRA
=y B
=F BUILD_DESC
="Mini" USB
="" NO_HTTPS
=y KERN_SIZE_OPT
=y
1250 @
$(MAKE
) bin MIPS32
=r2 NVRAM_SIZE
=64 LINKSYS_E1200v1
=y NO_JFFS
=y NO_CIFS
=y NO_ZEBRA
=y IPV6SUPP
=y B
=I USB
="" NO_HTTPS
=y KERN_SIZE_OPT
=y BUILD_DESC
="MiniIPv6"
1252 #Builds for WNR3500L v2
1254 @
$(MAKE
) z MIPS32
=r2 WNR3500LV2
=1 NO_JFFS
=y
1257 @
$(MAKE
) e MIPS32
=r2 WNR3500LV2
=1 NO_JFFS
=y
1259 #Builds with wl_high module
1261 @
$(MAKE
) bin MIPS32
=r2 OPENVPN
=y BBEXTRAS
=y EBTABLES
=y NO_LIBOPT
=y IPV6SUPP
=y B
=E BUILD_DESC
="RT-N53" USB
="USB" SNMP
=y DNSCRYPT
=y PPTPD
=y TOR
=y NOCAT
=y USBAP
=y NO_USBAPP
=y
1264 @
$(MAKE
) bin MIPS32
=r2 OPENVPN
=y BBEXTRAS
=y EBTABLES
=y NO_LIBOPT
=y IPV6SUPP
=y B
=E BUILD_DESC
="Max" USB
="USB" SNMP
=y DNSCRYPT
=y PPTPD
=y TOR
=y NOCAT
=y USBAP
=y NO_USBAPP
=y NVRAM_SIZE
=60 LINKSYS_E2500
=y
1267 @
$(MAKE
) r2o USBAP
=y NVRAM_SIZE
=60 LINKSYS_E3200
=y
1270 @
$(MAKE
) bin MIPS32
=r2 BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y IPV6SUPP
=y B
=E BUILD_DESC
="MiniIPv6" USB
="USB" NTFS
=y MEDIASRV
=y USBAP
=y NVRAM_SIZE
=64 WNDR
=y NO_XXTP
=y NO_JFFS
=y NO_HTTPS
=y NO_ZEBRA
=y NO_CIFS
=y KERN_SIZE_OPT
=y
1273 @
$(MAKE
) bin MIPS32
=r2 OPENVPN
=y BBEXTRAS
=y EBTABLES
=y IPV6SUPP
=y B
=E BUILD_DESC
="TendaN6" USB
="USB" TOR
=y NOCAT
=y DNSCRYPT
=y PPTPD
=y USBAP
=y NO_USBAPP
=y
1276 @
$(MAKE
) bin MIPS32
=r2 BBEXTRAS
=y USBEXTRAS
=y EBTABLES
=y IPV6SUPP
=y B
=E BUILD_DESC
="TendaN60" USB
="USB" NO_JFFS
=y NTFS
=y MEDIASRV
=y USBAP
=y
1279 @
$(MAKE
) bin MIPS32
=r2 B
=E BUILD_DESC
="TendaN60-init" USB
="" NO_JFFS
=y NO_CIFS
=y NO_HTTPS
=y NO_XXTP
=y NO_ZEBRA
=y NO_SSH
=y
1281 # it`s not possible to flash tomato on this router. Maybe in the future.
1283 # @$(MAKE) bin MIPS32=r2 OPENVPN=y BBEXTRAS=y EBTABLES=y NO_LIBOPT=y IPV6SUPP=y B=E BUILD_DESC="L600N" USB="USB" SNMP=y DNSCRYPT=y PPTPD=y TOR=y NOCAT=y USBAP=y
1285 #Builds for Asus RT-N66u with 64k NVRAM support
1286 ifeq ($(CONFIG_BCMWL6
),y
)
1288 @
$(MAKE
) z MIPS32
=r2 NVRAM_64K
=y MICROSD
=y ASUS_TRX
="RT-N66U" UFSD
=y
1291 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y MICROSD
=y ASUS_TRX
="RT-N66U" UFSD
=y
1294 @
$(MAKE
) z MIPS32
=r2 NVRAM_64K
=y MICROSD
=y
1297 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y MICROSD
=y
1300 ifeq ($(CONFIG_BCMWL6
),y
)
1302 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="RT-AC66U" UFSD
=y
1305 @
$(MAKE
) z MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="RT-AC66U" UFSD
=y
1308 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y ASUS_TRX
="W1800R"
1311 @
$(MAKE
) o MIPS32
=r2 NVRAM_64K
=y ASUS_TRX
="W1800R"
1314 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="R6300V1"
1317 @
$(MAKE
) z MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="R6300V1"
1320 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="WNDR4500V1"
1323 @
$(MAKE
) z MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="WNDR4500V1"
1326 @
$(MAKE
) e MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="WNDR4500V2"
1329 @
$(MAKE
) z MIPS32
=r2 NVRAM_64K
=y NAND
=y ASUS_TRX
="WNDR4500V2"
1332 @
$(MAKE
) o MIPS32
=r2 NVRAM_64K
=y ASUS_TRX
="TDN80"
1335 # @$(MAKE) e MIPS32=r2 NVRAM_64K=y ASUS_TRX="dir865l" //DIR-865 CFE seems not to support 64K nvram
1336 @
$(MAKE
) e MIPS32
=r2 NVRAM_SIZE
=32 ASUS_TRX
="dir865l"
1339 # @$(MAKE) z MIPS32=r2 NVRAM_64K=y ASUS_TRX="dir865l" //DIR-865 CFE seems not to support 64K nvram
1340 @
$(MAKE
) z MIPS32
=r2 NVRAM_SIZE
=32 ASUS_TRX
="dir865l"
1343 # @$(MAKE) e MIPS32=r2 NVRAM_64K=y NAND=y ASUS_TRX="D1800H"
1346 # @$(MAKE) z MIPS32=r2 NVRAM_64K=y NAND=y ASUS_TRX="D1800H"
1349 # @$(MAKE) e MIPS32=r2 NVRAM_64K=y NAND=y ASUS_TRX="EA6500V1"
1352 # @$(MAKE) z MIPS32=r2 NVRAM_64K=y NAND=y ASUS_TRX="EA6500V1"
1355 # end of CONFIG_LINUX26
1359 echo
'#ifndef TOMATO_PROFILE' > router
/shared
/tomato_profile.h
1360 echo
'#define TOMATO_$(N) 1' >> router
/shared
/tomato_profile.h
1361 echo
'#define PROFILE_G 1' >> router
/shared
/tomato_profile.h
1362 echo
'#define PROFILE_N 2' >> router
/shared
/tomato_profile.h
1363 echo
'#define TOMATO_PROFILE PROFILE_$(N)' >> router
/shared
/tomato_profile.h
1364 echo
'#define TOMATO_PROFILE_NAME "$(N)"' >> router
/shared
/tomato_profile.h
1365 echo
'#define TOMATO_BUILD_NAME "$(B)"' >> router
/shared
/tomato_profile.h
1366 echo
'#define TOMATO_BUILD_DESC "$(DESC)$(EXTRA_64KDESC)"' >> router
/shared
/tomato_profile.h
1367 echo
'#ifndef CONFIG_NVRAM_SIZE' >> router
/shared
/tomato_profile.h
1368 echo
'#define CONFIG_NVRAM_SIZE $(NVRAM_SIZE)' >> router
/shared
/tomato_profile.h
1369 echo
'#endif' >> router
/shared
/tomato_profile.h
1370 echo
'#endif' >> router
/shared
/tomato_profile.h
1372 echo
'TOMATO_$(N) = 1' > tomato_profile.mak
1373 echo
'PROFILE_G = 1' >> tomato_profile.mak
1374 echo
'PROFILE_N = 2' >> tomato_profile.mak
1375 echo
'TOMATO_PROFILE = $$(PROFILE_$(N))' >> tomato_profile.mak
1376 echo
'TOMATO_PROFILE_NAME = "$(N)"' >> tomato_profile.mak
1377 echo
'TOMATO_BUILD = "$(B)"' >> tomato_profile.mak
1378 echo
'TOMATO_BUILD_NAME = "$(B)"' >> tomato_profile.mak
1379 echo
'TOMATO_BUILD_DESC = "$(DESC)$(EXTRA_64KDESC)"' >> tomato_profile.mak
1380 echo
'TOMATO_PROFILE_L = $(lowercase_N)' >> tomato_profile.mak
1381 echo
'TOMATO_PROFILE_U = $(uppercase_N)' >> tomato_profile.mak
1382 echo
'TOMATO_BUILD_USB = "$(USB)"' >> tomato_profile.mak
1384 echo
'export EXTRACFLAGS := $(EXTRA_CFLAGS) -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 $(if $(filter $(NVRAM_SIZE),0),,-DCONFIG_NVRAM_SIZE=$(NVRAM_SIZE)) $(EXTRA_64KCFLAG)' >> tomato_profile.mak
1386 # Note that changes to variables in tomato_profile.mak don't
1387 # get propogated to this invocation of make!
1389 @echo
"Using $(N) profile, $(B) build config."
1393 rm -f config_current
; \
1394 ln
-s config_
$(lowercase_B
) config_current
; \
1395 cp
-f config_current .config
1397 @cd router
/busybox
&& \
1398 rm -f config_current
; \
1399 ln
-s config_
$(lowercase_B
) config_current
; \
1400 cp config_current .config
1403 rm -f config_current
; \
1404 ln
-s config_
$(lowercase_B
) config_current
; \
1405 cp config_current .config
1407 @
$(MAKE
) -C router oldconfig
1410 @echo
"n Mini-USB - for oruter with 4MB flash and USB port - K24 only"
1411 @echo
"e VPN - (standard plus VPN, extra utilities and NTFS support)"
1412 @echo
"c BTgui-VPN - (Ext plus BT gui)"
1413 @echo
"d Nocat-VPN - (BTgui plus VPN plus Nocat)"
1414 @echo
"g Tor-VPN - (BTgui plus VPN plus TOR Project)"
1415 @echo
"t BT-VPN - (BT plus VPN)"
1416 @echo
"b Big-VPN - (Big plus VPN)"
1417 @echo
"o Mega-VPN - (Mega plus VPN plus NOCAT minus NFS)"
1418 ifeq ($(CONFIG_LINUX26
),y
)
1419 @echo
"z MIPS Release 15F AIO (for routers +8MB flash)"
1420 @echo
"i MiniIPv6 - (IPv6 with no USB support minus CIFS and RIPv1/2)"
1421 @echo
"j MiniVPN - (VPN with no USB support minus CIFS and RIPv1/2)"
1423 @echo
"f Mini - (no USB support minus CIFS and RIPv1/2)"
1424 @echo
"v VPN (no usb) - (VPN with no USB support)" / in K26
+ IPv6 support
1425 @echo
"m Max (no usb) - (Max with no USB support)" / in K26
+ IPv6 support
1426 @echo
"w SD-VPN (no usb) - (VPN with SD-MOD and no USB support)"
1427 ifeq ($(CONFIG_LINUX26
),y
)
1428 @echo
"r2e MIPS Release 2 VPN"
1429 @echo
"r2c MIPS Release 2 BTgui-VPN"
1430 @echo
"r2d MIPS Release 2 Nocat-VPN"
1431 @echo
"r2g MIPS Release 2 Tor-VPN"
1432 @echo
"r2t MIPS Release 2 BT-VPN"
1433 @echo
"r2b MIPS Release 2 Big-VPN"
1434 @echo
"r2o MIPS Release 2 Mega-VPN (for routers +8MB flash)"
1435 @echo
"r2z MIPS Release 2 AIO (for routers +8MB flash)"
1436 @echo
"r2v MIPS Release 2 VPN (no usb)"
1437 @echo
"r2m MIPS Release 2 Max (no usb)"
1438 @echo
"r2i MIPS Release 2 MiniIPv6 (for 4MB flash)"
1439 @echo
"r2j MIPS Release 2 MiniVPN (for 4MB flash)"
1440 @echo
"r2f MIPS Release 2 Mini (for netgear)"
1441 @echo
" Linksys E-Series with 4MB Flash(E1000v2/v2.1/E1200v1)"
1442 @echo
"e1000v2f Linksys E1000v2-v2.1/Cisco M10v2 Mini"
1443 @echo
"e1000v2i Linksys E1000v2-v2.1/Cisco M10v2 MiniIPv6"
1444 @echo
"e1200v1f Linksys E1200v1 Mini"
1445 @echo
"e1200v1i Linksys E1200v1 MiniIPv6"
1446 @echo
" Linksys E-Series with 60k Nvram"
1447 @echo
"n60e Linksys E-series build VPN"
1448 @echo
"n60c Linksys E-series build BTGui-VPN"
1449 @echo
"n60d Linksys E-series build BTGui-VPN plus Nocat"
1450 @echo
"n60g Linksys E-series build BTGui-VPN plus TOR Project"
1451 @echo
"n60t Linksys E-series build BT-VPN"
1452 @echo
"n60b Linksys E-series build Big-VPN"
1453 @echo
"n60o Linksys E-series build Mega-VPN"
1454 @echo
"n60z Linksys E-series build AIO"
1455 @echo
"n60i Linksys E-series build Mini for E2500"
1456 @echo
"n60j Linksys E-series build MiniIPv6 for E2500"
1457 @echo
"n60v Linksys E-series build IPv6-VPN for E2000"
1458 @echo
"n60m Linksys E-series build Max for E2000"
1459 @echo
" Linksys E-Series with 64k Nvram/8MB Flash(E800/E900/E1200v2/E1500)"
1460 @echo
"n64e Linksys E-series(64k Nvram) build VPN"
1461 @echo
"n64c Linksys E-series(64k Nvram) build BTGui-VPN"
1462 @echo
"n64d Linksys E-series(64k Nvram) build BTGui-VPN plus Nocat"
1463 @echo
"n64g Linksys E-series(64k Nvram) build BTGui-VPN plus TOR Project"
1464 @echo
"n64u Linksys E-series(64k Nvram) build BT"
1465 @echo
"n64t Linksys E-series(64k Nvram) build BT-VPN"
1466 @echo
"n64b Linksys E-series(64k Nvram) build Big-VPN"
1467 @echo
"n64o Linksys E-series(64k Nvram) build Mega-VPN"
1468 @echo
"n64v Linksys E-series(64k Nvram) build IPv6-VPN"
1469 @echo
"n64m Linksys E-series(64k Nvram) build Max"
1470 @echo
" Routers with wl_high module"
1471 @echo
"rtn53 Asus RT-N53 with wl_high module (dualband support)"
1472 @echo
"e2500 Linksys E2500 with wl_high module (dualband support)"
1473 @echo
"e3200 Linksys E3200/E2500v3 with wl_high module (dualband support) / max 16MB"
1474 @echo
"n6 Tenda N6 with wl_high module (dualband support)"
1475 @echo
"n60 Tenda N60 with wl_high module (dualband support)"
1476 # @echo "l600n Rosewill L600N Build with wl_high module (dualband support)"
1477 @echo
" Netgear WNR3500L v2 builds (128MB Flash)"
1478 @echo
"v2e Netgear WNR3500Lv2 build VPN"
1479 @echo
"v2z Netgear WNR3500Lv2 build AIO"
1481 @echo
"r64e RT-N66u build VPN"
1482 @echo
"r64z RT-N66u build AIO"
1483 ifeq ($(CONFIG_BCMWL6
),y
)
1484 @echo
" Routers with AC mode support"
1485 @echo
"ac66e RT-AC66u build VPN"
1486 @echo
"ac66z RT-AC66u build AIO"
1487 @echo
"w1800re Tenda W1800R build VPN"
1488 @echo
"w1800rz Tenda W1800R build AIO"
1489 @echo
"dir865le D-link DIR-865L build VPN"
1490 @echo
"dir865lz D-link DIR-865L build AIO"
1491 # @echo "d1800he Buffalo D1800H build VPN"
1492 # @echo "d1800hz Buffalo D1800H build AIO"
1493 # @echo "ea6500e Linksys EA6500v1 build VPN"
1494 # @echo "ea6500z Linksys EA6500v1 build AIO"
1498 @echo
"..etc.. other build configs"
1499 @echo
"clean -C router clean"
1500 @echo
"cleanimage rm -rf image"
1501 @echo
"cleantools clean btools, mksquashfs"
1502 @echo
"cleankernel -C Linux distclean (but preserves .config)"
1503 @echo
"distclean distclean of Linux & busybox (but preserve .configs)"
1504 @echo
"prepk -C Linux oldconfig dep"
1506 .PHONY
: all clean distclean cleanimage cleantools cleankernel prepk what setprofile help
1507 .PHONY
: a b c d m nc Makefile allversions tomato_profile.mak