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 dir825b1_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,1024k
(kernel
),5184k
(rootfs
),64k
(caldata
)ro
,6208k@
0x50000(firmware
)
81 define Image
/Build
/DIR825B1
82 $(call PatchKernelLzma
,$(2),$(3) $(dir825b1_mtdlayout
))
83 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(call imgname
,$(1),$(2)).bin
)
84 if
[ `stat -c%s "$(call imgname,$(1),$(2)).bin"` -gt
1048576 ]; then \
85 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
86 rm -f
$(call imgname
,$(1),$(2)).bin
; \
87 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
5308416 ]; then \
88 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
89 rm -f
$(call imgname
,$(1),$(2)).bin
; \
91 dd if
=$(KDIR
)/root.
$(1) of
=$(call imgname
,$(1),$(2)).bin bs
=1k seek
=1024; \
92 cp
$(call imgname
,$(1),$(2)).bin
$(call imgname
,$(1),$(2))-backup-loader.bin
; \
93 echo
-n
"01AP94-AR7161-RT-080619-00" >> $(call imgname
,$(1),$(2))-backup-loader.bin
; \
97 cameo_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(config
)ro
,896k
(kernel
),2880k
(rootfs
),64k
(art
)ro
,3776k@
0x30000(firmware
)
98 define Image
/Build
/Cameo
99 $(call PatchKernelLzma
,$(2),$(3) $(cameo_mtdlayout
))
100 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
917504 ]; then \
101 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
102 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
2949120 ]; then \
103 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
105 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
107 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
108 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
110 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
111 dd if
=$(KDIR
)/root.
$(1) bs
=2880k conv
=sync
; \
113 ) > $(call imgname
,$(1),$(2)).uni
; \
117 define Image
/Build
/AP83
118 $(call PatchKernelGzip
,$(2),$(3))
119 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gz"` -gt
1310720 ]; then \
120 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.gz is too big"; \
121 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6619136 ]; then \
122 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
124 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip
-e \
126 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
127 -d
$(KDIR
)/vmlinux-
$(2).bin.gz \
128 $(KDIR
)/vmlinux-
$(2).uImage
; \
129 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
130 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
131 dd if
=$(KDIR
)/root.
$(1) \
132 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
134 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1280k conv
=sync
; \
135 dd if
=$(KDIR
)/root.
$(1); \
136 ) > $(call imgname
,$(1),$(2)-firmware
).bin
; \
140 define Image
/Build
/MyLoader
141 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) \
142 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
143 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
144 $(call imgname
,$(1),$(2))-2M.img
145 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
0x400000 \
146 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
147 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
148 $(call imgname
,$(1),$(2))-4M.img
149 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
0x800000 \
150 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
151 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
152 $(call imgname
,$(1),$(2))-8M.img
153 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
0x1000000 \
154 -p0x030000
:0xd0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
155 -p0x100000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
156 $(call imgname
,$(1),$(2))-16M.img
159 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
)
160 define Image
/Build
/UBNTXM
161 $(call PatchKernelLzma
,$(2),$(3) $(ubntxm_mtdlayout
))
162 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage.bin
)
163 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.bin of
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1024k conv
=sync
164 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
165 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
166 -k
$(KDIR
)/vmlinux-
$(2).uImage \
167 -r
$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) \
168 -o
$(call imgname
,$(1),$(2))-factory.bin
170 dd if
=$(KDIR
)/vmlinux-
$(2).uImage
; \
171 dd if
=$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1); \
172 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
175 define Image
/Build
/UBNT
176 $(call PatchKernelLzma
,$(2),$(3))
177 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma of
=$(KDIR
)/vmlinux-
$(2).lzma bs
=64k conv
=sync
178 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
179 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
180 -k
$(KDIR
)/vmlinux-
$(2).lzma \
181 -r
$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) \
182 -o
$(call imgname
,$(1),$(2))-factory.bin
183 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
184 "$(KDIR)/vmlinux-$(2).lzma" \
185 "$(BIN_DIR)/openwrt-$(BOARD)-root.$(1)" \
186 $(call imgname
,$(1),$(2))-sysupgrade.bin
189 define Image
/Build
/Planex
190 $(call PatchKernelGzip
,$(2),$(3))
191 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gz"` -gt
1441792 ]; then \
192 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.gz is too big"; \
193 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6356992 ]; then \
194 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
196 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip
-e \
198 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
199 -d
$(KDIR
)/vmlinux-
$(2).bin.gz
$(KDIR
)/vmlinux-
$(2).uImage
; \
201 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1408k conv
=sync
; \
202 dd if
=$(KDIR
)/root.
$(1) bs
=6208k conv
=sync
; \
203 ) > $(call imgname
,$(1),$(2)).bin
; \
204 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
207 -i
$(call imgname
,$(1),$(2)).bin \
208 -o
$(call imgname
,$(1),$(2)).webui
; \
212 define Image
/Build
/TPLINK
213 $(call PatchKernelGzip
,$(2),$(3))
214 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
215 -B
$(4) -N OpenWrt
-V
$(REVISION
)\
216 -k
$(KDIR
)/vmlinux-
$(2).bin.gz \
217 -r
$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) \
218 -o
$(call imgname
,$(1),$(2))-universal.bin
221 define Image
/Build
/CyberTAN
222 $(call PatchKernelGzip
,$(2),$(3))
223 $(call MkImageGzip
,$(KDIR
)/vmlinux-
$(2).bin.gz
,$(KDIR
)/vmlinux-
$(2).uImage
)
225 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=64k conv
=sync
; \
226 dd if
=/dev
/zero bs
=1 count
=65476; \
227 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
228 ) > $(KDIR
)/vmlinux-
$(2).image
229 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/vmlinux-
$(2).trx \
230 -f
$(KDIR
)/vmlinux-
$(2).image
231 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) -g \
232 -i
$(KDIR
)/vmlinux-
$(2).trx \
233 -o
$(call imgname
,$(1),$(2)).bin
236 wndr3700_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),6656k
(rootfs
),64k
(art
)ro
,7680k@
0x70000(firmware
)
237 define Image
/Build
/WNDR3700
238 $(call PatchKernelLzma
,$(2),$(3) $(wndr3700_mtdlayout
))
239 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage
)
240 mkdir
$(KDIR
)/wndr3700
241 mkdir
$(KDIR
)/wndr3700
/image
242 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
243 $(KDIR
)/vmlinux-
$(2).uImage \
244 $(KDIR
)/wndr3700
/image
/uImage
245 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
246 $(KDIR
)/wndr3700
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp \
247 -nopad
-noappend
-root-owned
-be
248 -rm -rf
$(KDIR
)/wndr3700
249 mkimage
-A mips
-O linux
-T filesystem
-C none \
250 -a
0xbf070000 -e
0xbf070000 \
251 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
252 -d
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp \
253 $(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp2
254 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
255 $(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp2 \
256 $(KDIR
)/vmlinux-
$(2).uImage.squashfs
257 -rm -f
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp
*
259 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.squashfs bs
=1M conv
=sync
; \
260 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
261 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
262 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
263 -B WNDR3700
-v OpenWrt.
$(REVISION
) \
264 -i
$(call imgname
,$(1),$(2))-sysupgrade.bin \
265 -o
$(call imgname
,$(1),$(2))-factory.img
268 define Image
/Build
/Template
/Compex
269 $(call Image
/Build
/MyLoader
,$(1),$(2))
272 define Image
/Build
/Template
/Compex
/squashfs
273 $(call Image
/Build
/Template
/Compex
,squashfs
,$(1))
276 define Image
/Build
/Template
/WRT400N
277 $(call Image
/Build
/WRT400N
,$(1),$(2),$(3),$(4))
280 define Image
/Build
/Template
/WRT400N
/squashfs
281 $(call Image
/Build
/Template
/WRT400N
,squashfs
,$(1),$(2),$(3))
284 define Image
/Build
/Template
/WRT400N
/jffs2-64k
285 $(call Image
/Build
/Template
/WRT400N
,jffs2-64k
,$(1),$(2),$(3))
288 define Image
/Build
/Template
/DIR825B1
289 $(call Image
/Build
/DIR825B1
,$(1),$(2),$(3),$(4))
292 define Image
/Build
/Template
/DIR825B1
/squashfs
293 $(call Image
/Build
/Template
/DIR825B1
,squashfs
,$(1),$(2),$(3))
296 define Image
/Build
/Template
/DIR825B1
/jffs2-64k
297 $(call Image
/Build
/Template
/DIR825B1
,jffs2-64k
,$(1),$(2),$(3))
300 define Image
/Build
/Template
/CyberTAN
301 $(call Image
/Build
/CyberTAN
,$(1),$(2),$(3),$(4))
304 define Image
/Build
/Template
/CyberTAN
/squashfs
305 $(call Image
/Build
/Template
/CyberTAN
,squashfs
,$(1),$(2),$(3))
308 define Image
/Build
/Template
/CyberTAN
/jffs2-64k
309 $(call Image
/Build
/Template
/CyberTAN
,jffs2-64k
,$(1),$(2),$(3))
312 define Image
/Build
/Template
/Cameo
313 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(4))
316 define Image
/Build
/Template
/Cameo
/squashfs
317 $(call Image
/Build
/Template
/Cameo
,squashfs
,$(1),$(2),$(3))
320 define Image
/Build
/Template
/AP83
321 $(call Image
/Build
/AP83
,$(1),$(2),$(3))
324 define Image
/Build
/Template
/AP83
/squashfs
325 $(call Image
/Build
/Template
/AP83
,squashfs
,$(1),$(2))
328 define Image
/Build
/Template
/AP83
/jffs2-64k
329 $(call Image
/Build
/Template
/AP83
,jffs2-64k
,$(1),$(2))
332 define Image
/Build
/Template
/TPLINK
333 $(call Image
/Build
/TPLINK
,$(1),$(2),$(3),$(4))
336 define Image
/Build
/Template
/TPLINK
/squashfs
337 $(call Image
/Build
/Template
/TPLINK
,squashfs
,$(1),$(2),$(3))
340 define Image
/Build
/Template
/TPLINK4K
341 $(call Image
/Build
/TPLINK
,$(1),$(2),$(3),$(4))
344 define Image
/Build
/Template
/TPLINK4K
/squashfs
345 $(call Image
/Build
/Template
/TPLINK
,squashfs
,$(1),$(2),$(3))
348 define Image
/Build
/Template
/UBNT
349 $(call Image
/Build
/UBNT
,$(1),$(2),$(3),$(4),$(5),$(6))
352 define Image
/Build
/Template
/UBNT
/squashfs
353 $(call Image
/Build
/Template
/UBNT
,squashfs
,$(1),$(2),$(3),$(4),$(5))
356 define Image
/Build
/Template
/UBNT
/jffs2-64k
357 $(call Image
/Build
/Template
/UBNT
,jffs2-64k
,$(1),$(2),$(3),$(4),$(5))
360 define Image
/Build
/Template
/UBNTXM
361 $(call Image
/Build
/UBNTXM
,$(1),$(2),$(3),$(4),$(5),$(6))
364 define Image
/Build
/Template
/UBNTXM
/squashfs
365 $(call Image
/Build
/Template
/UBNTXM
,squashfs
,$(1),$(2),$(3),$(4),$(5))
368 define Image
/Build
/Template
/UBNTXM
/jffs2-64k
369 $(call Image
/Build
/Template
/UBNTXM
,jffs2-64k
,$(1),$(2),$(3),$(4),$(5))
372 define Image
/Build
/Template
/Planex
373 $(call Image
/Build
/Planex
,$(1),$(2),$(3))
376 define Image
/Build
/Template
/Planex
/squashfs
377 $(call Image
/Build
/Template
/Planex
,squashfs
,$(1),$(2))
380 define Image
/Build
/Template
/Planex
/jffs2-64k
381 $(call Image
/Build
/Template
/Planex
,jffs2-64k
,$(1),$(2))
384 define Image
/Build
/Template
/WNDR3700
385 $(call Image
/Build
/WNDR3700
,$(1),$(2),$(3))
388 define Image
/Build
/Template
/WNDR3700
/squashfs
389 $(call Image
/Build
/Template
/WNDR3700
,squashfs
,$(1),$(2))
392 define Image
/Build
/Template
/WNDR3700
/jffs2-64k
393 $(call Image
/Build
/Template
/WNDR3700
,jffs2-64k
,$(1),$(2))
396 define Image
/Build
/Profile
/AP83
397 $(call Image
/Build
/Template
/AP83
/$(1),ap83
,board
=AP83
)
400 define Image
/Build
/Profile
/WP543
401 $(call Image
/Build
/Template
/Compex
/$(1),wp543
)
404 define Image
/Build
/Profile
/DIR615C1
405 $(call Image
/Build
/Template
/Cameo
/$(1),dir-615c1
,board
=TEW-632BRP
,"AP81-AR9130-RT-070614-02")
408 define Image
/Build
/Profile
/TEW632BRP
409 $(call Image
/Build
/Template
/Cameo
/$(1),tew-632brp
,board
=TEW-632BRP
,"AP81-AR9130-RT-070614-00")
412 define Image
/Build
/Profile
/TEW652BRP
413 $(call Image
/Build
/Template
/Cameo
/$(1),tew-652brp
,board
=TEW-632BRP
,"AP81-AR9130-RT-080609-05")
416 define Image
/Build
/Profile
/A02RBW300N
417 $(call Image
/Build
/Template
/Cameo
/$(1),a02-rb-w300n
,board
=TEW-632BRP
,"AP81-AR9130-RT-070614-03")
420 define Image
/Build
/Profile
/UBNTRS
421 $(call Image
/Build
/Template
/UBNT
/$(1),ubnt-rs
,board
=UBNT-RS
,RS
,RSx
,ar7100
)
424 define Image
/Build
/Profile
/UBNTRSPRO
425 $(call Image
/Build
/Template
/UBNT
/$(1),ubnt-rspro
,board
=UBNT-RSPRO
,RSPRO
,RSPRO
,ar7100pro
)
428 define Image
/Build
/Profile
/UBNTLSSR71
429 $(call Image
/Build
/Template
/UBNT
/$(1),ubnt-ls-sr71
,board
=UBNT-LS-SR71
,LS-SR71
,LS-SR71
,ar7100
)
432 define Image
/Build
/Profile
/UBNTBULLETM
433 $(call Image
/Build
/Template
/UBNTXM
/$(1),ubnt-bullet-m
,board
=UBNT-BM
,XM
,UBNTXM
,ar7240
)
436 define Image
/Build
/Profile
/UBNTROCKETM
437 $(call Image
/Build
/Template
/UBNTXM
/$(1),ubnt-rocket-m
,board
=UBNT-RM
,XM
,UBNTXM
,ar7240
)
440 define Image
/Build
/Profile
/UBNTNANOM
441 $(call Image
/Build
/Template
/UBNTXM
/$(1),ubnt-nano-m
,board
=UBNT-NM
,XM
,UBNTXM
,ar7240
)
444 define Image
/Build
/Profile
/UBNT
445 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
446 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
447 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
448 $(call Image
/Build
/Profile
/UBNTBULLETM
,$(1))
449 $(call Image
/Build
/Profile
/UBNTROCKETM
,$(1))
450 $(call Image
/Build
/Profile
/UBNTNANOM
,$(1))
453 define Image
/Build
/Profile
/MZKW04NU
454 $(call Image
/Build
/Template
/Planex
/$(1),mzk-w04nu
,board
=MZK-W04NU
)
457 define Image
/Build
/Profile
/MZKW300NH
458 $(call Image
/Build
/Template
/Planex
/$(1),mzk-w300nh
,board
=MZK-W300NH
)
461 define Image
/Build
/Profile
/TLWR741NDV1
462 $(call Image
/Build
/Template
/TPLINK4K
/$(1),tl-wr741ndv1
,board
=TL-WR741ND
,TL-WR741NDv1
)
465 define Image
/Build
/Profile
/TLWR841NDV3
466 $(call Image
/Build
/Template
/TPLINK
/$(1),tl-wr841ndv3
,board
=TL-WR941ND
,TL-WR841NDv3
)
469 define Image
/Build
/Profile
/TLWR841NDV5
470 $(call Image
/Build
/Template
/TPLINK4K
/$(1),tl-wr841ndv5
,board
=TL-WR741ND
,TL-WR841NDv5
)
473 define Image
/Build
/Profile
/TLWR941NDV2
474 $(call Image
/Build
/Template
/TPLINK
/$(1),tl-wr941ndv2
,board
=TL-WR941ND
,TL-WR941NDv2
)
477 define Image
/Build
/Profile
/WNDR3700
478 $(call Image
/Build
/Template
/WNDR3700
/$(1),wndr3700
,board
=WNDR3700
)
481 define Image
/Build
/Profile
/WRT400N
482 $(call Image
/Build
/Template
/WRT400N
/$(1),wrt400n
,board
=WRT400N
)
485 define Image
/Build
/Profile
/DIR825B1
486 $(call Image
/Build
/Template
/DIR825B1
/$(1),dir-825-b1
,board
=DIR-825-B1
)
489 define Image
/Build
/Profile
/WRT160NL
490 $(call Image
/Build
/Template
/CyberTAN
/$(1),wrt160nl
,board
=WRT160NL
,1.00.01)
493 define Image
/Build
/Profile
/Default
494 $(call Image
/Build
/Profile
/AP83
,$(1))
495 $(call Image
/Build
/Profile
/A02RBW300N
,$(1))
496 $(call Image
/Build
/Profile
/DIR615C1
,$(1))
497 $(call Image
/Build
/Profile
/DIR825B1
,$(1))
498 $(call Image
/Build
/Profile
/MZKW04NU
,$(1))
499 $(call Image
/Build
/Profile
/MZKW300NH
,$(1))
500 $(call Image
/Build
/Profile
/TEW632BRP
,$(1))
501 $(call Image
/Build
/Profile
/TEW652BRP
,$(1))
502 $(call Image
/Build
/Profile
/TLWR741NDV1
,$(1))
503 $(call Image
/Build
/Profile
/TLWR841NDV3
,$(1))
504 $(call Image
/Build
/Profile
/TLWR841NDV5
,$(1))
505 $(call Image
/Build
/Profile
/TLWR941NDV2
,$(1))
506 $(call Image
/Build
/Profile
/UBNT
,$(1))
507 $(call Image
/Build
/Profile
/WP543
,$(1))
508 $(call Image
/Build
/Profile
/WNDR3700
,$(1))
509 $(call Image
/Build
/Profile
/WRT400N
,$(1))
510 $(call Image
/Build
/Profile
/WRT160NL
,$(1))
513 define Image
/Build
/Profile
/Madwifi
514 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
515 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
516 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
517 $(call Image
/Build
/Profile
/WP543
,$(1))
520 define Image
/Build
/squashfs
521 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
522 dd if
=$(KDIR
)/root.squashfs of
=$(KDIR
)/root.squashfs-4k.tmp0 bs
=4k conv
=sync
523 $(call add_jffs2_mark
,$(KDIR
)/root.squashfs-4k.tmp0
)
524 dd if
=$(KDIR
)/root.squashfs-4k.tmp0 of
=$(IMGNAME
)-root.squashfs-4k bs
=4k conv
=sync
525 $(call add_jffs2_mark
,$(IMGNAME
)-root.squashfs-4k
)
526 rm -f
$(KDIR
)/root.squashfs-4k.tmp0
530 $(call Image
/Build
/$(1))
531 dd if
=$(KDIR
)/root.
$(1) of
=$(IMGNAME
)-root.
$(1) bs
=128k conv
=sync
533 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
536 $(eval
$(call BuildImage
))