2 # Copyright (C) 2008-2011 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)))
15 $(call imgname
,$(1),$(2))-sysupgrade.bin
19 $(call imgname
,$(1),$(2))-factory.bin
22 LOADER_MAKE
:= $(NO_TRACE_MAKE
) -C lzma-loader KDIR
=$(KDIR
)
24 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux
25 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage
26 fs_squash
:=squashfs-only
30 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
35 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux-initramfs
36 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage-initramfs
40 $(STAGING_DIR_HOST
)/bin
/lzma e
$(1) -lc1
-lp2
-pb2
$(2)
43 define PatchKernelLzma
44 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
45 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) "$(strip $(2))"
46 $(call CompressLzma
,$(KDIR
)/vmlinux-
$(1),$(KDIR
)/vmlinux-
$(1).bin.lzma
)
49 define PatchKernelGzip
50 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
51 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) "$(strip $(2))"
52 gzip
-9 -c
$(KDIR
)/vmlinux-
$(1) > $(KDIR
)/vmlinux-
$(1).bin.gz
56 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C
$(1) $(2) \
57 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
62 $(call PatchKernelLzma
,$(1),$(2))
63 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux-
$(1).bin.lzma
,$(KDIR
)/vmlinux-
$(1).uImage
)
67 $(call PatchKernelGzip
,$(1),$(2))
68 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux-
$(1).bin.gz
,$(KDIR
)/vmlinux-
$(1).uImage
)
72 $(call MkuImage
,lzma
,-M
0x4f4b4c49,$(KDIR
)/vmlinux.bin.lzma
,$(KDIR
)/vmlinux-
$(1).okli
)
76 if
[ `stat -c%s "$(1)"` -gt
$(2) ]; then \
77 echo
"Warning: $(1) is too big"; \
78 else if
[ `stat -c%s $(3)` -gt
$(4) ]; then \
79 echo
"Warning: $(3) is too big"; \
81 ( dd if
=$(1) bs
=$(2) conv
=sync
; dd if
=$(3) ) > $(5); \
86 $(call CatFiles
,$(KDIR
)/vmlinux-
$(2).uImage
,$(3),$(KDIR
)/root.
$(1),$(4),$(call sysupname
,$(1),$(2)))
90 $(call CatFiles
,$(KDIR
)/root.
$(1),$(4),$(KDIR
)/vmlinux-
$(2).uImage
,$(3),$(call sysupname
,$(1),$(2)))
93 define Image
/BuildLoader
94 -rm -rf
$(KDIR
)/lzma-loader
95 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)"\
96 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
97 LOADER_DATA
="$(KDIR)/vmlinux.bin.lzma" \
101 define Image
/BuildLoaderAlone
102 -rm -rf
$(KDIR
)/lzma-loader
103 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)" \
104 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
105 FLASH_OFFS
=$(4) FLASH_MAX
=$(5) \
113 define Image
/BuildKernel
114 cp
$(KDIR
)/vmlinux.elf
$(VMLINUX
).elf
115 cp
$(KDIR
)/vmlinux
$(VMLINUX
).bin
116 gzip
-9 -c
$(KDIR
)/vmlinux
> $(KDIR
)/vmlinux.bin.gz
117 $(call CompressLzma
,$(KDIR
)/vmlinux
,$(KDIR
)/vmlinux.bin.lzma
)
118 dd if
=$(KDIR
)/vmlinux.bin.lzma of
=$(VMLINUX
).lzma bs
=65536 conv
=sync
119 dd if
=$(KDIR
)/vmlinux.bin.gz of
=$(VMLINUX
).gz bs
=65536 conv
=sync
120 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux.bin.gz
,$(UIMAGE
)-gzip.bin
)
121 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux.bin.lzma
,$(UIMAGE
)-lzma.bin
)
122 $(call Image
/Build
/Initramfs
)
125 define Image
/Build
/WRT400N
126 $(call MkuImageLzma
,$(2),$(3))
127 $(call Sysupgrade
/KR
,$(1),$(2),1310720,6488064)
128 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
129 wrt400n
$(KDIR
)/vmlinux-
$(2).uImage
$(KDIR
)/root.
$(1) $(call factoryname
,$(1),$(2)); \
133 dir825b1_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,1024k
(kernel
),5184k
(rootfs
),64k
(caldata
)ro
,1600k
(unknown
)ro
,6208k@
0x50000(firmware
)
134 define Image
/Build
/DIR825B1
135 $(call MkuImageLzma
,$(2),$(3) $(dir825b1_mtdlayout
))
136 $(call Sysupgrade
/KR
,$(1),$(2),1048576,5308416)
137 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
139 dd if
=$(call sysupname
,$(1),$(2)); \
140 echo
-n
"01AP94-AR7161-RT-080619-00"; \
141 ) > $(call imgname
,$(1),$(2))-backup-loader.bin
; \
142 if
[ `stat -c%s $(call sysupname,$(1),$(2))` -gt
4194304 ]; then \
143 echo
"Warning: $(call sysupname,$(1),$(2)) is too big"; \
146 dd if
=$(call sysupname
,$(1),$(2)) bs
=4096k conv
=sync
; \
147 echo
-n
"00AP94-AR7161-RT-080619-00"; \
148 ) > $(call factoryname
,$(1),$(2)); \
153 define Image
/Build
/WZRHPG30XNH
154 $(call MkuImageLzma
,$(2),$(3))
155 $(call Sysupgrade
/KR
,$(1),$(2),1048576,31850496)
156 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
158 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
159 dd if
=$(call sysupname
,$(1),$(2)); \
160 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
161 buffalo-enc
-p
$(4) -v
1.99 \
162 -i
$(call sysupname
,$(1),$(2)) \
163 -o
$(KDIR
)/$(2).enc
; \
164 buffalo-tag
-b
$(4) -p
$(4) -a ath
-v
1.99 -m
1.01 -l mlang8 \
165 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
166 -i
$(KDIR
)/$(2).enc \
167 -o
$(call factoryname
,$(1),$(2)); \
171 define Image
/Build
/WHRHPG300N
172 $(call MkuImageLzma
,$(2),$(3) $($(4)))
173 $(call Sysupgrade
/KR
,$(1),$(2),917504,2883584)
174 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
176 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
177 dd if
=$(call sysupname
,$(1),$(2)); \
178 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
179 buffalo-enc
-p
$(5) -v
1.99 \
180 -i
$(call sysupname
,$(1),$(2)) \
181 -o
$(KDIR
)/$(2).enc
; \
182 buffalo-tag
-b
$(5) -p
$(5) -a ath
-v
1.99 -m
1.01 -l mlang8 \
183 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
184 -i
$(KDIR
)/$(2).enc \
185 -o
$(call factoryname
,$(1),$(2)); \
189 define Image
/Build
/Cameo
190 $(call MkuImageLzma
,$(2),$(3) $($(4)))
191 $(call Sysupgrade
/KR
,$(1),$(2),$(5),$(6))
192 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
194 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=$(5) conv
=sync
; \
195 dd if
=$(KDIR
)/root.
$(1) bs
=$(6) conv
=sync
; \
197 ) > $(call factoryname
,$(1),$(2)); \
201 cameo913x_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(config
)ro
,896k
(kernel
),2944k
(rootfs
),64k
(art
)ro
,3840k@
0x30000(firmware
)
202 define Image
/Build
/Cameo913x
203 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo913x_mtdlayout
),917504,2949120,$(4))
206 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
)
207 define Image
/Build
/Cameo7240
208 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo7240_mtdlayout
),917504,2818048,$(4))
211 define Image
/Build
/Ath
212 $(call Sysupgrade
/$(7),$(1),$(2),$(5),$(6))
213 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
214 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
215 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
216 dd if
=$(KDIR
)/root.
$(1) \
217 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
221 define Image
/Build
/AthGzip
222 $(call MkuImageGzip
,$(2),$(3) $($(4)))
223 $(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
226 define Image
/Build
/AthGzip
/initramfs
227 $(call MkuImageLzma
,$(2),$(3) $($(4)))
228 $(CP
) $(KDIR
)/vmlinux-
$(2).uImage
$(call imgname
,$(1),$(2))-uImage.bin
231 define Image
/Build
/AthLzma
232 $(call MkuImageLzma
,$(2),$(3) $($(4)))
233 $(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
236 define Image
/Build
/AthLzma
/initramfs
237 $(call MkuImageLzma
,$(2),$(3) $($(4)))
238 $(CP
) $(KDIR
)/vmlinux-
$(2).uImage
$(call imgname
,$(1),$(2))-uImage.bin
241 define Image
/Build
/PB4X
242 $(call PatchKernelLzma
,$(2),$(3))
243 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma \
244 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
245 dd if
=$(KDIR
)/root.
$(1) \
246 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
247 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
248 "$(call imgname,kernel,$(2)).bin" \
249 "$(call imgname,$(1),$(2)-rootfs).bin" \
250 $(call sysupname
,$(1),$(2))
254 define Image
/Build
/MyLoader
255 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
$(3) \
256 -p0x030000
:0xe0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
257 -p0x110000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
258 $(call imgname
,$(1),$(2))-$(4)-factory.img
261 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
)
262 define Image
/Build
/UBNTXM
263 $(call MkuImageLzma
,$(2),$(3) $(ubntxm_mtdlayout
))
264 $(call Sysupgrade
/KR
,$(1),$(2),1048576,6684672)
265 dd if
=$(KDIR
)/vmlinux-
$(2).uImage of
=$(KDIR
)/vmlinux-
$(2).uImage.bin bs
=1024k conv
=sync
266 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
267 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
268 -k
$(KDIR
)/vmlinux-
$(2).uImage.bin \
269 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
270 -o
$(call factoryname
,$(1),$(2))
273 define Image
/Build
/UBNT
274 $(call PatchKernelLzma
,$(2),$(3))
275 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma of
=$(KDIR
)/vmlinux-
$(2).lzma bs
=64k conv
=sync
276 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
277 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
278 -k
$(KDIR
)/vmlinux-
$(2).lzma \
279 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
280 -o
$(call factoryname
,$(1),$(2))
281 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
282 "$(KDIR)/vmlinux-$(2).lzma" \
283 "$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)" \
284 $(call sysupname
,$(1),$(2))
287 define Image
/Build
/Planex
288 $(call MkuImageGzip
,$(2),$(3))
289 $(call Sysupgrade
/KR
,$(1),$(2),1441792,6356992)
290 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
291 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
294 -i
$(call sysupname
,$(1),$(2)) \
295 -o
$(call factoryname
,$(1),$(2)); \
299 define Image
/Build
/TPLINKOLD
300 $(call Image
/BuildLoaderAlone
,$(2),gz
,$(3),0x22000,0)
301 $(call MkuImageOKLI
,$(2))
303 dd if
=$(KDIR
)/loader-
$(2).gz bs
=7680 count
=1 conv
=sync
; \
304 dd if
=$(KDIR
)/vmlinux-
$(2).okli conv
=sync
; \
305 ) > $(KDIR
)/kernel-
$(2).bin
306 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
307 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
)\
308 -k
$(KDIR
)/kernel-
$(2).bin \
309 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
310 -o
$(call factoryname
,$(1),$(2))
311 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
312 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
313 -k
$(KDIR
)/kernel-
$(2).bin \
314 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
315 -o
$(call sysupname
,$(1),$(2))
318 define Image
/Build
/TPLINKOLD
/initramfs
319 $(call Image
/BuildLoader
,$(2),gz
,$(3),0x80060000)
320 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
321 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
322 -k
$(KDIR
)/loader-
$(2).gz \
323 -o
$(call imgname
,$(1),$(2))-uImage.bin
326 define Image
/Build
/TPLINK
327 $(call Image
/BuildLoaderAlone
,$(2),gz
,$(3),0x22000,0)
328 $(call MkuImageOKLI
,$(2))
330 dd if
=$(KDIR
)/loader-
$(2).gz bs
=7680 count
=1 conv
=sync
; \
331 dd if
=$(KDIR
)/vmlinux-
$(2).okli conv
=sync
; \
332 ) > $(KDIR
)/kernel-
$(2).bin
333 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
334 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
)\
335 -k
$(KDIR
)/kernel-
$(2).bin \
336 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) -a
0x10000 \
337 -o
$(call factoryname
,$(1),$(2))
338 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
339 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
340 -k
$(KDIR
)/kernel-
$(2).bin \
341 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) -a
0x10000 \
342 -o
$(call sysupname
,$(1),$(2))
345 define Image
/Build
/TPLINK
/initramfs
346 $(call Image
/BuildLoader
,$(2),gz
,$(3),0x80060000)
347 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
348 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
349 -k
$(KDIR
)/loader-
$(2).gz \
350 -o
$(call imgname
,$(1),$(2))-uImage.bin
353 define Image
/Build
/TPLINK-LZMA
354 $(call PatchKernelLzma
,$(2),$(3))
355 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
356 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
)\
357 -k
$(KDIR
)/vmlinux-
$(2).bin.lzma \
358 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) -a
0x10000 \
359 -o
$(call factoryname
,$(1),$(2))
360 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
361 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s \
362 -k
$(KDIR
)/vmlinux-
$(2).bin.lzma \
363 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) -a
0x10000 \
364 -o
$(call sysupname
,$(1),$(2))
367 define Image
/Build
/TPLINK-LZMA
/initramfs
368 $(call PatchKernelLzma
,$(2),$(3))
369 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
370 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s \
371 -k
$(KDIR
)/vmlinux-
$(2).bin.lzma \
372 -o
$(call imgname
,$(1),$(2))-uImage.bin
375 define Image
/Build
/CyberTAN
376 $(call MkuImageGzip
,$(2),$(3))
377 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/image.tmp
-f
$(KDIR
)/vmlinux-
$(2).uImage \
378 -x
32 -a
0x10000 -x
-32 -f
$(KDIR
)/root.
$(1)
379 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) \
380 -i
$(KDIR
)/image.tmp \
381 -o
$(call sysupname
,$(1),$(2))
382 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) -g \
383 -i
$(KDIR
)/image.tmp \
384 -o
$(call factoryname
,$(1),$(2))
388 define Image
/Build
/Netgear
/Build_uImage
389 $(call MkuImageLzma
,$(1),$(2) $(3))
391 mkdir
-p
$(KDIR
)/$(1)/image
392 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
393 $(KDIR
)/vmlinux-
$(1).uImage \
394 $(KDIR
)/$(1)/image
/uImage \
396 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
397 $(KDIR
)/$(1) $(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp \
398 -nopad
-noappend
-root-owned
-be
400 mkimage
-A mips
-O linux
-T filesystem
-C none \
401 -a
0xbf070000 -e
0xbf070000 \
402 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
403 -d
$(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp \
404 $(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp2
405 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
406 $(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp2 \
407 $(KDIR
)/vmlinux-
$(1).uImage.squashfs \
409 -rm -f
$(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp
*
412 define Image
/Build
/Netgear
/Estimate_uImage
413 $(call Image
/Build
/Netgear
/Build_uImage
,$(1)_est
,$(2),$(3),$(4))
416 kk
=`echo '$(3)' | sed -e 's/.*[:,]\([0-9]*\)k(kernel).*/\1/'`; \
417 rk
=`echo '$(3)' | sed -e 's/.*[:,]\([0-9]*\)k(rootfs).*/\1/'`; \
418 let
'tk = kk + rk'; \
419 s
=`stat -c'%s' '$(KDIR)/vmlinux-$(1)_est.uImage.squashfs'`; \
420 c
=`echo '$(3)' | wc -c`; \
421 let
'kk = (((s + c) / (64 * 1024) + 1) * 64)'; \
422 let
'rk = tk - kk'; \
423 echo
'$(3)' | sed
-e
"s/[0-9]*k(kernel)/$$$${kk}k(kernel)/" \
424 -e
"s/[0-9]*k(rootfs)/$$$${rk}k(rootfs)/" > \
425 '$(KDIR)/$(1)_mtdparts'; \
426 let
'k = kk * 1024'; \
427 echo
"$$$${k}" > '$(KDIR)/$(1)_kernel_maxsize'; \
428 let
'r = rk * 1024'; \
429 echo
"$$$${r}" > '$(KDIR)/$(1)_rootfs_maxsize'; \
431 -rm -f
$(KDIR
)/vmlinux-
$(1)_est \
432 $(KDIR
)/vmlinux-
$(1)_est.bin.lzma \
433 $(KDIR
)/vmlinux-
$(1)_est.uImage \
434 $(KDIR
)/vmlinux-
$(1)_est.uImage.squashfs
437 define Image
/Build
/Netgear
438 $(call Image
/Build
/Netgear
/Estimate_uImage
,$(2),$(3),$(4),$(5))
439 $(call Image
/Build
/Netgear
/Build_uImage
,$(2),$(3),`cat $(KDIR)/$(2)_mtdparts`,$(5))
440 if
[ `stat -c%s '$(KDIR)/vmlinux-$(2).uImage.squashfs'` -gt \
441 `cat '$(KDIR)/$(2)_kernel_maxsize'` ]; then \
442 echo
"$(KDIR)/vmlinux-$(2).uImage.squashfs is too big" >& 2; \
443 else if
[ `stat -c%s '$(KDIR)/root.$(1)'` -gt \
444 `cat '$(KDIR)/$(2)_rootfs_maxsize'` ]; then \
445 echo
"$(KDIR)/root.$(1) is too big" >& 2; \
449 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.squashfs \
450 bs
=`cat '$(KDIR)/$(2)_kernel_maxsize'` conv
=sync
; \
451 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
452 ) > $(call sysupname
,$(1),$(2)); \
454 [ -n
"$$$$r" ] && dashr
="-$$$$r" || dashr
= ; \
455 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
456 -B
$(6) -v OpenWrt.
$(REVISION
) -r
"$$$$r" $(8) \
457 -i
$(call sysupname
,$(1),$(2)) \
458 -o
$(call imgname
,$(1),$(2))-factory
$$$$dashr.img
; \
463 define Image
/Build
/Netgear
/initramfs
464 $(call MkuImageLzma
,$(2),$(3) $($(4)))
465 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
466 $(KDIR
)/vmlinux-
$(2).uImage \
467 $(call imgname
,$(1),$(2))-uImage.bin \
471 ifdef CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh
472 define Image
/Build
/ZyXEL
473 $(call MkuImageLzma
,$(2),$(3))
474 $(call Sysupgrade
/KR
,$(1),$(2),917504,2752512)
475 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
476 if
[ ! -f
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin
]; then \
477 echo
"Warning: $(IMG_PREFIX)-$(2)-u-boot.bin not found"; \
479 $(STAGING_DIR_HOST
)/bin
/mkzynfw \
481 -b
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin \
482 -r
$(call sysupname
,$(1),$(2)):0x10000 \
483 -o
$(call factoryname
,$(1),$(2)); \
488 define Image
/Build
/OpenMesh
489 $(call MkuImageLzma
,$(2))
490 -sh
$(TOPDIR
)/scripts
/om2p-fwupgradecfg-gen.sh \
491 "$(BUILD_DIR)/om2p-fwupgrade.cfg" \
492 "$(KDIR)/vmlinux-$(2).uImage" \
494 -sh
$(TOPDIR
)/scripts
/combined-ext-image.sh \
495 "$(3)" "$(call factoryname,$(1),$(2))" \
496 "$(BUILD_DIR)/om2p-fwupgrade.cfg" "fwupgrade.cfg" \
497 "$(KDIR)/vmlinux-$(2).uImage" "kernel" \
498 "$(KDIR)/root.$(1)" "rootfs"
501 define Image
/Build
/Zcomax
502 $(call MkuImageLzma
,$(2),$(3))
503 $(call Sysupgrade
/RK
,$(1),$(2),1507328,6356992)
504 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
505 $(STAGING_DIR_HOST
)/bin
/mkzcfw \
507 -k
$(KDIR
)/vmlinux-
$(2).uImage \
508 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
509 -o
$(call imgname
,$(1),$(2))-factory.img
; \
513 define Image
/Build
/Template
/initramfs
/initramfs
514 $(call Image
/Build
/$(1)/initramfs
,initramfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
517 define Image
/Build
/Template
/all/squashfs
518 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
521 define Image
/Build
/Template
/all/jffs2-64k
522 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
525 define Image
/Build
/Template
/all/jffs2-128k
526 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
529 define Image
/Build
/Template
/squashfs-only
/squashfs
530 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
533 define Image
/Build
/Template
/64k
/squashfs
534 $(call Image
/Build
/$(1),squashfs-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
537 define Image
/Build
/Template
/64k
/jffs2-64k
538 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
541 define Image
/Build
/Template
/128k
/squashfs
542 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
545 define Image
/Build
/Template
/128k
/jffs2-128k
546 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
550 ap121_mtdlayout_2M
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,1216k
(rootfs
),704k
(kernel
),64k
(art
)ro
,1920k@
0x10000(firmware
)
551 ap121_mtdlayout_4M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,2752k
(rootfs
),896k
(kernel
),64k
(nvram
),64k
(art
)ro
,3648k@
0x50000(firmware
)
553 ap121_cmdline
=board
=AP121 console
=ttyATH0
,115200
554 define Image
/Build
/Profile
/AP121
555 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-2M
,$(ap121_cmdline
),ap121_mtdlayout_2M
,720896,1245184,RK
)
556 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-4M
,$(ap121_cmdline
),ap121_mtdlayout_4M
,917504,2818048,RK
)
559 ap121_mini_cmdline
=board
=AP121-MINI console
=ttyATH0
,115200
560 define Image
/Build
/Profile
/AP121MINI
561 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-mini
,$(ap121_mini_cmdline
),ap121_mtdlayout_4M
,917504,2818048,RK
)
564 ap81_cmdline
=board
=AP81 console
=ttyS0
,115200
565 define Image
/Build
/Profile
/AP81
566 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap81
,$(ap81_cmdline
),,1310720,6619136,KR
)
569 ap83_cmdline
=board
=AP83 console
=ttyS0
,115200
570 define Image
/Build
/Profile
/AP83
571 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap83
,$(ap83_cmdline
),,1310720,6619136,KR
)
574 ap96_cmdline
=board
=AP96 console
=ttyS0
,115200
575 define Image
/Build
/Profile
/AP96
576 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap96
,$(ap96_cmdline
),ap96_mtdlayout
,1769472,6291456,RK
)
579 db120_cmdline
=board
=DB120 console
=ttyS0
,115200
580 db120_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6336k
(rootfs
),1408k
(kernel
),64k
(nvram
),64k
(art
)ro
,7744k@
0x50000(firmware
)
581 define Image
/Build
/Profile
/DB120
582 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,db120
,$(db120_cmdline
),db120_mtdlayout
,1441792,6488064,RK
)
585 pb42_cmdline
=board
=PB42 console
=ttyS0
,115200
586 define Image
/Build
/Profile
/PB42
587 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb42
,$(pb42_cmdline
))
590 pb44_cmdline
=board
=PB44 console
=ttyS0
,115200
591 define Image
/Build
/Profile
/PB44
592 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb44
,$(pb44_cmdline
))
595 pb92_cmdline
=board
=PB92 console
=ttyS0
,115200
596 define Image
/Build
/Profile
/PB92
597 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,pb92
,$(pb92_cmdline
),,917504,2818048,KR
)
600 define Image
/Build
/Profile
/WP543
601 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x200000,2M
)
602 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x400000,4M
)
603 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x800000,8M
)
604 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x1000000,16M
)
607 dir600a1_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
608 define Image
/Build
/Profile
/DIR600A1
609 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,dir-600-a1
,$(dir600a1_cmdline
),"AP91-AR7240-RT-090223-00")
612 eap7660d_cmdline
=board
=EAP7660D console
=ttyS0
,115200
613 define Image
/Build
/Profile
/EAP7660D
614 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),PB4X
,eap7660d
,$(eap7660d_cmdline
))
617 ja76pf_cmdline
=board
=JA76PF console
=ttyS0
,115200
618 define Image
/Build
/Profile
/JA76PF
619 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,ja76pf
,$(ja76pf_cmdline
))
622 jwap003_cmdline
=board
=JWAP003 console
=ttyS0
,115200
623 define Image
/Build
/Profile
/JWAP003
624 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,jwap003
,$(jwap003_cmdline
))
627 fr54rtr_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
628 define Image
/Build
/Profile
/FR54RTR
629 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,fr-54rtr
,$(fr54rtr_cmdline
),"AP91-AR7240-RT-090223-01")
632 dir615c1_cmdline
=board
=DIR-615-C1 console
=ttyS0
,115200
633 define Image
/Build
/Profile
/DIR615C1
634 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,dir-615-c1
,$(dir615c1_cmdline
),"AP81-AR9130-RT-070614-02")
637 tew632brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
638 define Image
/Build
/Profile
/TEW632BRP
639 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-632brp
,$(tew632brp_cmdline
),"AP81-AR9130-RT-070614-00")
642 tew652brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
643 define Image
/Build
/Profile
/TEW652BRP
644 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-652brp
,$(tew652brp_cmdline
),"AP81-AR9130-RT-080609-05")
645 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-652brp-recovery
,$(tew652brp_cmdline
),"AP81-AR9130-RT-070614-02")
648 a05rbw300n_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
649 define Image
/Build
/Profile
/A02RBW300N
650 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,a02-rb-w300n
,$(a05rbw300n_cmdline
),"AP81-AR9130-RT-070614-03")
653 ubntairrouter_cmdline
=board
=UBNT-AR console
=ttyS0
,115200
654 define Image
/Build
/Profile
/UBNTAIRROUTER
655 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-airrouter
,$(ubntairrouter_cmdline
),XM
,UBNTXM
,ar7240
)
658 ubntrs_cmdline
=board
=UBNT-RS console
=ttyS0
,115200
659 define Image
/Build
/Profile
/UBNTRS
660 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rs
,$(ubntrs_cmdline
),RS
,RSx
,ar7100
)
663 ubntrspro_cmdline
=board
=UBNT-RSPRO console
=ttyS0
,115200
664 define Image
/Build
/Profile
/UBNTRSPRO
665 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rspro
,$(ubntrspro_cmdline
),RSPRO
,RSPRO
,ar7100pro
)
668 ubntlssr71_cmdline
=board
=UBNT-LS-SR71 console
=ttyS0
,115200
669 define Image
/Build
/Profile
/UBNTLSSR71
670 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-ls-sr71
,$(ubntlssr71_cmdline
),LS-SR71
,LS-SR71
,ar7100
)
673 ubntbulletm_cmdline
=board
=UBNT-BM console
=ttyS0
,115200
674 define Image
/Build
/Profile
/UBNTBULLETM
675 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-bullet-m
,$(ubntbulletm_cmdline
),XM
,UBNTXM
,ar7240
)
678 ubntrocketm_cmdline
=board
=UBNT-RM console
=ttyS0
,115200
679 define Image
/Build
/Profile
/UBNTROCKETM
680 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-rocket-m
,$(ubntrocketm_cmdline
),XM
,UBNTXM
,ar7240
)
683 ubntnanom_cmdline
=board
=UBNT-NM console
=ttyS0
,115200
684 define Image
/Build
/Profile
/UBNTNANOM
685 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-nano-m
,$(ubntnanom_cmdline
),XM
,UBNTXM
,ar7240
)
688 ubntunifi_cmdline
=board
=UBNT-XM console
=ttyS0
,115200
689 define Image
/Build
/Profile
/UBNTUNIFI
690 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-unifi
,$(ubntunifi_cmdline
),XM
,UBNTXM
,ar7240
)
693 define Image
/Build
/Profile
/UBNT
694 $(call Image
/Build
/Profile
/UBNTAIRROUTER
,$(1))
695 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
696 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
697 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
698 $(call Image
/Build
/Profile
/UBNTBULLETM
,$(1))
699 $(call Image
/Build
/Profile
/UBNTROCKETM
,$(1))
700 $(call Image
/Build
/Profile
/UBNTNANOM
,$(1))
701 $(call Image
/Build
/Profile
/UBNTUNIFI
,$(1))
704 mzkw04nu_cmdline
=board
=MZK-W04NU console
=ttyS0
,115200
705 define Image
/Build
/Profile
/MZKW04NU
706 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w04nu
,$(mzkw04nu_cmdline
))
709 mzkw300nh_cmdline
=board
=MZK-W300NH console
=ttyS0
,115200
710 define Image
/Build
/Profile
/MZKW300NH
711 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w300nh
,$(mzkw300nh_cmdline
))
714 nbg460n_cmdline
=board
=NBG460N console
=ttyS0
,115200
715 define Image
/Build
/Profile
/NBG_460N_550N_550NH
716 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),ZyXEL
,nbg460n_550n_550nh
,$(nbg460n_cmdline
),NBG-460N
)
719 define Image
/Build
/Profile
/OM2P
720 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),OpenMesh
,om2p
,OM2P
)
723 tlmr3220_cmdline
=board
=TL-MR3220 console
=ttyS0
,115200
724 define Image
/Build
/Profile
/TLMR3220
725 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-mr3220-v1
,$(tlmr3220_cmdline
),0x32200001,1,4M
)
728 tlmr3420_cmdline
=board
=TL-MR3420 console
=ttyS0
,115200
729 define Image
/Build
/Profile
/TLMR3420
730 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-mr3420-v1
,$(tlmr3420_cmdline
),0x34200001,1,4M
)
733 tlwa901_cmdline
=board
=TL-WA901ND console
=ttyS0
,115200
734 tlwa901v2_cmdline
=board
=TL-WA901ND-v2 console
=ttyS0
,115200
735 define Image
/Build
/Profile
/TLWA901
736 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wa901nd-v1
,$(tlwa901_cmdline
),0x09010001,1,4M
)
737 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wa901nd-v2
,$(tlwa901v2_cmdline
),0x09010002,1,4M
)
740 tlwr703_cmdline
=board
=TL-WR703N console
=ttyATH0
,115200
741 define Image
/Build
/Profile
/TLWR703
742 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK-LZMA
,tl-wr703n-v1
,$(tlwr703_cmdline
),0x07030101,1,4Mlzma
)
745 tlwr740_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
746 tlwr740v4_cmdline
=board
=TL-WR741ND-v4 console
=ttyATH0
,115200
747 define Image
/Build
/Profile
/TLWR740
748 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr740n-v1
,$(tlwr740_cmdline
),0x07400001,1,4M
)
749 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr740n-v3
,$(tlwr740_cmdline
),0x07400003,1,4M
)
750 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK-LZMA
,tl-wr740n-v4
,$(tlwr740v4_cmdline
),0x07400004,1,4Mlzma
)
753 tlwr741_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
754 tlwr741v4_cmdline
=board
=TL-WR741ND-v4 console
=ttyATH0
,115200
755 define Image
/Build
/Profile
/TLWR741
756 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr741nd-v1
,$(tlwr741_cmdline
),0x07410001,1,4M
)
757 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK-LZMA
,tl-wr741nd-v4
,$(tlwr741v4_cmdline
),0x07410004,1,4Mlzma
)
760 define Image
/Build
/Profile
/TLWR743
761 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr743nd-v1
,$(tlwr741_cmdline
),0x07430001,1,4M
)
764 tlwr841v15_cmdline
=board
=TL-WR841N-v1.5 console
=ttyS0
,115200
765 tlwr841v3_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
766 tlwr841v5_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
767 define Image
/Build
/Profile
/TLWR841
768 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINKOLD
,tl-wr841n-v1.5
,$(tlwr841v15_cmdline
),0x08410002,2,4M
)
769 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr841nd-v3
,$(tlwr841v3_cmdline
),0x08410003,3,4M
)
770 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr841nd-v5
,$(tlwr841v5_cmdline
),0x08410005,1,4M
)
771 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr841nd-v7
,$(tlwr841v5_cmdline
),0x08410007,1,4M
)
774 tlwr941v2_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
775 tlwr941v4_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
776 define Image
/Build
/Profile
/TLWR941
777 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr941nd-v2
,$(tlwr941v2_cmdline
),0x09410002,2,4M
)
778 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr941nd-v3
,$(tlwr941v2_cmdline
),0x09410002,2,4M
)
779 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr941nd-v4
,$(tlwr941v4_cmdline
),0x09410004,1,4M
)
782 tlwr1043_cmdline
=board
=TL-WR1043ND console
=ttyS0
,115200
783 define Image
/Build
/Profile
/TLWR1043
784 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr1043nd-v1
,$(tlwr1043_cmdline
),0x10430001,1,8M
)
787 wndr3700_cmdline
=board
=WNDR3700 console
=ttyS0
,115200
788 wndr3700_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),6656k
(rootfs
),64k
(art
)ro
,7680k@
0x70000(firmware
)
789 wndr3700v2_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),14848k
(rootfs
),64k
(art
)ro
,15872k@
0x70000(firmware
)
790 define Image
/Build
/Profile
/WNDR3700
791 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700
,$(wndr3700_cmdline
),$(wndr3700_mtdlayout
),3700,WNDR3700
,"" NA
,)
792 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700v2
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDR3700v2
,"",-H
29763654+16+64)
793 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndrmac
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDRMAC
,"",-H
29763654+16+64)
794 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3800
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDR3800
,"",-H
29763654+16+128)
795 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndrmacv2
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDRMACv2
,"",-H
29763654+16+128)
798 wr400n_cmdline
=board
=WRT400N console
=ttyS0
,115200
799 define Image
/Build
/Profile
/WRT400N
800 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WRT400N
,wrt400n
,$(wr400n_cmdline
))
803 dir825b1_cmdline
=board
=DIR-825-B1 console
=ttyS0
,115200
804 define Image
/Build
/Profile
/DIR825B1
805 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),DIR825B1
,dir-825-b1
,$(dir825b1_cmdline
))
808 wrt160nl_cmdline
=board
=WRT160NL console
=ttyS0
,115200
809 define Image
/Build
/Profile
/WRT160NL
810 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),CyberTAN
,wrt160nl
,$(wrt160nl_cmdline
),1.00.01)
813 whrg301n_cmdline
=board
=WHR-G301N console
=ttyS0
,115200
814 define Image
/Build
/Profile
/WHRG301N
815 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-g301n
,$(whrg301n_cmdline
),whrhpg300n_mtdlayout
,WHR-G301N
)
818 whrhpg300n_cmdline
=board
=WHR-HP-G300N console
=ttyS0
,115200
819 whrhpg300n_mtdlayout
=mtdparts
=spi0.0
:248k
(u-boot
)ro
,8k
(u-boot-env
)ro
,896k
(kernel
),2816k
(rootfs
),64k
(user_property
),64k
(art
)ro
,3712k@
0x40000(firmware
)
820 define Image
/Build
/Profile
/WHRHPG300N
821 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-hp-g300n
,$(whrhpg300n_cmdline
),whrhpg300n_mtdlayout
,WHR-HP-G300N
)
824 whrhpgn_cmdline
=board
=WHR-HP-GN console
=ttyS0
,115200
825 define Image
/Build
/Profile
/WHRHPGN
826 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-hp-gn
,$(whrhpgn_cmdline
),whrhpg300n_mtdlayout
,WHR-HP-GN
)
829 wzrhpg300nh_cmdline
=board
=WZR-HP-G300NH console
=ttyS0
,115200
830 define Image
/Build
/Profile
/WZRHPG300NH
831 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-g300nh
,$(wzrhpg300nh_cmdline
),WZR-HP-G300NH
)
834 wzrhpag300h_cmdline
=board
=WZR-HP-AG300H console
=ttyS0
,115200
835 define Image
/Build
/Profile
/WZRHPAG300H
836 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-ag300h
,$(wzrhpag300h_cmdline
),WZR-HP-AG300H
)
839 wzrhpg450h_cmdline
=board
=WZR-HP-G450H console
=ttyS0
,115200
840 define Image
/Build
/Profile
/WZRHPG450H
841 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WZRHPG30XNH
,wzr-hp-g450h
,$(wzrhpg450h_cmdline
),WZR-HP-AG450H
)
844 zcn1523h28_cmdline
=board
=ZCN-1523H-2 console
=ttyS0
,115200
845 define Image
/Build
/Profile
/ZCN1523H28
846 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-2-8
,$(zcn1523h28_cmdline
))
849 zcn1523h516_cmdline
=board
=ZCN-1523H-5 console
=ttyS0
,115200
850 define Image
/Build
/Profile
/ZCN1523H516
851 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-5-16
,$(zcn1523h516_cmdline
))
854 all0258n_cmdline
=board
=ALL0258N console
=ttyS0
,115200
855 define Image
/Build
/Profile
/ALL0258N
856 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,all0258n
,$(all0258n_cmdline
),,917504,5505024,KR
)
859 define Image
/Build
/Profile
/Default
860 $(call Image
/Build
/Profile
/ALL0258N
,$(1))
861 $(call Image
/Build
/Profile
/AP121
,$(1))
862 $(call Image
/Build
/Profile
/AP121MINI
,$(1))
863 $(call Image
/Build
/Profile
/AP81
,$(1))
864 $(call Image
/Build
/Profile
/AP83
,$(1))
865 $(call Image
/Build
/Profile
/A02RBW300N
,$(1))
866 $(call Image
/Build
/Profile
/DB120
,$(1))
867 $(call Image
/Build
/Profile
/DIR600A1
,$(1))
868 $(call Image
/Build
/Profile
/DIR615C1
,$(1))
869 $(call Image
/Build
/Profile
/DIR825B1
,$(1))
870 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
871 $(call Image
/Build
/Profile
/FR54RTR
,$(1))
872 $(call Image
/Build
/Profile
/JA76PF
,$(1))
873 $(call Image
/Build
/Profile
/JWAP003
,$(1))
874 $(call Image
/Build
/Profile
/MZKW04NU
,$(1))
875 $(call Image
/Build
/Profile
/MZKW300NH
,$(1))
876 $(call Image
/Build
/Profile
/NBG_460N_550N_550NH
,$(1))
877 $(call Image
/Build
/Profile
/OM2P
,$(1))
878 $(call Image
/Build
/Profile
/PB42
,$(1))
879 $(call Image
/Build
/Profile
/PB44
,$(1))
880 $(call Image
/Build
/Profile
/PB92
,$(1))
881 $(call Image
/Build
/Profile
/TEW632BRP
,$(1))
882 $(call Image
/Build
/Profile
/TEW652BRP
,$(1))
883 $(call Image
/Build
/Profile
/TLMR3220
,$(1))
884 $(call Image
/Build
/Profile
/TLMR3420
,$(1))
885 $(call Image
/Build
/Profile
/TLWA901
,$(1))
886 $(call Image
/Build
/Profile
/TLWR703
,$(1))
887 $(call Image
/Build
/Profile
/TLWR740
,$(1))
888 $(call Image
/Build
/Profile
/TLWR741
,$(1))
889 $(call Image
/Build
/Profile
/TLWR743
,$(1))
890 $(call Image
/Build
/Profile
/TLWR841
,$(1))
891 $(call Image
/Build
/Profile
/TLWR941
,$(1))
892 $(call Image
/Build
/Profile
/TLWR1043
,$(1))
893 $(call Image
/Build
/Profile
/UBNT
,$(1))
894 $(call Image
/Build
/Profile
/WP543
,$(1))
895 $(call Image
/Build
/Profile
/WNDR3700
,$(1))
896 $(call Image
/Build
/Profile
/AP96
,$(1))
897 $(call Image
/Build
/Profile
/WRT400N
,$(1))
898 $(call Image
/Build
/Profile
/WRT160NL
,$(1))
899 $(call Image
/Build
/Profile
/WHRG301N
,$(1))
900 $(call Image
/Build
/Profile
/WHRHPG300N
,$(1))
901 $(call Image
/Build
/Profile
/WHRHPGN
,$(1))
902 $(call Image
/Build
/Profile
/WZRHPG300NH
,$(1))
903 $(call Image
/Build
/Profile
/WZRHPAG300H
,$(1))
904 $(call Image
/Build
/Profile
/WZRHPG450H
,$(1))
905 $(call Image
/Build
/Profile
/ZCN1523H28
,$(1))
906 $(call Image
/Build
/Profile
/ZCN1523H516
,$(1))
909 define Image
/Build
/Profile
/Minimal
910 $(call Image
/Build
/Profile
/Default
,$(1))
913 define Image
/Build
/Profile
/Madwifi
914 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
915 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
916 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
917 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
918 $(call Image
/Build
/Profile
/WP543
,$(1))
921 define Image
/Build
/squashfs
922 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-64k
923 $(STAGING_DIR_HOST
)/bin
/padjffs2
$(KDIR
)/root.squashfs-64k
64
924 cp
$(KDIR
)/root.squashfs-64k
$(BIN_DIR
)/$(IMG_PREFIX
)-root.squashfs-64k
925 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
928 define Image
/Build
/Initramfs
929 $(call Image
/Build
/Profile
/$(PROFILE
),initramfs
)
933 $(call Image
/Build
/$(1))
934 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=128k conv
=sync
935 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
938 $(eval
$(call BuildImage
))