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
31 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
37 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux-initramfs
38 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage-initramfs
42 $(STAGING_DIR_HOST
)/bin
/lzma e
$(1) -lc1
-lp2
-pb2
$(2)
45 define PatchKernelLzma
46 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
47 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) "$(strip $(2))"
48 $(call CompressLzma
,$(KDIR
)/vmlinux-
$(1),$(KDIR
)/vmlinux-
$(1).bin.lzma
)
51 define PatchKernelGzip
52 cp
$(KDIR
)/vmlinux
$(KDIR
)/vmlinux-
$(1)
53 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux-
$(1) "$(strip $(2))"
54 gzip
-9 -c
$(KDIR
)/vmlinux-
$(1) > $(KDIR
)/vmlinux-
$(1).bin.gz
58 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C
$(1) $(2) \
59 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
64 $(call PatchKernelLzma
,$(1),$(2))
65 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux-
$(1).bin.lzma
,$(KDIR
)/vmlinux-
$(1).uImage
)
69 $(call PatchKernelGzip
,$(1),$(2))
70 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux-
$(1).bin.gz
,$(KDIR
)/vmlinux-
$(1).uImage
)
74 $(call MkuImage
,lzma
,-M
0x4f4b4c49,$(KDIR
)/vmlinux.bin.lzma
,$(KDIR
)/vmlinux-
$(1).okli
)
78 if
[ `stat -c%s "$(1)"` -gt
$(2) ]; then \
79 echo
"Warning: $(1) is too big"; \
80 else if
[ `stat -c%s $(3)` -gt
$(4) ]; then \
81 echo
"Warning: $(3) is too big"; \
83 ( dd if
=$(1) bs
=$(2) conv
=sync
; dd if
=$(3) ) > $(5); \
88 $(call CatFiles
,$(KDIR
)/vmlinux-
$(2).uImage
,$(3),$(KDIR
)/root.
$(1),$(4),$(call sysupname
,$(1),$(2)))
92 $(call CatFiles
,$(KDIR
)/root.
$(1),$(4),$(KDIR
)/vmlinux-
$(2).uImage
,$(3),$(call sysupname
,$(1),$(2)))
95 define Image
/BuildLoader
96 -rm -rf
$(KDIR
)/lzma-loader
97 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)"\
98 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
99 LOADER_DATA
="$(KDIR)/vmlinux.bin.lzma" \
103 define Image
/BuildLoaderAlone
104 -rm -rf
$(KDIR
)/lzma-loader
105 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)" \
106 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
107 FLASH_OFFS
=$(4) FLASH_MAX
=$(5) \
115 define Image
/BuildKernel
116 cp
$(KDIR
)/vmlinux.elf
$(VMLINUX
).elf
117 cp
$(KDIR
)/vmlinux
$(VMLINUX
).bin
118 gzip
-9 -c
$(KDIR
)/vmlinux
> $(KDIR
)/vmlinux.bin.gz
119 $(call CompressLzma
,$(KDIR
)/vmlinux
,$(KDIR
)/vmlinux.bin.lzma
)
120 dd if
=$(KDIR
)/vmlinux.bin.lzma of
=$(VMLINUX
).lzma bs
=65536 conv
=sync
121 dd if
=$(KDIR
)/vmlinux.bin.gz of
=$(VMLINUX
).gz bs
=65536 conv
=sync
122 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux.bin.gz
,$(UIMAGE
)-gzip.bin
)
123 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux.bin.lzma
,$(UIMAGE
)-lzma.bin
)
124 $(call Image
/Build
/Initramfs
)
127 define Image
/Build
/WRT400N
128 $(call MkuImageLzma
,$(2),$(3))
129 $(call Sysupgrade
/KR
,$(1),$(2),1310720,6488064)
130 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
131 wrt400n
$(KDIR
)/vmlinux-
$(2).uImage
$(KDIR
)/root.
$(1) $(call factoryname
,$(1),$(2)); \
135 dir825b1_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,1024k
(kernel
),5184k
(rootfs
),64k
(caldata
)ro
,1600k
(unknown
)ro
,6208k@
0x50000(firmware
)
136 define Image
/Build
/DIR825B1
137 $(call MkuImageLzma
,$(2),$(3) $(dir825b1_mtdlayout
))
138 $(call Sysupgrade
/KR
,$(1),$(2),1048576,5308416)
139 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
141 dd if
=$(call sysupname
,$(1),$(2)); \
142 echo
-n
"01AP94-AR7161-RT-080619-00"; \
143 ) > $(call imgname
,$(1),$(2))-backup-loader.bin
; \
144 if
[ `stat -c%s $(call sysupname,$(1),$(2))` -gt
4194304 ]; then \
145 echo
"Warning: $(call sysupname,$(1),$(2)) is too big"; \
148 dd if
=$(call sysupname
,$(1),$(2)) bs
=4096k conv
=sync
; \
149 echo
-n
"00AP94-AR7161-RT-080619-00"; \
150 ) > $(call factoryname
,$(1),$(2)); \
155 define Image
/Build
/WZRHPG30XNH
156 $(call MkuImageLzma
,$(2),$(3))
157 $(call Sysupgrade
/KR
,$(1),$(2),1048576,31850496)
158 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
160 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
161 dd if
=$(call sysupname
,$(1),$(2)); \
162 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
163 buffalo-enc
-p
$(4) -v
1.99 \
164 -i
$(call sysupname
,$(1),$(2)) \
165 -o
$(KDIR
)/$(2).enc
; \
166 buffalo-tag
-b
$(4) -p
$(4) -a ath
-v
1.99 -m
1.01 -l mlang8 \
167 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
168 -i
$(KDIR
)/$(2).enc \
169 -o
$(call factoryname
,$(1),$(2)); \
173 define Image
/Build
/WHRHPG300N
174 $(call MkuImageLzma
,$(2),$(3) $($(4)))
175 $(call Sysupgrade
/KR
,$(1),$(2),917504,2883584)
176 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
178 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
179 dd if
=$(call sysupname
,$(1),$(2)); \
180 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
181 buffalo-enc
-p
$(5) -v
1.99 \
182 -i
$(call sysupname
,$(1),$(2)) \
183 -o
$(KDIR
)/$(2).enc
; \
184 buffalo-tag
-b
$(5) -p
$(5) -a ath
-v
1.99 -m
1.01 -l mlang8 \
185 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
186 -i
$(KDIR
)/$(2).enc \
187 -o
$(call factoryname
,$(1),$(2)); \
191 define Image
/Build
/Cameo
192 $(call MkuImageLzma
,$(2),$(3) $($(4)))
193 $(call Sysupgrade
/KR
,$(1),$(2),$(5),$(6))
194 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
196 dd if
=$(KDIR
)/vmlinux-
$(2).uImage bs
=$(5) conv
=sync
; \
197 dd if
=$(KDIR
)/root.
$(1) bs
=$(6) conv
=sync
; \
199 ) > $(call factoryname
,$(1),$(2)); \
203 cameo913x_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(config
)ro
,896k
(kernel
),2944k
(rootfs
),64k
(art
)ro
,3840k@
0x30000(firmware
)
204 define Image
/Build
/Cameo913x
205 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo913x_mtdlayout
),917504,2949120,$(4))
208 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
)
209 define Image
/Build
/Cameo7240
210 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo7240_mtdlayout
),917504,2818048,$(4))
213 define Image
/Build
/Ath
214 $(call Sysupgrade
/$(7),$(1),$(2),$(5),$(6))
215 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
216 dd if
=$(KDIR
)/vmlinux-
$(2).uImage \
217 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
218 dd if
=$(KDIR
)/root.
$(1) \
219 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
223 define Image
/Build
/AthGzip
224 $(call MkuImageGzip
,$(2),$(3) $($(4)))
225 $(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
228 define Image
/Build
/AthGzip
/initramfs
229 $(call MkuImageLzma
,$(2),$(3) $($(4)))
230 $(CP
) $(KDIR
)/vmlinux-
$(2).uImage
$(call imgname
,$(1),$(2))-uImage.bin
233 define Image
/Build
/AthLzma
234 $(call MkuImageLzma
,$(2),$(3) $($(4)))
235 $(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
238 define Image
/Build
/AthLzma
/initramfs
239 $(call MkuImageLzma
,$(2),$(3) $($(4)))
240 $(CP
) $(KDIR
)/vmlinux-
$(2).uImage
$(call imgname
,$(1),$(2))-uImage.bin
243 define Image
/Build
/PB4X
244 $(call PatchKernelLzma
,$(2),$(3))
245 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma \
246 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
247 dd if
=$(KDIR
)/root.
$(1) \
248 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
249 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
250 "$(call imgname,kernel,$(2)).bin" \
251 "$(call imgname,$(1),$(2)-rootfs).bin" \
252 $(call sysupname
,$(1),$(2))
256 define Image
/Build
/MyLoader
257 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
$(3) \
258 -p0x030000
:0xe0000:al
:0x80060000:kernel
:$(KDIR
)/vmlinux.bin.lzma \
259 -p0x110000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
260 $(call imgname
,$(1),$(2))-$(4)-factory.img
263 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
)
264 define Image
/Build
/UBNTXM
265 $(call MkuImageLzma
,$(2),$(3) $(ubntxm_mtdlayout
))
266 $(call Sysupgrade
/KR
,$(1),$(2),1048576,6684672)
267 dd if
=$(KDIR
)/vmlinux-
$(2).uImage of
=$(KDIR
)/vmlinux-
$(2).uImage.bin bs
=1024k conv
=sync
268 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
269 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
270 -k
$(KDIR
)/vmlinux-
$(2).uImage.bin \
271 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
272 -o
$(call factoryname
,$(1),$(2))
275 define Image
/Build
/UBNT
276 $(call PatchKernelLzma
,$(2),$(3))
277 dd if
=$(KDIR
)/vmlinux-
$(2).bin.lzma of
=$(KDIR
)/vmlinux-
$(2).lzma bs
=64k conv
=sync
278 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
279 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
280 -k
$(KDIR
)/vmlinux-
$(2).lzma \
281 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
282 -o
$(call factoryname
,$(1),$(2))
283 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
284 "$(KDIR)/vmlinux-$(2).lzma" \
285 "$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)" \
286 $(call sysupname
,$(1),$(2))
289 define Image
/Build
/Planex
290 $(call MkuImageGzip
,$(2),$(3))
291 $(call Sysupgrade
/KR
,$(1),$(2),1441792,6356992)
292 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
293 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
296 -i
$(call sysupname
,$(1),$(2)) \
297 -o
$(call factoryname
,$(1),$(2)); \
301 define Image
/Build
/TPLINK
302 $(call Image
/BuildLoaderAlone
,$(2),gz
,$(3),0x22000,0)
303 $(call MkuImageOKLI
,$(2))
305 dd if
=$(KDIR
)/loader-
$(2).gz bs
=7680 count
=1 conv
=sync
; \
306 dd if
=$(KDIR
)/vmlinux-
$(2).okli conv
=sync
; \
307 ) > $(KDIR
)/kernel-
$(2).bin
308 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
309 -B
$(4) -N OpenWrt
-V
$(REVISION
)\
310 -k
$(KDIR
)/kernel-
$(2).bin \
311 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
312 -o
$(call factoryname
,$(1),$(2))
313 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
314 -B
$(4) -N OpenWrt
-V
$(REVISION
) -s \
315 -k
$(KDIR
)/kernel-
$(2).bin \
316 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
317 -o
$(call sysupname
,$(1),$(2))
320 define Image
/Build
/TPLINK
/initramfs
321 $(call Image
/BuildLoader
,$(2),gz
,$(3),0x80060000)
322 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
323 -B
$(4) -N OpenWrt
-V
$(REVISION
) -s \
324 -k
$(KDIR
)/loader-
$(2).gz \
325 -o
$(call imgname
,$(1),$(2))-uImage.bin
328 define Image
/Build
/TPLINK-LZMA
329 $(call PatchKernelLzma
,$(2),$(3))
330 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
331 -B
$(4) -N OpenWrt
-V
$(REVISION
)\
332 -k
$(KDIR
)/vmlinux-
$(2).bin.lzma \
333 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
334 -o
$(call factoryname
,$(1),$(2))
335 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
336 -B
$(4) -N OpenWrt
-V
$(REVISION
) -s \
337 -k
$(KDIR
)/vmlinux-
$(2).bin.lzma \
338 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
339 -o
$(call sysupname
,$(1),$(2))
342 define Image
/Build
/TPLINK-LZMA
/initramfs
343 $(call PatchKernelLzma
,$(2),$(3))
344 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
345 -B
$(4) -N OpenWrt
-V
$(REVISION
) -s \
346 -k
$(KDIR
)/vmlinux-
$(2).bin.lzma \
347 -o
$(call imgname
,$(1),$(2))-uImage.bin
350 define Image
/Build
/CyberTAN
351 $(call MkuImageGzip
,$(2),$(3))
352 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/image.tmp
-f
$(KDIR
)/vmlinux-
$(2).uImage \
353 -x
32 -a
0x10000 -x
-32 -f
$(KDIR
)/root.
$(1)
354 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) \
355 -i
$(KDIR
)/image.tmp \
356 -o
$(call sysupname
,$(1),$(2))
357 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) -g \
358 -i
$(KDIR
)/image.tmp \
359 -o
$(call factoryname
,$(1),$(2))
363 define Image
/Build
/Netgear
/Build_uImage
364 $(call MkuImageLzma
,$(1),$(2) $(3))
366 mkdir
-p
$(KDIR
)/$(1)/image
367 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
368 $(KDIR
)/vmlinux-
$(1).uImage \
369 $(KDIR
)/$(1)/image
/uImage \
371 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
372 $(KDIR
)/$(1) $(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp \
373 -nopad
-noappend
-root-owned
-be
375 mkimage
-A mips
-O linux
-T filesystem
-C none \
376 -a
0xbf070000 -e
0xbf070000 \
377 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
378 -d
$(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp \
379 $(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp2
380 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
381 $(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp2 \
382 $(KDIR
)/vmlinux-
$(1).uImage.squashfs \
384 -rm -f
$(KDIR
)/vmlinux-
$(1).uImage.squashfs.tmp
*
387 define Image
/Build
/Netgear
/Estimate_uImage
388 $(call Image
/Build
/Netgear
/Build_uImage
,$(1)_est
,$(2),$(3),$(4))
391 kk
=`echo '$(3)' | sed -e 's/.*[:,]\([0-9]*\)k(kernel).*/\1/'`; \
392 rk
=`echo '$(3)' | sed -e 's/.*[:,]\([0-9]*\)k(rootfs).*/\1/'`; \
393 let
'tk = kk + rk'; \
394 s
=`stat -c'%s' '$(KDIR)/vmlinux-$(1)_est.uImage.squashfs'`; \
395 c
=`echo '$(3)' | wc -c`; \
396 let
'kk = (((s + c) / (64 * 1024) + 1) * 64)'; \
397 let
'rk = tk - kk'; \
398 echo
'$(3)' | sed
-e
"s/[0-9]*k(kernel)/$$$${kk}k(kernel)/" \
399 -e
"s/[0-9]*k(rootfs)/$$$${rk}k(rootfs)/" > \
400 '$(KDIR)/$(1)_mtdparts'; \
401 let
'k = kk * 1024'; \
402 echo
"$$$${k}" > '$(KDIR)/$(1)_kernel_maxsize'; \
403 let
'r = rk * 1024'; \
404 echo
"$$$${r}" > '$(KDIR)/$(1)_rootfs_maxsize'; \
406 -rm -f
$(KDIR
)/vmlinux-
$(1)_est \
407 $(KDIR
)/vmlinux-
$(1)_est.bin.lzma \
408 $(KDIR
)/vmlinux-
$(1)_est.uImage \
409 $(KDIR
)/vmlinux-
$(1)_est.uImage.squashfs
412 define Image
/Build
/Netgear
413 $(call Image
/Build
/Netgear
/Estimate_uImage
,$(2),$(3),$(4),$(5))
414 $(call Image
/Build
/Netgear
/Build_uImage
,$(2),$(3),`cat $(KDIR)/$(2)_mtdparts`,$(5))
415 if
[ `stat -c%s '$(KDIR)/vmlinux-$(2).uImage.squashfs'` -gt \
416 `cat '$(KDIR)/$(2)_kernel_maxsize'` ]; then \
417 echo
"$(KDIR)/vmlinux-$(2).uImage.squashfs is too big" >& 2; \
418 else if
[ `stat -c%s '$(KDIR)/root.$(1)'` -gt \
419 `cat '$(KDIR)/$(2)_rootfs_maxsize'` ]; then \
420 echo
"$(KDIR)/root.$(1) is too big" >& 2; \
424 dd if
=$(KDIR
)/vmlinux-
$(2).uImage.squashfs \
425 bs
=`cat '$(KDIR)/$(2)_kernel_maxsize'` conv
=sync
; \
426 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
427 ) > $(call sysupname
,$(1),$(2)); \
429 [ -n
"$$$$r" ] && dashr
="-$$$$r" || dashr
= ; \
430 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
431 -B
$(6) -v OpenWrt.
$(REVISION
) -r
"$$$$r" $(8) \
432 -i
$(call sysupname
,$(1),$(2)) \
433 -o
$(call imgname
,$(1),$(2))-factory
$$$$dashr.img
; \
438 define Image
/Build
/Netgear
/initramfs
439 $(call MkuImageLzma
,$(2),$(3) $($(4)))
440 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
441 $(KDIR
)/vmlinux-
$(2).uImage \
442 $(call imgname
,$(1),$(2))-uImage.bin \
446 ifdef CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh
447 define Image
/Build
/ZyXEL
448 $(call MkuImageLzma
,$(2),$(3))
449 $(call Sysupgrade
/KR
,$(1),$(2),917504,2752512)
450 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
451 if
[ ! -f
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin
]; then \
452 echo
"Warning: $(IMG_PREFIX)-$(2)-u-boot.bin not found"; \
454 $(STAGING_DIR_HOST
)/bin
/mkzynfw \
456 -b
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin \
457 -r
$(call sysupname
,$(1),$(2)):0x10000 \
458 -o
$(call factoryname
,$(1),$(2)); \
463 define Image
/Build
/OpenMesh
464 $(call MkuImageLzma
,$(2))
465 -sh
$(TOPDIR
)/scripts
/om2p-fwupgradecfg-gen.sh \
466 "$(BUILD_DIR)/om2p-fwupgrade.cfg" \
467 "$(KDIR)/vmlinux-$(2).uImage" \
469 -sh
$(TOPDIR
)/scripts
/combined-ext-image.sh \
470 "$(3)" "$(call factoryname,$(1),$(2))" \
471 "$(BUILD_DIR)/om2p-fwupgrade.cfg" "fwupgrade.cfg" \
472 "$(KDIR)/vmlinux-$(2).uImage" "kernel" \
473 "$(KDIR)/root.$(1)" "rootfs"
476 define Image
/Build
/Zcomax
477 $(call MkuImageLzma
,$(2),$(3))
478 $(call Sysupgrade
/RK
,$(1),$(2),1507328,6356992)
479 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
480 $(STAGING_DIR_HOST
)/bin
/mkzcfw \
482 -k
$(KDIR
)/vmlinux-
$(2).uImage \
483 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
484 -o
$(call imgname
,$(1),$(2))-factory.img
; \
488 define Image
/Build
/Template
/initramfs
/initramfs
489 $(call Image
/Build
/$(1)/initramfs
,initramfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
492 define Image
/Build
/Template
/all/squashfs
493 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
496 define Image
/Build
/Template
/all/jffs2-64k
497 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
500 define Image
/Build
/Template
/all/jffs2-128k
501 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
504 define Image
/Build
/Template
/squashfs-only
/squashfs
505 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
508 define Image
/Build
/Template
/4k
/squashfs
509 $(call Image
/Build
/$(1),squashfs-4k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
512 define Image
/Build
/Template
/64k
/squashfs
513 $(call Image
/Build
/$(1),squashfs-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
516 define Image
/Build
/Template
/64k
/jffs2-64k
517 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
520 define Image
/Build
/Template
/128k
/squashfs
521 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
524 define Image
/Build
/Template
/128k
/jffs2-128k
525 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
529 ap121_mtdlayout_2M
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,1216k
(rootfs
),704k
(kernel
),64k
(art
)ro
,1920k@
0x10000(firmware
)
530 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
)
532 ap121_cmdline
=board
=AP121 console
=ttyATH0
,115200
533 define Image
/Build
/Profile
/AP121
534 $(call Image
/Build
/Template
/$(fs_4k
)/$(1),AthLzma
,ap121-2M
,$(ap121_cmdline
),ap121_mtdlayout_2M
,720896,1245184,RK
)
535 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-4M
,$(ap121_cmdline
),ap121_mtdlayout_4M
,917504,2818048,RK
)
538 ap121_mini_cmdline
=board
=AP121-MINI console
=ttyATH0
,115200
539 define Image
/Build
/Profile
/AP121MINI
540 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-mini
,$(ap121_mini_cmdline
),ap121_mtdlayout_4M
,917504,2818048,RK
)
543 ap81_cmdline
=board
=AP81 console
=ttyS0
,115200
544 define Image
/Build
/Profile
/AP81
545 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap81
,$(ap81_cmdline
),,1310720,6619136,KR
)
548 ap83_cmdline
=board
=AP83 console
=ttyS0
,115200
549 define Image
/Build
/Profile
/AP83
550 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap83
,$(ap83_cmdline
),,1310720,6619136,KR
)
553 ap96_cmdline
=board
=AP96 console
=ttyS0
,115200
554 define Image
/Build
/Profile
/AP96
555 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap96
,$(ap96_cmdline
),ap96_mtdlayout
,1769472,6291456,RK
)
558 db120_cmdline
=board
=DB120 console
=ttyS0
,115200
559 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
)
560 define Image
/Build
/Profile
/DB120
561 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,db120
,$(db120_cmdline
),db120_mtdlayout
,1441792,6488064,RK
)
564 pb42_cmdline
=board
=PB42 console
=ttyS0
,115200
565 define Image
/Build
/Profile
/PB42
566 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb42
,$(pb42_cmdline
))
569 pb44_cmdline
=board
=PB44 console
=ttyS0
,115200
570 define Image
/Build
/Profile
/PB44
571 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb44
,$(pb44_cmdline
))
574 pb92_cmdline
=board
=PB92 console
=ttyS0
,115200
575 define Image
/Build
/Profile
/PB92
576 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,pb92
,$(pb92_cmdline
),,917504,2818048,KR
)
579 define Image
/Build
/Profile
/WP543
580 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x200000,2M
)
581 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x400000,4M
)
582 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x800000,8M
)
583 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,0x1000000,16M
)
586 dir600a1_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
587 define Image
/Build
/Profile
/DIR600A1
588 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,dir-600-a1
,$(dir600a1_cmdline
),"AP91-AR7240-RT-090223-00")
591 eap7660d_cmdline
=board
=EAP7660D console
=ttyS0
,115200
592 define Image
/Build
/Profile
/EAP7660D
593 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),PB4X
,eap7660d
,$(eap7660d_cmdline
))
596 ja76pf_cmdline
=board
=JA76PF console
=ttyS0
,115200
597 define Image
/Build
/Profile
/JA76PF
598 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,ja76pf
,$(ja76pf_cmdline
))
601 jwap003_cmdline
=board
=JWAP003 console
=ttyS0
,115200
602 define Image
/Build
/Profile
/JWAP003
603 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,jwap003
,$(jwap003_cmdline
))
606 fr54rtr_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
607 define Image
/Build
/Profile
/FR54RTR
608 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,fr-54rtr
,$(fr54rtr_cmdline
),"AP91-AR7240-RT-090223-01")
611 dir615c1_cmdline
=board
=DIR-615-C1 console
=ttyS0
,115200
612 define Image
/Build
/Profile
/DIR615C1
613 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,dir-615-c1
,$(dir615c1_cmdline
),"AP81-AR9130-RT-070614-02")
616 tew632brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
617 define Image
/Build
/Profile
/TEW632BRP
618 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-632brp
,$(tew632brp_cmdline
),"AP81-AR9130-RT-070614-00")
621 tew652brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
622 define Image
/Build
/Profile
/TEW652BRP
623 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-652brp
,$(tew652brp_cmdline
),"AP81-AR9130-RT-080609-05")
624 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-652brp-recovery
,$(tew652brp_cmdline
),"AP81-AR9130-RT-070614-02")
627 a05rbw300n_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
628 define Image
/Build
/Profile
/A02RBW300N
629 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,a02-rb-w300n
,$(a05rbw300n_cmdline
),"AP81-AR9130-RT-070614-03")
632 ubntairrouter_cmdline
=board
=UBNT-AR console
=ttyS0
,115200
633 define Image
/Build
/Profile
/UBNTAIRROUTER
634 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-airrouter
,$(ubntairrouter_cmdline
),XM
,UBNTXM
,ar7240
)
637 ubntrs_cmdline
=board
=UBNT-RS console
=ttyS0
,115200
638 define Image
/Build
/Profile
/UBNTRS
639 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rs
,$(ubntrs_cmdline
),RS
,RSx
,ar7100
)
642 ubntrspro_cmdline
=board
=UBNT-RSPRO console
=ttyS0
,115200
643 define Image
/Build
/Profile
/UBNTRSPRO
644 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rspro
,$(ubntrspro_cmdline
),RSPRO
,RSPRO
,ar7100pro
)
647 ubntlssr71_cmdline
=board
=UBNT-LS-SR71 console
=ttyS0
,115200
648 define Image
/Build
/Profile
/UBNTLSSR71
649 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-ls-sr71
,$(ubntlssr71_cmdline
),LS-SR71
,LS-SR71
,ar7100
)
652 ubntbulletm_cmdline
=board
=UBNT-BM console
=ttyS0
,115200
653 define Image
/Build
/Profile
/UBNTBULLETM
654 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-bullet-m
,$(ubntbulletm_cmdline
),XM
,UBNTXM
,ar7240
)
657 ubntrocketm_cmdline
=board
=UBNT-RM console
=ttyS0
,115200
658 define Image
/Build
/Profile
/UBNTROCKETM
659 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-rocket-m
,$(ubntrocketm_cmdline
),XM
,UBNTXM
,ar7240
)
662 ubntnanom_cmdline
=board
=UBNT-NM console
=ttyS0
,115200
663 define Image
/Build
/Profile
/UBNTNANOM
664 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-nano-m
,$(ubntnanom_cmdline
),XM
,UBNTXM
,ar7240
)
667 ubntunifi_cmdline
=board
=UBNT-XM console
=ttyS0
,115200
668 define Image
/Build
/Profile
/UBNTUNIFI
669 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-unifi
,$(ubntunifi_cmdline
),XM
,UBNTXM
,ar7240
)
672 define Image
/Build
/Profile
/UBNT
673 $(call Image
/Build
/Profile
/UBNTAIRROUTER
,$(1))
674 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
675 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
676 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
677 $(call Image
/Build
/Profile
/UBNTBULLETM
,$(1))
678 $(call Image
/Build
/Profile
/UBNTROCKETM
,$(1))
679 $(call Image
/Build
/Profile
/UBNTNANOM
,$(1))
680 $(call Image
/Build
/Profile
/UBNTUNIFI
,$(1))
683 mzkw04nu_cmdline
=board
=MZK-W04NU console
=ttyS0
,115200
684 define Image
/Build
/Profile
/MZKW04NU
685 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w04nu
,$(mzkw04nu_cmdline
))
688 mzkw300nh_cmdline
=board
=MZK-W300NH console
=ttyS0
,115200
689 define Image
/Build
/Profile
/MZKW300NH
690 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w300nh
,$(mzkw300nh_cmdline
))
693 nbg460n_cmdline
=board
=NBG460N console
=ttyS0
,115200
694 define Image
/Build
/Profile
/NBG_460N_550N_550NH
695 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),ZyXEL
,nbg460n_550n_550nh
,$(nbg460n_cmdline
),NBG-460N
)
698 define Image
/Build
/Profile
/OM2P
699 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),OpenMesh
,om2p
,OM2P
)
702 tlmr3220_cmdline
=board
=TL-MR3220 console
=ttyS0
,115200
703 define Image
/Build
/Profile
/TLMR3220V1
704 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-mr3220-v1
,$(tlmr3220_cmdline
),TL-MR3220v1
)
707 tlmr3420_cmdline
=board
=TL-MR3420 console
=ttyS0
,115200
708 define Image
/Build
/Profile
/TLMR3420V1
709 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-mr3420-v1
,$(tlmr3420_cmdline
),TL-MR3420v1
)
712 tlwa901nd_cmdline
=board
=TL-WA901ND console
=ttyS0
,115200
713 define Image
/Build
/Profile
/TLWA901NDV1
714 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wa901nd-v1
,$(tlwa901nd_cmdline
),TL-WA901NDv1
)
717 tlwa901ndv2_cmdline
=board
=TL-WA901ND-v2 console
=ttyS0
,115200
718 define Image
/Build
/Profile
/TLWA901NDV2
719 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wa901nd-v2
,$(tlwa901ndv2_cmdline
),TL-WA901NDv2
)
722 tlwr741ndv1_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
723 define Image
/Build
/Profile
/TLWR741NDV1
724 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr741nd-v1
,$(tlwr741ndv1_cmdline
),TL-WR741NDv1
)
727 tlwr741ndv4_cmdline
=board
=TL-WR741ND-v4 console
=ttyATH0
,115200
728 define Image
/Build
/Profile
/TLWR741NDV4
729 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK-LZMA
,tl-wr741nd-v4
,$(tlwr741ndv4_cmdline
),TL-WR741NDv4
)
732 tlwr740nv1_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
733 define Image
/Build
/Profile
/TLWR740NV1
734 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr740n-v1
,$(tlwr740nv1_cmdline
),TL-WR740Nv1
)
737 tlwr740nv3_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
738 define Image
/Build
/Profile
/TLWR740NV3
739 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr740n-v3
,$(tlwr740nv3_cmdline
),TL-WR740Nv3
)
742 define Image
/Build
/Profile
/TLWR743NDV1
743 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr743nd-v1
,$(tlwr741ndv1_cmdline
),TL-WR743NDv1
)
746 tlwr841nv15_cmdline
=board
=TL-WR841N-v1.5 console
=ttyS0
,115200
747 define Image
/Build
/Profile
/TLWR841NV15
748 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr841n-v1.5
,$(tlwr841nv15_cmdline
),TL-WR841Nv1.5
)
751 tlwr841ndv3_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
752 define Image
/Build
/Profile
/TLWR841NDV3
753 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr841nd-v3
,$(tlwr841ndv3_cmdline
),TL-WR841NDv3
)
756 tlwr841ndv5_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
757 define Image
/Build
/Profile
/TLWR841NDV5
758 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr841nd-v5
,$(tlwr841ndv5_cmdline
),TL-WR841NDv5
)
761 tlwr841ndv7_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
762 define Image
/Build
/Profile
/TLWR841NDV7
763 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr841nd-v7
,$(tlwr841ndv7_cmdline
),TL-WR841NDv7
)
766 tlwr941ndv2_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
767 define Image
/Build
/Profile
/TLWR941NDV2
768 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr941nd-v2
,$(tlwr941ndv2_cmdline
),TL-WR941NDv2
)
771 tlwr941ndv3_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
772 define Image
/Build
/Profile
/TLWR941NDV3
773 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr941nd-v3
,$(tlwr941ndv3_cmdline
),TL-WR941NDv2
)
776 tlwr941ndv4_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
777 define Image
/Build
/Profile
/TLWR941NDV4
778 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK
,tl-wr941nd-v4
,$(tlwr941ndv4_cmdline
),TL-WR941NDv4
)
781 tlwr1043nd_cmdline
=board
=TL-WR1043ND console
=ttyS0
,115200
782 define Image
/Build
/Profile
/TLWR1043NDV1
783 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINK
,tl-wr1043nd-v1
,$(tlwr1043nd_cmdline
),TL-WR1043NDv1
)
786 tlwr703n_cmdline
=board
=TL-WR703N console
=ttyATH0
,115200
787 define Image
/Build
/Profile
/TLWR703NV1
788 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK-LZMA
,tl-wr703n-v1
,$(tlwr703n_cmdline
),TL-WR703Nv1
)
791 wndr3700_cmdline
=board
=WNDR3700 console
=ttyS0
,115200
792 wndr3700_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),6656k
(rootfs
),64k
(art
)ro
,7680k@
0x70000(firmware
)
793 wndr3700v2_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),14848k
(rootfs
),64k
(art
)ro
,15872k@
0x70000(firmware
)
794 define Image
/Build
/Profile
/WNDR3700
795 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700
,$(wndr3700_cmdline
),$(wndr3700_mtdlayout
),3700,WNDR3700
,"" NA
,)
796 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700v2
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDR3700
,"",-H
29763654+16+64)
797 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3800
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDR3700
,"",-H
29763654+16+128)
800 wr400n_cmdline
=board
=WRT400N console
=ttyS0
,115200
801 define Image
/Build
/Profile
/WRT400N
802 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WRT400N
,wrt400n
,$(wr400n_cmdline
))
805 dir825b1_cmdline
=board
=DIR-825-B1 console
=ttyS0
,115200
806 define Image
/Build
/Profile
/DIR825B1
807 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),DIR825B1
,dir-825-b1
,$(dir825b1_cmdline
))
810 wrt160nl_cmdline
=board
=WRT160NL console
=ttyS0
,115200
811 define Image
/Build
/Profile
/WRT160NL
812 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),CyberTAN
,wrt160nl
,$(wrt160nl_cmdline
),1.00.01)
815 whrg301n_cmdline
=board
=WHR-G301N console
=ttyS0
,115200
816 define Image
/Build
/Profile
/WHRG301N
817 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-g301n
,$(whrg301n_cmdline
),whrhpg300n_mtdlayout
,WHR-G301N
)
820 whrhpg300n_cmdline
=board
=WHR-HP-G300N console
=ttyS0
,115200
821 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
)
822 define Image
/Build
/Profile
/WHRHPG300N
823 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-hp-g300n
,$(whrhpg300n_cmdline
),whrhpg300n_mtdlayout
,WHR-HP-G300N
)
826 whrhpgn_cmdline
=board
=WHR-HP-GN console
=ttyS0
,115200
827 define Image
/Build
/Profile
/WHRHPGN
828 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-hp-gn
,$(whrhpgn_cmdline
),whrhpg300n_mtdlayout
,WHR-HP-GN
)
831 wzrhpg300nh_cmdline
=board
=WZR-HP-G300NH console
=ttyS0
,115200
832 define Image
/Build
/Profile
/WZRHPG300NH
833 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-g300nh
,$(wzrhpg300nh_cmdline
),WZR-HP-G300NH
)
836 wzrhpag300h_cmdline
=board
=WZR-HP-AG300H console
=ttyS0
,115200
837 define Image
/Build
/Profile
/WZRHPAG300H
838 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-ag300h
,$(wzrhpag300h_cmdline
),WZR-HP-AG300H
)
841 wzrhpg450h_cmdline
=board
=WZR-HP-G450H console
=ttyS0
,115200
842 define Image
/Build
/Profile
/WZRHPG450H
843 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WZRHPG30XNH
,wzr-hp-g450h
,$(wzrhpg450h_cmdline
),WZR-HP-AG450H
)
846 zcn1523h28_cmdline
=board
=ZCN-1523H-2 console
=ttyS0
,115200
847 define Image
/Build
/Profile
/ZCN1523H28
848 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-2-8
,$(zcn1523h28_cmdline
))
851 zcn1523h516_cmdline
=board
=ZCN-1523H-5 console
=ttyS0
,115200
852 define Image
/Build
/Profile
/ZCN1523H516
853 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-5-16
,$(zcn1523h516_cmdline
))
856 all0258n_cmdline
=board
=ALL0258N console
=ttyS0
,115200
857 define Image
/Build
/Profile
/ALL0258N
858 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,all0258n
,$(all0258n_cmdline
),,917504,5505024,KR
)
861 define Image
/Build
/Profile
/Default
862 $(call Image
/Build
/Profile
/ALL0258N
,$(1))
863 $(call Image
/Build
/Profile
/AP121
,$(1))
864 $(call Image
/Build
/Profile
/AP121MINI
,$(1))
865 $(call Image
/Build
/Profile
/AP81
,$(1))
866 $(call Image
/Build
/Profile
/AP83
,$(1))
867 $(call Image
/Build
/Profile
/A02RBW300N
,$(1))
868 $(call Image
/Build
/Profile
/DB120
,$(1))
869 $(call Image
/Build
/Profile
/DIR600A1
,$(1))
870 $(call Image
/Build
/Profile
/DIR615C1
,$(1))
871 $(call Image
/Build
/Profile
/DIR825B1
,$(1))
872 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
873 $(call Image
/Build
/Profile
/FR54RTR
,$(1))
874 $(call Image
/Build
/Profile
/JA76PF
,$(1))
875 $(call Image
/Build
/Profile
/JWAP003
,$(1))
876 $(call Image
/Build
/Profile
/MZKW04NU
,$(1))
877 $(call Image
/Build
/Profile
/MZKW300NH
,$(1))
878 $(call Image
/Build
/Profile
/NBG_460N_550N_550NH
,$(1))
879 $(call Image
/Build
/Profile
/OM2P
,$(1))
880 $(call Image
/Build
/Profile
/PB42
,$(1))
881 $(call Image
/Build
/Profile
/PB44
,$(1))
882 $(call Image
/Build
/Profile
/PB92
,$(1))
883 $(call Image
/Build
/Profile
/TEW632BRP
,$(1))
884 $(call Image
/Build
/Profile
/TEW652BRP
,$(1))
885 $(call Image
/Build
/Profile
/TLMR3220V1
,$(1))
886 $(call Image
/Build
/Profile
/TLMR3420V1
,$(1))
887 $(call Image
/Build
/Profile
/TLWA901NDV1
,$(1))
888 $(call Image
/Build
/Profile
/TLWA901NDV2
,$(1))
889 $(call Image
/Build
/Profile
/TLWR741NDV1
,$(1))
890 $(call Image
/Build
/Profile
/TLWR741NDV4
,$(1))
891 $(call Image
/Build
/Profile
/TLWR740NV1
,$(1))
892 $(call Image
/Build
/Profile
/TLWR740NV3
,$(1))
893 $(call Image
/Build
/Profile
/TLWR743NDV1
,$(1))
894 $(call Image
/Build
/Profile
/TLWR841NV15
,$(1))
895 $(call Image
/Build
/Profile
/TLWR841NDV3
,$(1))
896 $(call Image
/Build
/Profile
/TLWR841NDV5
,$(1))
897 $(call Image
/Build
/Profile
/TLWR841NDV7
,$(1))
898 $(call Image
/Build
/Profile
/TLWR941NDV2
,$(1))
899 $(call Image
/Build
/Profile
/TLWR941NDV3
,$(1))
900 $(call Image
/Build
/Profile
/TLWR941NDV4
,$(1))
901 $(call Image
/Build
/Profile
/TLWR1043NDV1
,$(1))
902 $(call Image
/Build
/Profile
/TLWR703NV1
,$(1))
903 $(call Image
/Build
/Profile
/UBNT
,$(1))
904 $(call Image
/Build
/Profile
/WP543
,$(1))
905 $(call Image
/Build
/Profile
/WNDR3700
,$(1))
906 $(call Image
/Build
/Profile
/AP96
,$(1))
907 $(call Image
/Build
/Profile
/WRT400N
,$(1))
908 $(call Image
/Build
/Profile
/WRT160NL
,$(1))
909 $(call Image
/Build
/Profile
/WHRG301N
,$(1))
910 $(call Image
/Build
/Profile
/WHRHPG300N
,$(1))
911 $(call Image
/Build
/Profile
/WHRHPGN
,$(1))
912 $(call Image
/Build
/Profile
/WZRHPG300NH
,$(1))
913 $(call Image
/Build
/Profile
/WZRHPAG300H
,$(1))
914 $(call Image
/Build
/Profile
/WZRHPG450H
,$(1))
915 $(call Image
/Build
/Profile
/ZCN1523H28
,$(1))
916 $(call Image
/Build
/Profile
/ZCN1523H516
,$(1))
919 define Image
/Build
/Profile
/Minimal
920 $(call Image
/Build
/Profile
/Default
,$(1))
923 define Image
/Build
/Profile
/Madwifi
924 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
925 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
926 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
927 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
928 $(call Image
/Build
/Profile
/WP543
,$(1))
931 define Image
/Build
/squashfs
932 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-4k
933 $(STAGING_DIR_HOST
)/bin
/padjffs2
$(KDIR
)/root.squashfs-4k
4
934 cp
$(KDIR
)/root.squashfs-4k
$(BIN_DIR
)/$(IMG_PREFIX
)-root.squashfs-4k
935 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-64k
936 $(STAGING_DIR_HOST
)/bin
/padjffs2
$(KDIR
)/root.squashfs-64k
4 8 64
937 cp
$(KDIR
)/root.squashfs-64k
$(BIN_DIR
)/$(IMG_PREFIX
)-root.squashfs-64k
938 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
941 define Image
/Build
/Initramfs
942 $(call Image
/Build
/Profile
/$(PROFILE
),initramfs
)
946 $(call Image
/Build
/$(1))
947 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=128k conv
=sync
948 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
951 $(eval
$(call BuildImage
))