2 # Copyright (C) 2008-2010 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
11 $(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-$(patsubst jffs2-
%,jffs2
,$(patsubst squashfs-
%,squashfs
,$(1)))
14 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux
15 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage
16 fs_squash
:=squashfs-only
21 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
27 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux-initramfs
28 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage-initramfs
32 $(STAGING_DIR_HOST
)/bin
/lzma e
$(1) -lc1
-lp2
-pb2
$(2)
35 define PatchKernelLzma
36 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
37 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) '$(strip $(2))'
38 $(call CompressLzma
,$(KDIR
)/vmlinux-
$(1),$(KDIR
)/vmlinux-
$(1).bin.lzma
)
41 define PatchKernelGzip
42 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
43 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) '$(strip $(2))'
44 gzip
-9 -c
$(KDIR
)/vmlinux-
$(1) > $(KDIR
)/vmlinux-
$(1).bin.gz
48 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma \
49 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
54 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip \
55 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
59 define Image
/BuildKernel
60 cp
$(KDIR
)/vmlinux.elf
$(VMLINUX
).elf
61 cp
$(KDIR
)/vmlinux
$(VMLINUX
).bin
62 gzip
-9 -c
$(KDIR
)/vmlinux
> $(KDIR
)/vmlinux.bin.gz
63 $(call CompressLzma
,$(KDIR
)/vmlinux
,$(KDIR
)/vmlinux.bin.lzma
)
64 dd if
=$(KDIR
)/vmlinux.bin.lzma of
=$(VMLINUX
).lzma bs
=65536 conv
=sync
65 dd if
=$(KDIR
)/vmlinux.bin.gz of
=$(VMLINUX
).gz bs
=65536 conv
=sync
66 $(call MkImageGzip
,$(KDIR
)/vmlinux.bin.gz
,$(UIMAGE
)-gzip.bin
)
67 $(call MkImageLzma
,$(KDIR
)/vmlinux.bin.lzma
,$(UIMAGE
)-lzma.bin
)
68 $(call Image
/Build
/Initramfs
)
71 define Image
/Build
/WRT400N
72 $(call PatchKernelLzma
,$(2),$(3))
73 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
1310720 ]; then \
74 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
75 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6488064 ]; then \
76 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
78 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
80 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
81 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
83 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1280k conv
=sync
; \
84 dd if
=$(KDIR
)/root.
$(1) \
85 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
86 wrt400n
$(KDIR
)/vmlinux-
$(2).uImage
$(KDIR
)/root.
$(1) $(call imgname
,$(1),$(2))-factory.bin
; \
90 dir825b1_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,1024k
(kernel
),5184k
(rootfs
),64k
(caldata
)ro
,1600k
(unknown
)ro
,6208k@
0x50000(firmware
)
91 define Image
/Build
/DIR825B1
92 $(call PatchKernelLzma
,$(2),$(3) $(dir825b1_mtdlayout
))
93 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
1048576 ]; then \
94 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
95 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
5308416 ]; then \
96 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
98 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
100 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
101 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
103 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1024k conv
=sync
; \
104 dd if
=$(KDIR
)/root.
$(1) \
105 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
107 dd if
=$(call imgname
,$(1),$(2))-sysupgrade.bin
; \
108 echo
-n
"01AP94-AR7161-RT-080619-00"; \
109 ) > $(call imgname
,$(1),$(2))-backup-loader.bin
; \
110 if
[ `stat -c%s $(call imgname,$(1),$(2))-sysupgrade.bin` -gt
4194304 ]; then \
111 echo
"Warning: $(call imgname,$(1),$(2))-sysupgrade.bin is too big"; \
114 dd if
=$(call imgname
,$(1),$(2))-sysupgrade.bin bs
=4096k conv
=sync
; \
115 echo
-n
"00AP94-AR7161-RT-080619-00"; \
116 ) > $(call imgname
,$(1),$(2))-factory.bin
; \
121 define Image
/Build
/WZRHPG30XNH
122 $(call PatchKernelLzma
,$(2),$(3))
123 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
1048576 ]; then \
124 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
125 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
31850496 ]; then \
126 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
128 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
130 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
131 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
133 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1024k conv
=sync
; \
134 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
135 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
137 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
138 dd if
=$(call imgname
,$(1),$(2))-sysupgrade.bin
; \
139 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
140 buffalo-enc
-p
$(4) -v
1.76 \
141 -i
$(call imgname
,$(1),$(2))-sysupgrade.bin \
142 -o
$(KDIR
)/$(2).enc
; \
143 buffalo-tag
-b
$(4) -p
$(4) -a ath
-v
1.76 -m
1.01 -l mlang8 \
144 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
145 -i
$(KDIR
)/$(2).enc \
146 -o
$(call imgname
,$(1),$(2))-factory.bin
; \
150 cameo_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(config
)ro
,896k
(kernel
),2944k
(rootfs
),64k
(art
)ro
,3840k@
0x30000(firmware
)
151 define Image
/Build
/Cameo
152 $(call PatchKernelLzma
,$(2),$(3) $(cameo_mtdlayout
))
153 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
917504 ]; then \
154 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
155 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
2949120 ]; then \
156 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
158 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
160 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
161 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
163 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
164 dd if
=$(KDIR
)/root.
$(1) \
165 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
167 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
168 dd if
=$(KDIR
)/root.
$(1) bs
=2880k conv
=sync
; \
170 ) > $(call imgname
,$(1),$(2))-factory.bin
; \
174 cameo7240_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(nvram
)ro
,896k
(kernel
),2816k
(rootfs
),64k
(mac
)ro
,64k
(art
)ro
,3712k@
0x40000(firmware
)
175 define Image
/Build
/Cameo7240
176 $(call PatchKernelLzma
,$(2),$(3) $(cameo7240_mtdlayout
))
177 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
917504 ]; then \
178 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
179 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
2818048 ]; then \
180 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
182 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
184 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
185 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
187 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
188 dd if
=$(KDIR
)/root.
$(1) \
189 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
191 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
192 dd if
=$(KDIR
)/root.
$(1) bs
=2752k conv
=sync
; \
194 ) > $(call imgname
,$(1),$(2))-factory.bin
; \
198 define Image
/Build
/AP83
199 $(call PatchKernelGzip
,$(2),$(3))
200 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gz"` -gt
1310720 ]; then \
201 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.gz is too big"; \
202 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6619136 ]; then \
203 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
205 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip
-e \
207 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
208 -d
$(KDIR
)/vmlinux-
$(2).bin.gz \
209 $(KDIR
)/vmlinux-
$(2).uImage
; \
210 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
211 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
212 dd if
=$(KDIR
)/root.
$(1) \
213 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
215 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1280k conv
=sync
; \
216 dd if
=$(KDIR
)/root.
$(1); \
217 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
221 define Image
/Build
/PB92
222 $(call PatchKernelLzma
,$(2),$(3))
223 if
[ `stat -c%s $(KDIR)/vmlinux-$(2).bin.lzma` -gt
917504 ]; then \
224 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
225 elif
[ `stat -c%s $(KDIR)/root.$(1)` -gt
2818048 ]; then \
226 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
228 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
230 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
231 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma \
232 $(KDIR
)/vmlinux-
$(2).uImage
; \
233 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
234 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
235 dd if
=$(KDIR
)/root.
$(1) \
236 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
238 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
239 dd if
=$(KDIR
)/root.
$(1); \
240 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
244 define Image
/Build
/PB4X
245 $(call PatchKernelLzma
,$(2),$(3))
246 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma \
247 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
248 dd if
=$(KDIR
)/root.
$(1) \
249 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
250 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
251 "$(call imgname,kernel,$(2)).bin" \
252 "$(call imgname,$(1),$(2)-rootfs).bin" \
253 $(call imgname
,$(1),$(2))-sysupgrade.bin
256 define Image
/Build
/DB120
257 $(call PatchKernelLzma
,$(2),$(3))
258 if
[ `stat -c%s $(KDIR)/vmlinux-$(2).bin.lzma` -gt
1441792 ]; then \
259 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
260 elif
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6488064 ]; then \
261 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
263 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
265 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
266 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma \
267 $(KDIR
)/vmlinux-
$(2).uImage
; \
268 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
269 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
270 dd if
=$(KDIR
)/root.
$(1) \
271 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
273 dd if
=$(KDIR
)/root.
$(1); \
274 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1408k conv
=sync
; \
275 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
279 define Image
/Build
/MyLoader
280 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
$(3) \
281 -p0x030000
:0xe0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
282 -p0x110000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
283 $(call imgname
,$(1),$(2))-$(4)-factory.img
286 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
)
287 define Image
/Build
/UBNTXM
288 $(call PatchKernelLzma
,$(2),$(3) $(ubntxm_mtdlayout
))
289 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage.bin
)
290 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.bin of
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1024k conv
=sync
291 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
292 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
293 -k
$(KDIR
)/vmlinux-
$(2).uImage \
294 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
295 -o
$(call imgname
,$(1),$(2))-factory.bin
297 dd if
=$(KDIR
)/vmlinux-
$(2).uImage
; \
298 dd if
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1); \
299 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
302 define Image
/Build
/UBNT
303 $(call PatchKernelLzma
,$(2),$(3))
304 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma of
=$(KDIR
)/vmlinux-
$(2).lzma bs
=64k conv
=sync
305 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
306 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
307 -k
$(KDIR
)/vmlinux-
$(2).lzma \
308 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
309 -o
$(call imgname
,$(1),$(2))-factory.bin
310 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
311 "$(KDIR)/vmlinux-$(2).lzma" \
312 "$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)" \
313 $(call imgname
,$(1),$(2))-sysupgrade.bin
316 define Image
/Build
/Planex
317 $(call PatchKernelGzip
,$(2),$(3))
318 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.gz"` -gt
1441792 ]; then \
319 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.gz is too big"; \
320 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
6356992 ]; then \
321 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
323 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C gzip
-e \
325 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
326 -d
$(KDIR
)/vmlinux-
$(2).bin.gz
$(KDIR
)/vmlinux-
$(2).uImage
; \
328 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=1408k conv
=sync
; \
329 dd if
=$(KDIR
)/root.
$(1); \
330 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
331 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
334 -i
$(call imgname
,$(1),$(2))-sysupgrade.bin \
335 -o
$(call imgname
,$(1),$(2))-factory.bin
; \
339 define Image
/Build
/TPLINK
340 $(call PatchKernelGzip
,$(2),$(3))
341 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
342 -B
$(4) -N OpenWrt
-V
$(REVISION
)\
343 -k
$(KDIR
)/vmlinux-
$(2).bin.gz \
344 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
345 -o
$(call imgname
,$(1),$(2))-factory.bin
346 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
347 -B
$(4) -N OpenWrt
-V
$(REVISION
) -s \
348 -k
$(KDIR
)/vmlinux-
$(2).bin.gz \
349 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
350 -o
$(call imgname
,$(1),$(2))-sysupgrade.bin
353 define Image
/Build
/TPLINK
/initramfs
354 $(call PatchKernelGzip
,$(2),$(3))
355 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
356 -B
$(4) -N OpenWrt
-V
$(REVISION
) -s \
357 -k
$(KDIR
)/vmlinux-
$(2).bin.gz \
358 -o
$(call imgname
,$(1),$(2))-uImage.bin
361 define Image
/Build
/CyberTAN
362 $(call PatchKernelGzip
,$(2),$(3))
363 $(call MkImageGzip
,$(KDIR
)/vmlinux-
$(2).bin.gz
,$(KDIR
)/vmlinux-
$(2).uImage
)
364 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/image.tmp
-f
$(KDIR
)/vmlinux-
$(2).uImage \
365 -x
32 -a
0x10000 -x
-32 -f
$(KDIR
)/root.
$(1)
366 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) \
367 -i
$(KDIR
)/image.tmp \
368 -o
$(call imgname
,$(1),$(2))-sysupgrade.bin
369 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) -g \
370 -i
$(KDIR
)/image.tmp \
371 -o
$(call imgname
,$(1),$(2))-factory.bin
375 define Image
/Build
/Netgear
376 $(call PatchKernelLzma
,$(2),$(3) $($(4)))
377 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage
)
378 mkdir
-p
$(KDIR
)/wndr3700
/image
379 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
380 $(KDIR
)/vmlinux-
$(2).uImage \
381 $(KDIR
)/wndr3700
/image
/uImage \
383 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
384 $(KDIR
)/wndr3700
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp \
385 -nopad
-noappend
-root-owned
-be
386 -rm -rf
$(KDIR
)/wndr3700
387 mkimage
-A mips
-O linux
-T filesystem
-C none \
388 -a
0xbf070000 -e
0xbf070000 \
389 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
390 -d
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp \
391 $(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp2
392 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
393 $(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp2 \
394 $(KDIR
)/vmlinux-
$(2).uImage.squashfs \
396 -rm -f
$(KDIR
)/vmlinux-
$(2).uImage.squashfs.tmp
*
398 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.squashfs bs
=1024k conv
=sync
; \
399 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
400 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
402 [ -n
"$$$$r" ] && dashr
="-$$$$r" || dashr
= ; \
403 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
404 -B
$(6) -v OpenWrt.
$(REVISION
) -r
"$$$$r" $(8) \
405 -i
$(call imgname
,$(1),$(2))-sysupgrade.bin \
406 -o
$(call imgname
,$(1),$(2))-factory
$$$$dashr.img
; \
410 define Image
/Build
/Netgear
/initramfs
411 $(call PatchKernelLzma
,$(2),$(3) $($(4)))
412 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage
)
413 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
414 $(KDIR
)/vmlinux-
$(2).uImage \
415 $(call imgname
,$(1),$(2))-uImage.bin \
419 ifdef CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh
420 define Image
/Build
/ZyXEL
421 $(call PatchKernelLzma
,$(2),$(3))
422 if
[ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt
917504 ]; then \
423 echo
"Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
424 else if
[ `stat -c%s $(KDIR)/root.$(1)` -gt
2752512 ]; then \
425 echo
"Warning: $(KDIR)/root.$(1) is too big"; \
426 else if
[ ! -f
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin
]; then \
427 echo
"Warning: $(IMG_PREFIX)-$(2)-u-boot.bin not found"; \
429 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C lzma
-e \
431 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
432 -d
$(KDIR
)/vmlinux-
$(2).bin.lzma
$(KDIR
)/vmlinux-
$(2).uImage
; \
434 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=896k conv
=sync
; \
435 dd if
=$(KDIR
)/root.
$(1); \
436 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
; \
437 $(STAGING_DIR_HOST
)/bin
/mkzynfw \
439 -b
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin \
440 -r
$(call imgname
,$(1),$(2))-sysupgrade.bin
:0x10000 \
441 -o
$(call imgname
,$(1),$(2))-factory.bin
; \
446 define Image
/Build
/Zcomax
447 $(call PatchKernelLzma
,$(2),$(3))
448 $(call MkImageLzma
,$(KDIR
)/vmlinux-
$(2).bin.lzma
,$(KDIR
)/vmlinux-
$(2).uImage.bin
)
449 -$(STAGING_DIR_HOST
)/bin
/mkzcfw \
451 -k
$(KDIR
)/vmlinux-
$(2).uImage.bin \
452 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
453 -o
$(call imgname
,$(1),$(2))-factory.img
455 dd if
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=6208k count
=1 conv
=sync
; \
456 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.bin bs
=1472k count
=1; \
457 ) > $(call imgname
,$(1),$(2))-sysupgrade.bin
460 define Image
/Build
/Template
/initramfs
/initramfs
461 $(call Image
/Build
/$(1)/initramfs
,initramfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
464 define Image
/Build
/Template
/all/squashfs
465 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
468 define Image
/Build
/Template
/all/jffs2-64k
469 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
472 define Image
/Build
/Template
/all/jffs2-128k
473 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
476 define Image
/Build
/Template
/squashfs-only
/squashfs
477 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
480 define Image
/Build
/Template
/4k
/squashfs
481 $(call Image
/Build
/$(1),squashfs-4k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
484 define Image
/Build
/Template
/64k
/squashfs
485 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
488 define Image
/Build
/Template
/64k
/jffs2-64k
489 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
492 define Image
/Build
/Template
/128k
/squashfs
493 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
496 define Image
/Build
/Template
/128k
/jffs2-128k
497 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
500 ap81_cmdline
=board
=AP81 console
=ttyS0
,115200
501 define Image
/Build
/Profile
/AP81
502 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AP83
,ap81
,$(ap81_cmdline
))
505 ap83_cmdline
=board
=AP83 console
=ttyS0
,115200
506 define Image
/Build
/Profile
/AP83
507 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AP83
,ap83
,$(ap83_cmdline
))
510 db120_cmdline
=board
=DB120 console
=ttyS0
,115200
511 define Image
/Build
/Profile
/DB120
512 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),DB120
,db120
,$(db120_cmdline
))
515 pb42_cmdline
=board
=PB42 console
=ttyS0
,115200
516 define Image
/Build
/Profile
/PB42
517 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb42
,$(pb42_cmdline
))
520 pb44_cmdline
=board
=PB44 console
=ttyS0
,115200
521 define Image
/Build
/Profile
/PB44
522 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb44
,$(pb44_cmdline
))
525 pb92_cmdline
=board
=PB92 console
=ttyS0
,115200
526 define Image
/Build
/Profile
/PB92
527 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB92
,pb92
,$(pb92_cmdline
))
530 define Image
/Build
/Profile
/WP543
531 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x200000,2M
)
532 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x400000,4M
)
533 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x800000,8M
)
534 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x1000000,16M
)
537 dir600a1_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
538 define Image
/Build
/Profile
/DIR600A1
539 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,dir-600-a1
,$(dir600a1_cmdline
),"AP91-AR7240-RT-090223-00")
542 eap7660d_cmdline
=board
=EAP7660D console
=ttyS0
,115200
543 define Image
/Build
/Profile
/EAP7660D
544 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),PB4X
,eap7660d
,$(eap7660d_cmdline
))
547 ja76pf_cmdline
=board
=JA76PF console
=ttyS0
,115200
548 define Image
/Build
/Profile
/JA76PF
549 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,ja76pf
,$(ja76pf_cmdline
))
552 jwap003_cmdline
=board
=JWAP003 console
=ttyS0
,115200
553 define Image
/Build
/Profile
/JWAP003
554 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,jwap003
,$(jwap003_cmdline
))
557 fr54rtr_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
558 define Image
/Build
/Profile
/FR54RTR
559 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,fr-54rtr
,$(fr54rtr_cmdline
),"AP91-AR7240-RT-090223-01")
562 dir615c1_cmdline
=board
=DIR-615-C1 console
=ttyS0
,115200
563 define Image
/Build
/Profile
/DIR615C1
564 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo
,dir-615-c1
,$(dir615c1_cmdline
),"AP81-AR9130-RT-070614-02")
567 tew632brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
568 define Image
/Build
/Profile
/TEW632BRP
569 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo
,tew-632brp
,$(tew632brp_cmdline
),"AP81-AR9130-RT-070614-00")
572 tew652brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
573 define Image
/Build
/Profile
/TEW652BRP
574 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo
,tew-652brp
,$(tew652brp_cmdline
),"AP81-AR9130-RT-080609-05")
575 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo
,tew-652brp-recovery
,$(tew652brp_cmdline
),"AP81-AR9130-RT-070614-02")
578 a05rbw300n_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
579 define Image
/Build
/Profile
/A02RBW300N
580 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo
,a02-rb-w300n
,$(a05rbw300n_cmdline
),"AP81-AR9130-RT-070614-03")
583 ubntrs_cmdline
=board
=UBNT-RS console
=ttyS0
,115200
584 define Image
/Build
/Profile
/UBNTRS
585 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rs
,$(ubntrs_cmdline
),RS
,RSx
,ar7100
)
588 ubntrspro_cmdline
=board
=UBNT-RSPRO console
=ttyS0
,115200
589 define Image
/Build
/Profile
/UBNTRSPRO
590 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rspro
,$(ubntrspro_cmdline
),RSPRO
,RSPRO
,ar7100pro
)
593 ubntlssr71_cmdline
=board
=UBNT-LS-SR71 console
=ttyS0
,115200
594 define Image
/Build
/Profile
/UBNTLSSR71
595 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-ls-sr71
,$(ubntlssr71_cmdline
),LS-SR71
,LS-SR71
,ar7100
)
598 ubntbulletm_cmdline
=board
=UBNT-BM console
=ttyS0
,115200
599 define Image
/Build
/Profile
/UBNTBULLETM
600 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-bullet-m
,$(ubntbulletm_cmdline
),XM
,UBNTXM
,ar7240
)
603 ubntrocketm_cmdline
=board
=UBNT-RM console
=ttyS0
,115200
604 define Image
/Build
/Profile
/UBNTROCKETM
605 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-rocket-m
,$(ubntrocketm_cmdline
),XM
,UBNTXM
,ar7240
)
608 ubntnanom_cmdline
=board
=UBNT-NM console
=ttyS0
,115200
609 define Image
/Build
/Profile
/UBNTNANOM
610 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-nano-m
,$(ubntnanom_cmdline
),XM
,UBNTXM
,ar7240
)
613 ubntunifi_cmdline
=board
=UBNT-XM console
=ttyS0
,115200
614 define Image
/Build
/Profile
/UBNTUNIFI
615 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-unifi
,$(ubntunifi_cmdline
),XM
,UBNTXM
,ar7240
)
618 define Image
/Build
/Profile
/UBNT
619 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
620 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
621 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
622 $(call Image
/Build
/Profile
/UBNTBULLETM
,$(1))
623 $(call Image
/Build
/Profile
/UBNTROCKETM
,$(1))
624 $(call Image
/Build
/Profile
/UBNTNANOM
,$(1))
625 $(call Image
/Build
/Profile
/UBNTUNIFI
,$(1))
628 mzkw04nu_cmdline
=board
=MZK-W04NU console
=ttyS0
,115200
629 define Image
/Build
/Profile
/MZKW04NU
630 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w04nu
,$(mzkw04nu_cmdline
))
633 mzkw300nh_cmdline
=board
=MZK-W300NH console
=ttyS0
,115200
634 define Image
/Build
/Profile
/MZKW300NH
635 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w300nh
,$(mzkw300nh_cmdline
))
638 nbg460n_cmdline
=board
=NBG460N console
=ttyS0
,115200
639 define Image
/Build
/Profile
/NBG_460N_550N_550NH
640 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),ZyXEL
,nbg460n_550n_550nh
,$(nbg460n_cmdline
),NBG-460N
)
643 tlmr3220_cmdline
=board
=TL-MR3220 console
=ttyS0
,115200
644 define Image
/Build
/Profile
/TLMR3220V1
645 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-mr3220-v1
,$(tlmr3220_cmdline
),TL-MR3220v1
)
648 tlmr3420_cmdline
=board
=TL-MR3420 console
=ttyS0
,115200
649 define Image
/Build
/Profile
/TLMR3420V1
650 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-mr3420-v1
,$(tlmr3420_cmdline
),TL-MR3420v1
)
653 tlwa901nd_cmdline
=board
=TL-WA901ND console
=ttyS0
,115200
654 define Image
/Build
/Profile
/TLWA901NDV1
655 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wa901nd-v1
,$(tlwa901nd_cmdline
),TL-WA901NDv1
)
658 tlwa901ndv2_cmdline
=board
=TL-WA901ND-v2 console
=ttyS0
,115200
659 define Image
/Build
/Profile
/TLWA901NDV2
660 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wa901nd-v2
,$(tlwa901ndv2_cmdline
),TL-WA901NDv2
)
663 tlwe741ndv1_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
664 define Image
/Build
/Profile
/TLWR741NDV1
665 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wr741nd-v1
,$(tlwe741ndv1_cmdline
),TL-WR741NDv1
)
668 tlwe740nv1_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
669 define Image
/Build
/Profile
/TLWR740NV1
670 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wr740n-v1
,$(tlwe740nv1_cmdline
),TL-WR740Nv1
)
673 tlwr841nv15_cmdline
=board
=TL-WR841N-v1.5 console
=ttyS0
,115200
674 define Image
/Build
/Profile
/TLWR841NV15
675 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr841n-v1.5
,$(tlwr841nv15_cmdline
),TL-WR841Nv1.5
)
678 tlwr841ndv3_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
679 define Image
/Build
/Profile
/TLWR841NDV3
680 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr841nd-v3
,$(tlwr841ndv3_cmdline
),TL-WR841NDv3
)
683 tlwr841ndv5_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
684 define Image
/Build
/Profile
/TLWR841NDV5
685 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wr841nd-v5
,$(tlwr841ndv5_cmdline
),TL-WR841NDv5
)
688 tlwr841ndv7_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
689 define Image
/Build
/Profile
/TLWR841NDV7
690 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wr841nd-v7
,$(tlwr841ndv7_cmdline
),TL-WR841NDv7
)
693 tlwr941ndv2_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
694 define Image
/Build
/Profile
/TLWR941NDV2
695 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr941nd-v2
,$(tlwr941ndv2_cmdline
),TL-WR941NDv2
)
698 tlwr941ndv3_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
699 define Image
/Build
/Profile
/TLWR941NDV3
700 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr941nd-v3
,$(tlwr941ndv3_cmdline
),TL-WR941NDv2
)
703 tlwr941ndv4_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
704 define Image
/Build
/Profile
/TLWR941NDV4
705 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),TPLINK
,tl-wr941nd-v4
,$(tlwr941ndv4_cmdline
),TL-WR941NDv4
)
708 tlwr1043nd_cmdline
=board
=TL-WR1043ND console
=ttyS0
,115200
709 define Image
/Build
/Profile
/TLWR1043NDV1
710 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr1043nd-v1
,$(tlwr1043nd_cmdline
),TL-WR1043NDv1
)
713 wndr3700_cmdline
=board
=WNDR3700 console
=ttyS0
,115200
714 wndr3700_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),6656k
(rootfs
),64k
(art
)ro
,7680k@
0x70000(firmware
)
715 wndr3700v2_cmdline
=board
=WNDR3700v2 console
=ttyS0
,115200
716 wndr3700v2_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),14848k
(rootfs
),64k
(art
)ro
,15872k@
0x70000(firmware
)
717 define Image
/Build
/Profile
/WNDR3700
718 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700
,$(wndr3700_cmdline
),wndr3700_mtdlayout
,3700,WNDR3700
,"" NA
,)
719 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700v2
,$(wndr3700v2_cmdline
),wndr3700v2_mtdlayout
,3701,WNDR3700v2
,"",-H
29763654+16+64)
722 ap96_cmdline
=board
=AP96 console
=ttyS0
,115200
723 define Image
/Build
/Profile
/AP96
724 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AP83
,ap96
,$(ap96_cmdline
))
727 wr400n_cmdline
=board
=WRT400N console
=ttyS0
,115200
728 define Image
/Build
/Profile
/WRT400N
729 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WRT400N
,wrt400n
,$(wr400n_cmdline
))
732 dir825b1_cmdline
=board
=DIR-825-B1 console
=ttyS0
,115200
733 define Image
/Build
/Profile
/DIR825B1
734 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),DIR825B1
,dir-825-b1
,$(dir825b1_cmdline
))
737 wrt160nl_cmdline
=board
=WRT160NL console
=ttyS0
,115200
738 define Image
/Build
/Profile
/WRT160NL
739 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),CyberTAN
,wrt160nl
,$(wrt160nl_cmdline
),1.00.01)
742 wzrhpg300nh_cmdline
=board
=WZR-HP-G300NH console
=ttyS0
,115200
743 wzrhpg301nh_cmdline
=board
=WZR-HP-G301NH console
=ttyS0
,115200
744 define Image
/Build
/Profile
/WZRHPG30XNH
745 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-g300nh
,$(wzrhpg300nh_cmdline
),WZR-HP-G300NH
)
746 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-g301nh
,$(wzrhpg301nh_cmdline
),WZR-HP-G301NH
)
749 zcn1523h28_cmdline
=board
=ZCN-1523H-2 console
=ttyS0
,115200
750 define Image
/Build
/Profile
/ZCN1523H28
751 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-2-8
,$(zcn1523h28_cmdline
))
754 zcn1523h516_cmdline
=board
=ZCN-1523H-5 console
=ttyS0
,115200
755 define Image
/Build
/Profile
/ZCN1523H516
756 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-5-16
,$(zcn1523h516_cmdline
))
759 define Image
/Build
/Profile
/Default
760 $(call Image
/Build
/Profile
/AP81
,$(1))
761 $(call Image
/Build
/Profile
/AP83
,$(1))
762 $(call Image
/Build
/Profile
/A02RBW300N
,$(1))
763 $(call Image
/Build
/Profile
/DB120
,$(1))
764 $(call Image
/Build
/Profile
/DIR600A1
,$(1))
765 $(call Image
/Build
/Profile
/DIR615C1
,$(1))
766 $(call Image
/Build
/Profile
/DIR825B1
,$(1))
767 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
768 $(call Image
/Build
/Profile
/FR54RTR
,$(1))
769 $(call Image
/Build
/Profile
/JA76PF
,$(1))
770 $(call Image
/Build
/Profile
/JWAP003
,$(1))
771 $(call Image
/Build
/Profile
/MZKW04NU
,$(1))
772 $(call Image
/Build
/Profile
/MZKW300NH
,$(1))
773 $(call Image
/Build
/Profile
/NBG_460N_550N_550NH
,$(1))
774 $(call Image
/Build
/Profile
/PB42
,$(1))
775 $(call Image
/Build
/Profile
/PB44
,$(1))
776 $(call Image
/Build
/Profile
/PB92
,$(1))
777 $(call Image
/Build
/Profile
/TEW632BRP
,$(1))
778 $(call Image
/Build
/Profile
/TEW652BRP
,$(1))
779 $(call Image
/Build
/Profile
/TLMR3220V1
,$(1))
780 $(call Image
/Build
/Profile
/TLMR3420V1
,$(1))
781 $(call Image
/Build
/Profile
/TLWA901NDV1
,$(1))
782 $(call Image
/Build
/Profile
/TLWA901NDV2
,$(1))
783 $(call Image
/Build
/Profile
/TLWR741NDV1
,$(1))
784 $(call Image
/Build
/Profile
/TLWR740NV1
,$(1))
785 $(call Image
/Build
/Profile
/TLWR841NV15
,$(1))
786 $(call Image
/Build
/Profile
/TLWR841NDV3
,$(1))
787 $(call Image
/Build
/Profile
/TLWR841NDV5
,$(1))
788 $(call Image
/Build
/Profile
/TLWR841NDV7
,$(1))
789 $(call Image
/Build
/Profile
/TLWR941NDV2
,$(1))
790 $(call Image
/Build
/Profile
/TLWR941NDV3
,$(1))
791 $(call Image
/Build
/Profile
/TLWR941NDV4
,$(1))
792 $(call Image
/Build
/Profile
/TLWR1043NDV1
,$(1))
793 $(call Image
/Build
/Profile
/UBNT
,$(1))
794 $(call Image
/Build
/Profile
/WP543
,$(1))
795 $(call Image
/Build
/Profile
/WNDR3700
,$(1))
796 $(call Image
/Build
/Profile
/AP96
,$(1))
797 $(call Image
/Build
/Profile
/WRT400N
,$(1))
798 $(call Image
/Build
/Profile
/WRT160NL
,$(1))
799 $(call Image
/Build
/Profile
/WZRHPG30XNH
,$(1))
800 $(call Image
/Build
/Profile
/ZCN1523H28
,$(1))
801 $(call Image
/Build
/Profile
/ZCN1523H516
,$(1))
804 define Image
/Build
/Profile
/Minimal
805 $(call Image
/Build
/Profile
/Default
,$(1))
808 define Image
/Build
/Profile
/Madwifi
809 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
810 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
811 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
812 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
813 $(call Image
/Build
/Profile
/WP543
,$(1))
816 define Image
/Build
/squashfs
817 dd if
=$(KDIR
)/root.squashfs of
=$(KDIR
)/root.squashfs-4k.tmp0 bs
=4k conv
=sync
818 $(call add_jffs2_mark
,$(KDIR
)/root.squashfs-4k.tmp0
)
819 dd if
=$(KDIR
)/root.squashfs-4k.tmp0 of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.squashfs-4k bs
=4k conv
=sync
820 rm -f
$(KDIR
)/root.squashfs-4k.tmp0
821 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
824 define Image
/Build
/Initramfs
825 $(call Image
/Build
/Profile
/$(PROFILE
),initramfs
)
829 $(call Image
/Build
/$(1))
830 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=128k conv
=sync
832 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
835 $(eval
$(call BuildImage
))