2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
10 IMGNAME
:=$(BIN_DIR
)/openwrt-
$(BOARD
)
13 $(IMGNAME
)-$(2)-$(patsubst jffs2-
%,jffs2
,$(patsubst squashfs-
%,squashfs
,$(1)))
16 VMLINUX
:=$(IMGNAME
)-vmlinux
17 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
18 VMLINUX
:=$(IMGNAME
)-vmlinux-initramfs
22 $(STAGING_DIR_HOST
)/bin
/lzma e
$(1) -lc1
-lp2
-pb2
$(2)
25 define PatchKernelLzma
26 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
27 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) '$(strip $(2))'
28 $(call CompressLzma
,$(KDIR
)/vmlinux-
$(1),$(KDIR
)/vmlinux-
$(1).bin.lzma
)
31 define PatchKernelGzip
32 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
33 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) '$(strip $(2))'
34 gzip
-9 -c
$(KDIR
)/vmlinux-
$(1) > $(KDIR
)/vmlinux-
$(1).bin.gz
38 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma \
39 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
44 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip \
45 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
49 define Image
/BuildKernel
50 cp
$(KDIR
)/vmlinux.elf
$(VMLINUX
).elf
51 cp
$(KDIR
)/vmlinux
$(VMLINUX
).bin
52 gzip
-9 -c
$(KDIR
)/vmlinux
> $(KDIR
)/vmlinux.bin.gz
53 $(call CompressLzma
,$(KDIR
)/vmlinux
,$(KDIR
)/vmlinux.bin.lzma
)
54 dd if
=$(KDIR
)/vmlinux.bin.lzma of
=$(VMLINUX
).lzma bs
=65536 conv
=sync
55 dd if
=$(KDIR
)/vmlinux.bin.gz of
=$(VMLINUX
).gz bs
=65536 conv
=sync
56 $(call MkImageGzip
,$(KDIR
)/vmlinux.bin.gz
,$(IMGNAME
)-uImage-gzip.bin
)
57 $(call MkImageLzma
,$(KDIR
)/vmlinux.bin.lzma
,$(IMGNAME
)-uImage-lzma.bin
)
60 define Image
/Build
/WRT400N
61 $(call PatchKernelLzma
,$(2),$(3))
62 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
1310720 ]; then \
63 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
64 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6488064 ]; then \
65 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
67 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
69 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
70 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
72 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1280k conv
=sync
; \
73 dd if
=$(KDIR
)/root.
$(1) bs
=6336k conv
=sync
; \
75 ) > $(call imgname
,$(1),$(2)).bin
; \
76 wrt400n
$(KDIR
)/vmlinux-
$(2).uImage
$(KDIR
)/root.
$(1) $(call imgname
,$(1),$(2)).webui
; \
80 define Image
/Build
/Cameo
81 $(call PatchKernelLzma
,$(2),$(3))
82 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
851968 ]; then \
83 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
84 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
3014656 ]; then \
85 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
87 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
89 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
90 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
92 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=832k conv
=sync
; \
93 dd if
=$(KDIR
)/root.
$(1) bs
=2944k conv
=sync
; \
95 ) > $(call imgname
,$(1),$(2)).uni
; \
99 define Image
/Build
/AP83
100 $(call PatchKernelGzip
,$(2),$(3))
101 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gz"` -gt
1310720 ]; then \
102 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.gz is too big"; \
103 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6619136 ]; then \
104 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
106 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip
-e \
108 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
109 -d
$(KDIR
)/vmlinux-
$(2).bin.gz \
110 $(KDIR
)/vmlinux-
$(2).uImage
; \
111 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
112 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
113 dd if
=$(KDIR
)/root.
$(1) \
114 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
116 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1280k conv
=sync
; \
117 dd if
=$(KDIR
)/root.
$(1); \
118 ) > $(call imgname
,$(1),$(2)-firmware
).bin
; \
122 define Image
/Build
/MyLoader
123 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) \
124 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
125 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
126 $(call imgname
,$(1),$(2))-2M.img
127 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
0x400000 \
128 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
129 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
130 $(call imgname
,$(1),$(2))-4M.img
131 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
0x800000 \
132 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
133 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
134 $(call imgname
,$(1),$(2))-8M.img
135 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
0x1000000 \
136 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
137 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
138 $(call imgname
,$(1),$(2))-16M.img
141 ubntxm_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,1024k
(kernel
),6528k
(rootfs
),256k
(cfg
)ro
,64k
(EEPROM
)ro
,7552k@
0x50000(firmware
)
142 define Image
/Build
/UBNTXM
143 $(call PatchKernelLzma
,$(2),$(3) $(ubntxm_mtdlayout
))
144 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage.bin
)
145 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.bin of
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1024k conv
=sync
146 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
147 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
148 -k
$(KDIR
)/vmlinux-
$(2).uImage \
149 -r
$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) \
150 -o
$(call imgname
,$(1),$(2))-factory.bin
152 dd if
=$(KDIR
)/vmlinux-
$(2).uImage
; \
153 dd if
=$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1); \
154 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
157 define Image
/Build
/UBNT
158 $(call PatchKernelLzma
,$(2),$(3))
159 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma of
=$(KDIR
)/vmlinux-
$(2).lzma bs
=64k conv
=sync
160 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
161 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
162 -k
$(KDIR
)/vmlinux-
$(2).lzma \
163 -r
$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) \
164 -o
$(call imgname
,$(1),$(2))-factory.bin
165 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
166 "$(KDIR)/vmlinux-$(2).lzma" \
167 "$(BIN_DIR)/openwrt-$(BOARD)-root.$(1)" \
168 $(call imgname
,$(1),$(2))-sysupgrade.bin
171 define Image
/Build
/Planex
172 $(call PatchKernelGzip
,$(2),$(3))
173 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gz"` -gt
1441792 ]; then \
174 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.gz is too big"; \
175 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6356992 ]; then \
176 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
178 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip
-e \
180 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
181 -d
$(KDIR
)/vmlinux-
$(2).bin.gz
$(KDIR
)/vmlinux-
$(2).uImage
; \
183 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1408k conv
=sync
; \
184 dd if
=$(KDIR
)/root.
$(1) bs
=6208k conv
=sync
; \
185 ) > $(call imgname
,$(1),$(2)).bin
; \
186 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
189 -i
$(call imgname
,$(1),$(2)).bin \
190 -o
$(call imgname
,$(1),$(2)).webui
; \
194 define Image
/Build
/TPLINK
195 $(call PatchKernelGzip
,$(2),$(3))
196 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
197 -B
$(4) -N OpenWrt
-V
$(REVISION
)\
198 -k
$(KDIR
)/vmlinux-
$(2).bin.gz \
199 -r
$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) \
200 -o
$(call imgname
,$(1),$(2))-universal.bin
203 define Image
/Build
/CyberTAN
204 $(call PatchKernelGzip
,$(2),$(3))
205 $(call MkImageGzip
,$(KDIR
)/vmlinux-
$(2).bin.gz
,$(KDIR
)/vmlinux-
$(2).uImage
)
207 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=64k conv
=sync
; \
208 dd if
=/dev
/zero bs
=1 count
=65476; \
209 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
210 ) > $(KDIR
)/vmlinux-
$(2).image
211 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/vmlinux-
$(2).trx \
212 -f
$(KDIR
)/vmlinux-
$(2).image
213 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) -g \
214 -i
$(KDIR
)/vmlinux-
$(2).trx \
215 -o
$(call imgname
,$(1),$(2)).bin
218 wndr3700_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),6656k
(rootfs
),64k
(art
)ro
,7680k@
0x70000(firmware
)
219 define Image
/Build
/WNDR3700
220 $(call PatchKernelLzma
,$(2),$(3) $(wndr3700_mtdlayout
))
221 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage
)
222 mkdir
$(KDIR
)/wndr3700
223 mkdir
$(KDIR
)/wndr3700
/image
224 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
225 $(KDIR
)/vmlinux-
$(2).uImage \
226 $(KDIR
)/wndr3700
/image
/uImage
227 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
228 $(KDIR
)/wndr3700
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp \
229 -nopad
-noappend
-root-owned
-be
230 -rm -rf
$(KDIR
)/wndr3700
231 mkimage
-A mips
-O linux
-T filesystem
-C none \
232 -a
0xbf070000 -e
0xbf070000 \
233 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
234 -d
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp \
235 $(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp2
236 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
237 $(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp2 \
238 $(KDIR
)/vmlinux-
$(2).uImage.squashfs
239 -rm -f
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp
*
241 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.squashfs bs
=1M conv
=sync
; \
242 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
243 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
246 define Image
/Build
/Template
/Compex
247 $(call Image
/Build
/MyLoader
,$(1),$(2))
250 define Image
/Build
/Template
/Compex
/squashfs
251 $(call Image
/Build
/Template
/Compex
,squashfs
,$(1))
254 define Image
/Build
/Template
/WRT400N
255 $(call Image
/Build
/WRT400N
,$(1),$(2),$(3),$(4))
258 define Image
/Build
/Template
/WRT400N
/squashfs
259 $(call Image
/Build
/Template
/WRT400N
,squashfs
,$(1),$(2),$(3))
262 define Image
/Build
/Template
/WRT400N
/jffs2-64k
263 $(call Image
/Build
/Template
/WRT400N
,jffs2-64k
,$(1),$(2),$(3))
266 define Image
/Build
/Template
/CyberTAN
267 $(call Image
/Build
/CyberTAN
,$(1),$(2),$(3),$(4))
270 define Image
/Build
/Template
/CyberTAN
/squashfs
271 $(call Image
/Build
/Template
/CyberTAN
,squashfs
,$(1),$(2),$(3))
274 define Image
/Build
/Template
/CyberTAN
/jffs2-64k
275 $(call Image
/Build
/Template
/CyberTAN
,jffs2-64k
,$(1),$(2),$(3))
278 define Image
/Build
/Template
/Cameo
279 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(4))
282 define Image
/Build
/Template
/Cameo
/squashfs
283 $(call Image
/Build
/Template
/Cameo
,squashfs
,$(1),$(2),$(3))
286 define Image
/Build
/Template
/AP83
287 $(call Image
/Build
/AP83
,$(1),$(2),$(3))
290 define Image
/Build
/Template
/AP83
/squashfs
291 $(call Image
/Build
/Template
/AP83
,squashfs
,$(1),$(2))
294 define Image
/Build
/Template
/AP83
/jffs2-64k
295 $(call Image
/Build
/Template
/AP83
,jffs2-64k
,$(1),$(2))
298 define Image
/Build
/Template
/TPLINK
299 $(call Image
/Build
/TPLINK
,$(1),$(2),$(3),$(4))
302 define Image
/Build
/Template
/TPLINK
/squashfs
303 $(call Image
/Build
/Template
/TPLINK
,squashfs
,$(1),$(2),$(3))
306 define Image
/Build
/Template
/TPLINK4K
307 $(call Image
/Build
/TPLINK
,$(1),$(2),$(3),$(4))
310 define Image
/Build
/Template
/TPLINK4K
/squashfs
311 $(call Image
/Build
/Template
/TPLINK
,squashfs
,$(1),$(2),$(3))
314 define Image
/Build
/Template
/UBNT
315 $(call Image
/Build
/UBNT
,$(1),$(2),$(3),$(4),$(5),$(6))
318 define Image
/Build
/Template
/UBNT
/squashfs
319 $(call Image
/Build
/Template
/UBNT
,squashfs
,$(1),$(2),$(3),$(4),$(5))
322 define Image
/Build
/Template
/UBNT
/jffs2-64k
323 $(call Image
/Build
/Template
/UBNT
,jffs2-64k
,$(1),$(2),$(3),$(4),$(5))
326 define Image
/Build
/Template
/UBNTXM
327 $(call Image
/Build
/UBNTXM
,$(1),$(2),$(3),$(4),$(5),$(6))
330 define Image
/Build
/Template
/UBNTXM
/squashfs
331 $(call Image
/Build
/Template
/UBNTXM
,squashfs
,$(1),$(2),$(3),$(4),$(5))
334 define Image
/Build
/Template
/UBNTXM
/jffs2-64k
335 $(call Image
/Build
/Template
/UBNTXM
,jffs2-64k
,$(1),$(2),$(3),$(4),$(5))
338 define Image
/Build
/Template
/Planex
339 $(call Image
/Build
/Planex
,$(1),$(2),$(3))
342 define Image
/Build
/Template
/Planex
/squashfs
343 $(call Image
/Build
/Template
/Planex
,squashfs
,$(1),$(2))
346 define Image
/Build
/Template
/Planex
/jffs2-64k
347 $(call Image
/Build
/Template
/Planex
,jffs2-64k
,$(1),$(2))
350 define Image
/Build
/Template
/WNDR3700
351 $(call Image
/Build
/WNDR3700
,$(1),$(2),$(3))
354 define Image
/Build
/Template
/WNDR3700
/squashfs
355 $(call Image
/Build
/Template
/WNDR3700
,squashfs
,$(1),$(2))
358 define Image
/Build
/Template
/WNDR3700
/jffs2-64k
359 $(call Image
/Build
/Template
/WNDR3700
,jffs2-64k
,$(1),$(2))
362 define Image
/Build
/Profile
/AP83
363 $(call Image
/Build
/Template
/AP83
/$(1),ap83
,board
=AP83
)
366 define Image
/Build
/Profile
/WP543
367 $(call Image
/Build
/Template
/Compex
/$(1),wp543
)
370 define Image
/Build
/Profile
/DIR615C1
371 $(call Image
/Build
/Template
/Cameo
/$(1),dir-615c1
,board
=TEW-632BRP
,"AP81-AR9130-RT-070614-02")
374 define Image
/Build
/Profile
/TEW632BRP
375 $(call Image
/Build
/Template
/Cameo
/$(1),tew-632brp
,board
=TEW-632BRP
,"AP81-AR9130-RT-070614-00")
378 define Image
/Build
/Profile
/TEW652BRP
379 $(call Image
/Build
/Template
/Cameo
/$(1),tew-652brp
,board
=TEW-632BRP
,"AP81-AR9130-RT-080609-05")
382 define Image
/Build
/Profile
/A02RBW300N
383 $(call Image
/Build
/Template
/Cameo
/$(1),a02-rb-w300n
,board
=TEW-632BRP
,"AP81-AR9130-RT-070614-03")
386 define Image
/Build
/Profile
/UBNTRS
387 $(call Image
/Build
/Template
/UBNT
/$(1),ubnt-rs
,board
=UBNT-RS
,RS
,RSx
,ar7100
)
390 define Image
/Build
/Profile
/UBNTRSPRO
391 $(call Image
/Build
/Template
/UBNT
/$(1),ubnt-rspro
,board
=UBNT-RSPRO
,RSPRO
,RSPRO
,ar7100pro
)
394 define Image
/Build
/Profile
/UBNTLSSR71
395 $(call Image
/Build
/Template
/UBNT
/$(1),ubnt-ls-sr71
,board
=UBNT-LS-SR71
,LS-SR71
,LS-SR71
,ar7100
)
398 define Image
/Build
/Profile
/UBNTBULLETM
399 $(call Image
/Build
/Template
/UBNTXM
/$(1),ubnt-bullet-m
,board
=UBNT-BM
,XM
,UBNTXM
,ar7240
)
402 define Image
/Build
/Profile
/UBNTROCKETM
403 $(call Image
/Build
/Template
/UBNTXM
/$(1),ubnt-rocket-m
,board
=UBNT-RM
,XM
,UBNTXM
,ar7240
)
406 define Image
/Build
/Profile
/UBNTNANOM
407 $(call Image
/Build
/Template
/UBNTXM
/$(1),ubnt-nano-m
,board
=UBNT-NM
,XM
,UBNTXM
,ar7240
)
410 define Image
/Build
/Profile
/UBNT
411 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
412 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
413 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
414 $(call Image
/Build
/Profile
/UBNTBULLETM
,$(1))
415 $(call Image
/Build
/Profile
/UBNTROCKETM
,$(1))
416 $(call Image
/Build
/Profile
/UBNTNANOM
,$(1))
419 define Image
/Build
/Profile
/MZKW04NU
420 $(call Image
/Build
/Template
/Planex
/$(1),mzk-w04nu
,board
=MZK-W04NU
)
423 define Image
/Build
/Profile
/MZKW300NH
424 $(call Image
/Build
/Template
/Planex
/$(1),mzk-w300nh
,board
=MZK-W300NH
)
427 define Image
/Build
/Profile
/TLWR741NDV1
428 $(call Image
/Build
/Template
/TPLINK4K
/$(1),tl-wr741ndv1
,board
=TL-WR741ND
,TL-WR741NDv1
)
431 define Image
/Build
/Profile
/TLWR841NDV3
432 $(call Image
/Build
/Template
/TPLINK
/$(1),tl-wr841ndv3
,board
=TL-WR941ND
,TL-WR841NDv3
)
435 define Image
/Build
/Profile
/TLWR841NDV5
436 $(call Image
/Build
/Template
/TPLINK4K
/$(1),tl-wr841ndv5
,board
=TL-WR741ND
,TL-WR841NDv5
)
439 define Image
/Build
/Profile
/TLWR941NDV2
440 $(call Image
/Build
/Template
/TPLINK
/$(1),tl-wr941ndv2
,board
=TL-WR941ND
,TL-WR941NDv2
)
443 define Image
/Build
/Profile
/WNDR3700
444 $(call Image
/Build
/Template
/WNDR3700
/$(1),wndr3700
,board
=WNDR3700
)
447 define Image
/Build
/Profile
/WRT400N
448 $(call Image
/Build
/Template
/WRT400N
/$(1),wrt400n
,board
=WRT400N
)
451 define Image
/Build
/Profile
/WRT160NL
452 $(call Image
/Build
/Template
/CyberTAN
/$(1),wrt160nl
,board
=WRT160NL
,1.00.01)
455 define Image
/Build
/Profile
/Default
456 $(call Image
/Build
/Profile
/AP83
,$(1))
457 $(call Image
/Build
/Profile
/A02RBW300N
,$(1))
458 $(call Image
/Build
/Profile
/DIR615C1
,$(1))
459 $(call Image
/Build
/Profile
/MZKW04NU
,$(1))
460 $(call Image
/Build
/Profile
/MZKW300NH
,$(1))
461 $(call Image
/Build
/Profile
/TEW632BRP
,$(1))
462 $(call Image
/Build
/Profile
/TEW652BRP
,$(1))
463 $(call Image
/Build
/Profile
/TLWR741NDV1
,$(1))
464 $(call Image
/Build
/Profile
/TLWR841NDV3
,$(1))
465 $(call Image
/Build
/Profile
/TLWR841NDV5
,$(1))
466 $(call Image
/Build
/Profile
/TLWR941NDV2
,$(1))
467 $(call Image
/Build
/Profile
/UBNT
,$(1))
468 $(call Image
/Build
/Profile
/WP543
,$(1))
469 $(call Image
/Build
/Profile
/WNDR3700
,$(1))
470 $(call Image
/Build
/Profile
/WRT400N
,$(1))
471 $(call Image
/Build
/Profile
/WRT160NL
,$(1))
474 define Image
/Build
/Profile
/Madwifi
475 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
476 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
477 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
478 $(call Image
/Build
/Profile
/WP543
,$(1))
481 define Image
/Build
/squashfs
482 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
483 dd if
=$(KDIR
)/root.squashfs of
=$(KDIR
)/root.squashfs-4k.tmp0 bs
=4k conv
=sync
484 $(call add_jffs2_mark
,$(KDIR
)/root.squashfs-4k.tmp0
)
485 dd if
=$(KDIR
)/root.squashfs-4k.tmp0 of
=$(IMGNAME
)-root.squashfs-4k bs
=4k conv
=sync
486 $(call add_jffs2_mark
,$(IMGNAME
)-root.squashfs-4k
)
487 rm -f
$(KDIR
)/root.squashfs-4k.tmp0
491 $(call Image
/Build
/$(1))
492 dd if
=$(KDIR
)/root.
$(1) of
=$(IMGNAME
)-root.
$(1) bs
=128k conv
=sync
494 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
497 $(eval
$(call BuildImage
))