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 $(patsubst %-128k
,0x20000,$(patsubst %-64k
,0x10000,$(patsubst squashfs-
%,0x4,$(1))))
19 $(call imgname
,$(1),$(2))-sysupgrade.bin
23 $(call imgname
,$(1),$(2))-factory.bin
26 LOADER_MAKE
:= $(NO_TRACE_MAKE
) -C lzma-loader KDIR
=$(KDIR
)
29 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux
30 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage
31 fs_squash
:=squashfs-only
35 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
40 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux-initramfs
41 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage-initramfs
45 $(STAGING_DIR_HOST
)/bin
/lzma e
$(1) -lc1
-lp2
-pb2
$(2)
48 define PatchKernelLzma
49 cp
$(KDIR
)/vmlinux
$(KDIR_TMP
)/vmlinux-
$(1)
50 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR_TMP
)/vmlinux-
$(1) "$(strip $(2))"
51 $(call CompressLzma
,$(KDIR_TMP
)/vmlinux-
$(1),$(KDIR_TMP
)/vmlinux-
$(1).bin.lzma
)
54 define PatchKernelGzip
55 cp
$(KDIR
)/vmlinux
$(KDIR_TMP
)/vmlinux-
$(1)
56 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR_TMP
)/vmlinux-
$(1) "$(strip $(2))"
57 gzip
-9 -c
$(KDIR_TMP
)/vmlinux-
$(1) > $(KDIR_TMP
)/vmlinux-
$(1).bin.gz
61 mkimage
-A mips
-O linux
-T kernel
-a
0x80060000 -C
$(1) $(2) \
62 -e
0x80060000 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
67 $(call PatchKernelLzma
,$(1),$(2))
68 $(call MkuImage
,lzma
,,$(KDIR_TMP
)/vmlinux-
$(1).bin.lzma
,$(KDIR_TMP
)/vmlinux-
$(1).uImage
)
71 define MkuImageLzma
/initramfs
72 $(call PatchKernelLzma
,$(1),$(2))
73 $(call MkuImage
,lzma
,,$(KDIR_TMP
)/vmlinux-
$(1).bin.lzma
,$(call imgname
,initramfs
,$(1))-uImage.bin
)
77 $(call PatchKernelGzip
,$(1),$(2))
78 $(call MkuImage
,gzip
,,$(KDIR_TMP
)/vmlinux-
$(1).bin.gz
,$(KDIR_TMP
)/vmlinux-
$(1).uImage
)
81 define MkuImageGzip
/initramfs
82 $(call PatchKernelGzip
,$(1),$(2))
83 $(call MkuImage
,gzip
,,$(KDIR_TMP
)/vmlinux-
$(1).bin.gz
,$(call imgname
,initramfs
,$(1))-uImage.bin
)
87 $(call MkuImage
,lzma
,-M
0x4f4b4c49,$(KDIR
)/vmlinux.bin.lzma
,$(KDIR_TMP
)/vmlinux-
$(1).okli
)
91 if
[ `stat -c%s "$(1)"` -gt
$(2) ]; then \
92 echo
"Warning: $(1) is too big"; \
93 else if
[ `stat -c%s $(3)` -gt
$(4) ]; then \
94 echo
"Warning: $(3) is too big"; \
96 ( dd if
=$(1) bs
=$(2) conv
=sync
; dd if
=$(3) ) > $(5); \
101 $(call CatFiles
,$(2),$(3),$(KDIR
)/root.
$(1),$(4),$(call sysupname
,$(1),$(5)))
104 define Sysupgrade
/KRuImage
105 $(call CatFiles
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
,$(3),$(KDIR
)/root.
$(1),$(4),$(call sysupname
,$(1),$(2)))
108 define Sysupgrade
/RKuImage
109 $(call CatFiles
,$(KDIR
)/root.
$(1),$(4),$(KDIR_TMP
)/vmlinux-
$(2).uImage
,$(3),$(call sysupname
,$(1),$(2)))
112 define Image
/BuildLoader
113 -rm -rf
$(KDIR
)/lzma-loader
114 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)"\
115 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
116 LOADER_DATA
="$(KDIR)/vmlinux.bin.lzma" BOARD
="$(1)" \
120 define Image
/BuildLoaderAlone
121 -rm -rf
$(KDIR
)/lzma-loader
122 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) KERNEL_CMDLINE
="$(3)" \
123 LZMA_TEXT_START
=0x80a00000 LOADADDR
=0x80060000 \
124 BOARD
="$(1)" FLASH_OFFS
=$(4) FLASH_MAX
=$(5) \
132 define Image
/BuildKernel
133 cp
$(KDIR
)/vmlinux.elf
$(VMLINUX
).elf
134 cp
$(KDIR
)/vmlinux
$(VMLINUX
).bin
135 dd if
=$(KDIR
)/vmlinux.bin.lzma of
=$(VMLINUX
).lzma bs
=65536 conv
=sync
136 dd if
=$(KDIR
)/vmlinux.bin.gz of
=$(VMLINUX
).gz bs
=65536 conv
=sync
137 $(call MkuImage
,gzip
,,$(KDIR
)/vmlinux.bin.gz
,$(UIMAGE
)-gzip.bin
)
138 $(call MkuImage
,lzma
,,$(KDIR
)/vmlinux.bin.lzma
,$(UIMAGE
)-lzma.bin
)
139 -mkdir
-p
$(KDIR_TMP
)
140 $(call Image
/Build
/Initramfs
)
143 define Image
/Build
/WRT400N
144 $(call MkuImageLzma
,$(2),$(3))
145 $(call Sysupgrade
/KRuImage
,$(1),$(2),1310720,6488064)
146 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
147 wrt400n
$(KDIR_TMP
)/vmlinux-
$(2).uImage
$(KDIR
)/root.
$(1) $(call factoryname
,$(1),$(2)); \
151 dir825b1_mtdlayout
=mtdparts
=spi0.0
:256k
(uboot
)ro
,64k
(config
)ro
,1024k
(kernel
),5184k
(rootfs
),64k
(caldata
)ro
,1600k
(unknown
)ro
,6208k@
0x50000(firmware
)
152 define Image
/Build
/DIR825B1
153 $(call MkuImageLzma
,$(2),$(3) $(dir825b1_mtdlayout
))
154 $(call Sysupgrade
/KRuImage
,$(1),$(2),1048576,5308416)
155 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
157 dd if
=$(call sysupname
,$(1),$(2)); \
159 ) > $(call imgname
,$(1),$(2))-backup-loader.bin
; \
160 if
[ `stat -c%s $(call sysupname,$(1),$(2))` -gt
4194304 ]; then \
161 echo
"Warning: $(call sysupname,$(1),$(2)) is too big"; \
164 dd if
=$(call sysupname
,$(1),$(2)) bs
=4096k conv
=sync
; \
166 ) > $(call factoryname
,$(1),$(2)); \
171 define Image
/Build
/WZRHPG30XNH
172 $(call MkuImageLzma
,$(2),$(3))
173 $(call Sysupgrade
/KRuImage
,$(1),$(2),1048576,31850496)
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
$(4) -v
1.99 \
180 -i
$(call sysupname
,$(1),$(2)) \
181 -o
$(KDIR_TMP
)/$(2).enc
; \
182 buffalo-tag
-b
$(4) -p
$(4) -a ath
-v
1.99 -m
1.01 -l mlang8 \
183 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
184 -i
$(KDIR_TMP
)/$(2).enc \
185 -o
$(call factoryname
,$(1),$(2)); \
189 define Image
/Build
/WHRHPG300N
190 $(call MkuImageLzma
,$(2),$(3) $(4))
191 $(call Sysupgrade
/KRuImage
,$(1),$(2),983040,2883584)
192 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
194 echo
-n
-e
"# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \
195 dd if
=$(call sysupname
,$(1),$(2)); \
196 ) > $(call imgname
,$(1),$(2))-tftp.bin
; \
197 buffalo-enc
-p
$(5) -v
1.99 \
198 -i
$(call sysupname
,$(1),$(2)) \
199 -o
$(KDIR_TMP
)/$(2).enc
; \
200 buffalo-tag
-b
$(5) -p
$(5) -a ath
-v
1.99 -m
1.01 -l mlang8 \
201 -w
3 -c
0x80041000 -d
0x801e8000 -f
1 -r M_ \
202 -i
$(KDIR_TMP
)/$(2).enc \
203 -o
$(call factoryname
,$(1),$(2)); \
207 define Image
/Build
/WHRHPG300N
/initramfs
208 $(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
211 define Image
/Build
/Cameo
212 $(call MkuImageLzma
,$(2),$(3) $(4))
213 $(call Sysupgrade
/KRuImage
,$(1),$(2),$(5),$(6))
214 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
216 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage bs
=$(5) conv
=sync
; \
217 dd if
=$(KDIR
)/root.
$(1) bs
=$(6) conv
=sync
; \
219 ) > $(call factoryname
,$(1),$(2)); \
223 define Image
/Build
/CameoHornet
224 $(call MkuImageLzma
,$(2),$(3) $(4))
225 $(call Sysupgrade
/KRuImage
,$(1),$(2),$(5),$(6))
226 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
227 mkcameofw
-M HORNET
-R
"DEF" -S
$(7) -V
"1.99" \
228 -K
$(5) -I
$$$$(($(5)+$(6))) \
229 -k
$(KDIR_TMP
)/vmlinux-
$(2).uImage \
230 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
231 -o
$(call factoryname
,$(1),$(2)); \
235 cameo913x_mtdlayout
=mtdparts
=spi0.0
:128k
(u-boot
)ro
,64k
(config
)ro
,960k
(kernel
),2880k
(rootfs
),64k
(art
)ro
,3840k@
0x30000(firmware
)
236 define Image
/Build
/Cameo913x
237 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo913x_mtdlayout
),983040,2949120,$(4))
240 define Image
/Build
/Cameo913x
/initramfs
241 $(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo913x_mtdlayout
))
244 cameo7240_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(nvram
)ro
,960k
(kernel
),2752k
(rootfs
),64k
(mac
)ro
,64k
(art
)ro
,3712k@
0x40000(firmware
)
245 define Image
/Build
/Cameo7240
246 $(call Image
/Build
/Cameo
,$(1),$(2),$(3),$(cameo7240_mtdlayout
),983040,2818048,$(4))
249 define Image
/Build
/Cameo7240
/initramfs
250 $(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo7240_mtdlayout
))
253 cameo933x_mtdlayout
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,64k
(art
)ro
,64k
(mac
)ro
,64k
(nvram
)ro
,192k
(language
)ro
,896k
(kernel
),2752k
(rootfs
),3648k@
0x70000(firmware
)
254 define Image
/Build
/Cameo933x
255 $(call Image
/Build
/CameoHornet
,$(1),$(2),$(3),$(cameo933x_mtdlayout
),917504,2818048,$(4))
258 define Image
/Build
/Cameo933x
/initramfs
259 $(call MkuImageLzma
/initramfs
,$(2),$(3) $(cameo933x_mtdlayout
))
262 define Image
/Build
/Ath
263 $(call Sysupgrade
/$(7),$(1),$(2),$(5),$(6))
264 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
265 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage \
266 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
; \
267 dd if
=$(KDIR
)/root.
$(1) \
268 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
; \
272 define Image
/Build
/AthGzip
273 $(call MkuImageGzip
,$(2),$(3) $(4))
274 $(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
277 define Image
/Build
/AthGzip
/initramfs
278 $(call MkuImageGzip
/initramfs
,$(2),$(3) $(4))
281 define Image
/Build
/AthLzma
282 $(call MkuImageLzma
,$(2),$(3) $(4))
283 $(call Image
/Build
/Ath
,$(1),$(2),$(3),$(4),$(5),$(6),$(7))
286 define Image
/Build
/AthLzma
/initramfs
287 $(call MkuImageLzma
/initramfs
,$(2),$(3) $(4))
290 define Image
/Build
/PB4X
291 $(call PatchKernelLzma
,$(2),$(3))
292 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
293 of
=$(call imgname
,kernel
,$(2)).bin bs
=64k conv
=sync
294 dd if
=$(KDIR
)/root.
$(1) \
295 of
=$(call imgname
,$(1),$(2)-rootfs
).bin bs
=128k conv
=sync
296 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
297 "$(call imgname,kernel,$(2)).bin" \
298 "$(call imgname,$(1),$(2)-rootfs).bin" \
299 $(call sysupname
,$(1),$(2))
303 define Image
/Build
/MyLoader
304 $(call PatchKernelLzma
,$(2),$(3))
305 -$(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) -s
$(4) \
306 -p0x030000
:0xe0000:al
:0x80060000:kernel
:$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
307 -p0x110000
:0:::rootfs
:$(KDIR
)/root.
$(1) \
308 $(call imgname
,$(1),$(2))-$(5)-factory.img
311 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
)
312 define Image
/Build
/UBNTXM
313 $(call MkuImageLzma
,$(2),$(3) $(ubntxm_mtdlayout
))
314 $(call Sysupgrade
/KRuImage
,$(1),$(2),1048576,6684672)
315 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage of
=$(KDIR_TMP
)/vmlinux-
$(2).uImage.bin bs
=1024k conv
=sync
316 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
317 -B
$(4) -v
$(5).
$(6).v6.0
.0-OpenWrt-
$(REVISION
) \
318 -k
$(KDIR_TMP
)/vmlinux-
$(2).uImage.bin \
319 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
320 -o
$(call factoryname
,$(1),$(2))
323 define Image
/Build
/UBNT
324 $(call PatchKernelLzma
,$(2),$(3))
325 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma of
=$(KDIR_TMP
)/vmlinux-
$(2).lzma bs
=64k conv
=sync
326 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
327 -B
$(4) -v
$(5).
$(6).OpenWrt.
$(REVISION
) \
328 -k
$(KDIR_TMP
)/vmlinux-
$(2).lzma \
329 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
330 -o
$(call factoryname
,$(1),$(2))
331 -sh
$(TOPDIR
)/scripts
/combined-image.sh \
332 "$(KDIR_TMP)/vmlinux-$(2).lzma" \
333 "$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)" \
334 $(call sysupname
,$(1),$(2))
337 planex_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,960k
(kernel
),6784k
(rootfs
),128k
(art
)ro
,7744k@
0x50000(firmware
)
338 define Image
/Build
/Planex
/loader
339 $(call Image
/BuildLoaderAlone
,$(1),gz
,$(2) $(planex_mtdlayout
),0x52000,0)
342 define Image
/Build
/Planex
343 [ -e
"$(KDIR)/loader-$(2).gz" ]
344 $(call MkuImage
,gzip
,,$(KDIR
)/loader-
$(2).gz
,$(KDIR_TMP
)/vmlinux-
$(2).uImage
)
345 $(call MkuImageOKLI
,$(2))
347 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage bs
=8k count
=1 conv
=sync
; \
348 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).okli
; \
349 ) > $(KDIR_TMP
)/kernel-
$(2).bin
350 $(call Sysupgrade
/KR
,$(1),$(KDIR_TMP
)/kernel-
$(2).bin
,983040,6815744,$(2))
351 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
352 $(STAGING_DIR_HOST
)/bin
/mkplanexfw \
355 -i
$(call sysupname
,$(1),$(2)) \
356 -o
$(call factoryname
,$(1),$(2)); \
360 alfa_mtdlayout_8M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6144k
(rootfs
),1600k
(kernel
),64k
(nvram
),64k
(art
)ro
,7744k@
0x50000(firmware
)
361 define Image
/Build
/ALFA
362 $(call MkuImageLzma
,$(2),$(3))
363 $(call Sysupgrade
/RKuImage
,$(1),$(2),$(4),$(5))
364 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
365 rm -rf
$(KDIR
)/$(1); \
366 mkdir
-p
$(KDIR
)/$(1); \
368 cp
$(KDIR_TMP
)/vmlinux-
$(2).uImage
$(KDIR
)/$(1)/$(6); \
369 cp
$(KDIR
)/root.
$(1) $(KDIR
)/$(1)/$(7); \
370 $(TAR
) zcf
$(call factoryname
,$(1),$(2)) -C
$(KDIR
)/$(1) $(6) $(7); \
372 echo WRM7222C | dd bs
=32 count
=1 conv
=sync
; \
374 ) >> $(call factoryname
,$(1),$(2)); \
378 define Image
/Build
/ALFA
/initramfs
379 $(call MkuImageLzma
/initramfs
,$(2),$(3))
382 define Image
/Build
/TPLINKOLD
/loader
383 $(call Image
/BuildLoaderAlone
,$(1),gz
,$(2),0x22000,0)
386 define Image
/Build
/TPLINKOLD
387 [ -e
"$(KDIR)/loader-$(2).gz" ]
388 $(call MkuImageOKLI
,$(2))
390 dd if
=$(KDIR
)/loader-
$(2).gz bs
=7680 count
=1 conv
=sync
; \
391 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).okli conv
=sync
; \
392 ) > $(KDIR_TMP
)/kernel-
$(2).bin
393 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
394 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
)\
395 -k
$(KDIR_TMP
)/kernel-
$(2).bin \
396 -r
$(KDIR
)/root.
$(1) \
397 -o
$(call factoryname
,$(1),$(2))
398 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
399 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
400 -k
$(KDIR_TMP
)/kernel-
$(2).bin \
401 -r
$(KDIR
)/root.
$(1) \
402 -o
$(call sysupname
,$(1),$(2))
405 define Image
/Build
/TPLINKOLD
/initramfs
406 $(call Image
/BuildLoader
,$(2),gz
,$(3),0x80060000)
407 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
408 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
409 -k
$(KDIR
)/loader-
$(2).gz \
410 -o
$(call imgname
,$(1),$(2))-uImage.bin
413 define Image
/Build
/TPLINK
/loader
414 $(call Image
/BuildLoaderAlone
,$(1),gz
,$(2),0x22000,0)
417 define Image
/Build
/TPLINK
418 [ -e
"$(KDIR)/loader-$(2).gz" ]
419 $(call MkuImageOKLI
,$(2))
421 dd if
=$(KDIR
)/loader-
$(2).gz bs
=7680 count
=1 conv
=sync
; \
422 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).okli conv
=sync
; \
423 ) > $(KDIR_TMP
)/kernel-
$(2).bin
424 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
425 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
)\
426 -k
$(KDIR_TMP
)/kernel-
$(2).bin \
427 -r
$(KDIR
)/root.
$(1) \
428 -a
$(call rootfs_align
,$(1)) -j \
429 -o
$(call factoryname
,$(1),$(2))
430 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
431 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
432 -k
$(KDIR_TMP
)/kernel-
$(2).bin \
433 -r
$(KDIR
)/root.
$(1) \
434 -a
$(call rootfs_align
,$(1)) -j \
435 -o
$(call sysupname
,$(1),$(2))
438 define Image
/Build
/TPLINK
/initramfs
439 $(call Image
/BuildLoader
,$(2),gz
,$(3),0x80060000)
440 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
441 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) -s\
442 -k
$(KDIR
)/loader-
$(2).gz \
443 -o
$(call imgname
,$(1),$(2))-uImage.bin
446 define Image
/Build
/TPLINK-LZMA
447 $(call PatchKernelLzma
,$(2),$(3))
448 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
449 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) $(7) \
450 -k
$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
451 -r
$(KDIR
)/root.
$(1) \
452 -a
$(call rootfs_align
,$(1)) -j \
453 -o
$(call factoryname
,$(1),$(2))
454 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw \
455 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) $(7) -s \
456 -k
$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
457 -r
$(KDIR
)/root.
$(1) \
458 -a
$(call rootfs_align
,$(1)) -j \
459 -o
$(call sysupname
,$(1),$(2))
462 define Image
/Build
/TPLINK-LZMA
/initramfs
463 $(call PatchKernelLzma
,$(2),$(3))
464 -$(STAGING_DIR_HOST
)/bin
/mktplinkfw
-c \
465 -H
$(4) -W
$(5) -F
$(6) -N OpenWrt
-V
$(REVISION
) $(7) -s \
466 -k
$(KDIR_TMP
)/vmlinux-
$(2).bin.lzma \
467 -o
$(call imgname
,$(1),$(2))-uImage.bin
470 define Image
/Build
/CyberTAN
471 $(call MkuImageGzip
,$(2),$(3))
472 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(KDIR
)/image.tmp
-f
$(KDIR_TMP
)/vmlinux-
$(2).uImage \
473 -x
32 -a
0x10000 -x
-32 -f
$(KDIR
)/root.
$(1)
474 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) \
475 -i
$(KDIR
)/image.tmp \
476 -o
$(call sysupname
,$(1),$(2))
477 -$(STAGING_DIR_HOST
)/bin
/addpattern
-B
$(2) -v v
$(4) -g \
478 -i
$(KDIR
)/image.tmp \
479 -o
$(call factoryname
,$(1),$(2))
483 define Image
/Build
/Netgear
/Build_uImage
484 $(call MkuImageLzma
,$(1),$(2) $(3))
486 mkdir
-p
$(KDIR
)/$(1)/image
487 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
488 $(KDIR_TMP
)/vmlinux-
$(1).uImage \
489 $(KDIR
)/$(1)/image
/uImage \
491 $(STAGING_DIR_HOST
)/bin
/mksquashfs-lzma \
492 $(KDIR
)/$(1) $(KDIR_TMP
)/vmlinux-
$(1).uImage.squashfs.tmp \
493 -nopad
-noappend
-root-owned
-be
495 mkimage
-A mips
-O linux
-T filesystem
-C none \
496 -a
0xbf070000 -e
0xbf070000 \
497 -n
'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
498 -d
$(KDIR_TMP
)/vmlinux-
$(1).uImage.squashfs.tmp \
499 $(KDIR_TMP
)/vmlinux-
$(1).uImage.squashfs.tmp2
500 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
501 $(KDIR_TMP
)/vmlinux-
$(1).uImage.squashfs.tmp2 \
502 $(KDIR_TMP
)/vmlinux-
$(1).uImage.squashfs \
504 -rm -f
$(KDIR_TMP
)/vmlinux-
$(1).uImage.squashfs.tmp
*
507 define Image
/Build
/Netgear
/Estimate_uImage
508 $(call Image
/Build
/Netgear
/Build_uImage
,$(1)_est
,$(2),$(3),$(4))
511 kk
=`echo '$(3)' | sed -e 's/.*[:,]\([0-9]*\)k(kernel).*/\1/'`; \
512 rk
=`echo '$(3)' | sed -e 's/.*[:,]\([0-9]*\)k(rootfs).*/\1/'`; \
513 let
'tk = kk + rk'; \
514 s
=`stat -c'%s' '$(KDIR_TMP)/vmlinux-$(1)_est.uImage.squashfs'`; \
515 c
=`echo '$(3)' | wc -c`; \
516 let
'kk = (((s + c) / (64 * 1024) + 1) * 64)'; \
517 let
'rk = tk - kk'; \
518 echo
'$(3)' | sed
-e
"s/[0-9]*k(kernel)/$$$${kk}k(kernel)/" \
519 -e
"s/[0-9]*k(rootfs)/$$$${rk}k(rootfs)/" > \
520 '$(KDIR_TMP)/$(1)_mtdparts'; \
521 let
'k = kk * 1024'; \
522 echo
"$$$${k}" > '$(KDIR_TMP)/$(1)_kernel_maxsize'; \
523 let
'r = rk * 1024'; \
524 echo
"$$$${r}" > '$(KDIR_TMP)/$(1)_rootfs_maxsize'; \
526 -rm -f
$(KDIR_TMP
)/vmlinux-
$(1)_est \
527 $(KDIR_TMP
)/vmlinux-
$(1)_est.bin.lzma \
528 $(KDIR_TMP
)/vmlinux-
$(1)_est.uImage \
529 $(KDIR_TMP
)/vmlinux-
$(1)_est.uImage.squashfs
532 define Image
/Build
/Netgear
533 $(call Image
/Build
/Netgear
/Estimate_uImage
,$(2),$(3),$(4),$(5))
534 $(call Image
/Build
/Netgear
/Build_uImage
,$(2),$(3),`cat $(KDIR_TMP)/$(2)_mtdparts`,$(5))
535 if
[ `stat -c%s '$(KDIR_TMP)/vmlinux-$(2).uImage.squashfs'` -gt \
536 `cat '$(KDIR_TMP)/$(2)_kernel_maxsize'` ]; then \
537 echo
"$(KDIR_TMP)/vmlinux-$(2).uImage.squashfs is too big" >& 2; \
538 else if
[ `stat -c%s '$(KDIR)/root.$(1)'` -gt \
539 `cat '$(KDIR_TMP)/$(2)_rootfs_maxsize'` ]; then \
540 echo
"$(KDIR)/root.$(1) is too big" >& 2; \
544 dd if
=$(KDIR_TMP
)/vmlinux-
$(2).uImage.squashfs \
545 bs
=`cat '$(KDIR_TMP)/$(2)_kernel_maxsize'` conv
=sync
; \
546 dd if
=$(KDIR
)/root.
$(1) bs
=64k
; \
547 ) > $(call sysupname
,$(1),$(2)); \
549 [ -n
"$$$$r" ] && dashr
="-$$$$r" || dashr
= ; \
550 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
551 -B
$(6) -v OpenWrt.
$(REVISION
) -r
"$$$$r" $(8) \
552 -i
$(call sysupname
,$(1),$(2)) \
553 -o
$(call imgname
,$(1),$(2))-factory
$$$$dashr.img
; \
558 define Image
/Build
/Netgear
/initramfs
559 $(call MkuImageLzma
,$(2),$(3) $(4))
560 $(STAGING_DIR_HOST
)/bin
/wndr3700 \
561 $(KDIR_TMP
)/vmlinux-
$(2).uImage \
562 $(call imgname
,$(1),$(2))-uImage.bin \
566 ifdef CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh
567 define Image
/Build
/ZyXEL
568 $(call MkuImageLzma
,$(2),$(3))
569 $(call Sysupgrade
/KRuImage
,$(1),$(2),917504,2752512)
570 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
571 if
[ ! -f
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin
]; then \
572 echo
"Warning: $(IMG_PREFIX)-$(2)-u-boot.bin not found"; \
574 $(STAGING_DIR_HOST
)/bin
/mkzynfw \
576 -b
$(BIN_DIR
)/$(IMG_PREFIX
)-$(2)-u-boot.bin \
577 -r
$(call sysupname
,$(1),$(2)):0x10000 \
578 -o
$(call factoryname
,$(1),$(2)); \
583 define Image
/Build
/OpenMesh
584 $(call MkuImageLzma
,$(2))
585 -sh
$(TOPDIR
)/scripts
/om2p-fwupgradecfg-gen.sh \
586 "$(BUILD_DIR)/om2p-fwupgrade.cfg" \
587 "$(KDIR_TMP)/vmlinux-$(2).uImage" \
589 -sh
$(TOPDIR
)/scripts
/combined-ext-image.sh \
590 "$(3)" "$(call factoryname,$(1),$(2))" \
591 "$(BUILD_DIR)/om2p-fwupgrade.cfg" "fwupgrade.cfg" \
592 "$(KDIR_TMP)/vmlinux-$(2).uImage" "kernel" \
593 "$(KDIR)/root.$(1)" "rootfs"
596 define Image
/Build
/Zcomax
597 $(call MkuImageLzma
,$(2),$(3))
598 $(call Sysupgrade
/RKuImage
,$(1),$(2),1507328,6356992)
599 if
[ -e
"$(call sysupname,$(1),$(2))" ]; then \
600 $(STAGING_DIR_HOST
)/bin
/mkzcfw \
602 -k
$(KDIR_TMP
)/vmlinux-
$(2).uImage \
603 -r
$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) \
604 -o
$(call imgname
,$(1),$(2))-factory.img
; \
608 define Image
/Build
/Zcomax
/initramfs
609 $(call MkuImageLzma
/initramfs
,$(2),$(3))
612 define Image
/Build
/Template
/initramfs
/initramfs
613 $(call Image
/Build
/$(1)/initramfs
,initramfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
616 define Image
/Build
/Template
/all/squashfs
617 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
620 define Image
/Build
/Template
/all/jffs2-64k
621 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
624 define Image
/Build
/Template
/all/jffs2-128k
625 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
628 define Image
/Build
/Template
/squashfs-only
/loader
629 $(call Image
/Build
/$(1)/loader
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
632 define Image
/Build
/Template
/squashfs-only
/squashfs
633 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
636 define Image
/Build
/Template
/64k
/loader
637 $(call Image
/Build
/$(1)/loader
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
640 define Image
/Build
/Template
/64k
/squashfs
641 $(call Image
/Build
/$(1),squashfs-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
644 define Image
/Build
/Template
/64k
/jffs2-64k
645 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
648 define Image
/Build
/Template
/64kraw
/loader
649 $(call Image
/Build
/$(1)/loader
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
652 define Image
/Build
/Template
/64kraw
/squashfs
653 $(call Image
/Build
/$(1),squashfs-raw
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
656 define Image
/Build
/Template
/64kraw
/jffs2-64k
657 $(call Image
/Build
/$(1),jffs2-64k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
660 define Image
/Build
/Template
/128k
/squashfs
661 $(call Image
/Build
/$(1),squashfs
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
664 define Image
/Build
/Template
/128k
/jffs2-128k
665 $(call Image
/Build
/$(1),jffs2-128k
,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
668 alfa_nx_cmdline
=board
=ALFA-NX console
=ttyS0
,115200 $(alfa_mtdlayout_8M
)
669 define Image
/Build
/Profile
/ALFANX
670 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),ALFA
,alfa-nx
,$(alfa_nx_cmdline
),1638400,6291456,vmlinux.gz.uImage
,pb9x-2.6
.31-jffs2
)
673 alfa_ap96_cmdline
=board
=ALFA-AP96 console
=ttyS0
,115200
674 alfa_ap96_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,256k
(u-boot-env
)ro
,13312k
(rootfs
),2048k
(kernel
),512k
(caldata
)ro
,15360k@
0x80000(firmware
)
675 define Image
/Build
/Profile
/ALFAAP96
676 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),AthLzma
,alfa-ap96
,$(alfa_ap96_cmdline
),$(alfa_ap96_mtdlayout
),2097152,13631488,RKuImage
)
679 all0258n_cmdline
=board
=ALL0258N console
=ttyS0
,115200
680 all0258n_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
),64k
(u-boot-env
),1024k
(kernel
),5248k
(rootfs
),1536k
(failsafe
),64k
(art
),6272k@
0x50000(firmware
)
681 define Image
/Build
/Profile
/ALL0258N
682 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,all0258n
,$(all0258n_cmdline
),$(all0258n_mtdlayout
),1048576,5373952,KRuImage
)
685 all0305_cmdline
=board
=ALL0305 console
=ttyS0
,115200
686 define Image
/Build
/Profile
/ALL0305
687 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),PB4X
,all0305
,$(all0305_cmdline
))
690 ap113_mtd_layout
=mtdparts
=spi0.0
:64k
(u-boot
),3008k
(rootfs
),896k
(uImage
),64k
(NVRAM
),64k
(ART
),3904k@
0x10000(firmware
)
691 ap113_cmdline
=board
=AP113 console
=ttyS0
,115200
692 define Image
/Build
/Profile
/AP113
693 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap113
,$(ap113_cmdline
),$(ap113_mtd_layout
),917504,3080192,RK
)
696 ap121_mtdlayout_2M
=mtdparts
=spi0.0
:64k
(u-boot
)ro
,1216k
(rootfs
),704k
(kernel
),64k
(art
)ro
,1920k@
0x10000(firmware
)
697 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
)
699 ap121_cmdline
=board
=AP121 console
=ttyATH0
,115200
700 define Image
/Build
/Profile
/AP121
701 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-2M
,$(ap121_cmdline
),$(ap121_mtdlayout_2M
),720896,1245184,RKuImage
)
702 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-4M
,$(ap121_cmdline
),$(ap121_mtdlayout_4M
),917504,2818048,RKuImage
)
705 ap121_mini_cmdline
=board
=AP121-MINI console
=ttyATH0
,115200
706 define Image
/Build
/Profile
/AP121MINI
707 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap121-mini
,$(ap121_mini_cmdline
),$(ap121_mtdlayout_4M
),917504,2818048,RKuImage
)
710 ew-dorin_cmdline
=board
=EW-DORIN console
=ttyATH0
,115200
711 ew-dorin-router_cmdline
=board
=EW-DORIN-ROUTER console
=ttyATH0
,115200
712 ew-dorin_mtdlayout_4M
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
),1024k
(kernel
),2688k
(rootfs
),64k
(art
),3712k@
0x50000(firmware
)
713 define Image
/Build
/Profile
/EWDORIN
714 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ew-dorin
,$(ew-dorin_cmdline
),$(ew-dorin_mtdlayout_4M
),1048576,2752512,KRuImage
)
715 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ew-dorin-router
,$(ew-dorin-router_cmdline
),$(ew-dorin_mtdlayout_4M
),1048576,2752512,KRuImage
)
718 ap81_cmdline
=board
=AP81 console
=ttyS0
,115200
719 define Image
/Build
/Profile
/AP81
720 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap81
,$(ap81_cmdline
),,1310720,6619136,KRuImage
)
723 ap83_cmdline
=board
=AP83 console
=ttyS0
,115200
724 define Image
/Build
/Profile
/AP83
725 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap83
,$(ap83_cmdline
),,1310720,6619136,KRuImage
)
728 ap96_cmdline
=board
=AP96 console
=ttyS0
,115200
729 ap96_mtdlayout
=mtdparts
=spi0.0
:192k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6144k
(rootfs
),1728k
(kernel
),64k
(art
)ro
,7872k@
0x40000(firmware
)
730 define Image
/Build
/Profile
/AP96
731 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthGzip
,ap96
,$(ap96_cmdline
),$(ap96_mtdlayout
),1769472,6291456,RKuImage
)
734 db120_cmdline
=board
=DB120 console
=ttyS0
,115200
735 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
)
736 define Image
/Build
/Profile
/DB120
737 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,db120
,$(db120_cmdline
),$(db120_mtdlayout
),1441792,6488064,RKuImage
)
740 ap136_cmdline
=board
=AP136 console
=ttyS0
,115200
741 ap136_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6336k
(rootfs
),1408k
(kernel
),64k
(mib0
),64k
(art
)ro
,7744k@
0x50000(firmware
)
742 define Image
/Build
/Profile
/AP136
743 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,ap136
,$(ap136_cmdline
),$(ap136_mtdlayout
),1441792,6488064,RKuImage
)
747 pb42_cmdline
=board
=PB42 console
=ttyS0
,115200
748 define Image
/Build
/Profile
/PB42
749 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb42
,$(pb42_cmdline
))
752 pb44_cmdline
=board
=PB44 console
=ttyS0
,115200
753 define Image
/Build
/Profile
/PB44
754 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,pb44
,$(pb44_cmdline
))
757 pb92_cmdline
=board
=PB92 console
=ttyS0
,115200
758 pb92_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,2752k
(rootfs
),896k
(kernel
),64k
(nvram
),64k
(art
)ro
,3648k@
0x50000(firmware
)
759 define Image
/Build
/Profile
/PB92
760 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),AthLzma
,pb92
,$(pb92_cmdline
),$(pb92_mtdlayout
),917504,2818048,KRuImage
)
763 wp543_cmdline
=console
=ttyS0
,115200
764 define Image
/Build
/Profile
/WP543
765 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,$(wp543_cmdline
),0x200000,2M
)
766 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,$(wp543_cmdline
),0x400000,4M
)
767 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,$(wp543_cmdline
),0x800000,8M
)
768 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wp543
,$(wp543_cmdline
),0x1000000,16M
)
771 wpe72_cmdline
=console
=ttyS0
,115200
772 define Image
/Build
/Profile
/WPE72
773 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),MyLoader
,wpe72
,$(wpe72_cmdline
),0x800000,8M
)
776 dir600a1_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
777 define Image
/Build
/Profile
/DIR600A1
778 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,dir-600-a1
,$(dir600a1_cmdline
),"AP91-AR7240-RT-090223-00")
781 dir601a1_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
782 define Image
/Build
/Profile
/DIR601A1
783 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,dir-601-a1
,$(dir600a1_cmdline
),"AP91-AR7240-RT-090223-02")
786 dir615e4_cmdline
=board
=DIR-615-E4 console
=ttyS0
,115200
787 define Image
/Build
/Profile
/DIR615E4
788 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,dir-615-e4
,$(dir615e4_cmdline
),"AP99-AR7240-RT-091105-05")
791 eap7660d_cmdline
=board
=EAP7660D console
=ttyS0
,115200
792 define Image
/Build
/Profile
/EAP7660D
793 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),PB4X
,eap7660d
,$(eap7660d_cmdline
))
796 hornetub_cmdline
=board
=HORNET-UB console
=ttyATH0
,115200 $(alfa_mtdlayout_8M
)
797 define Image
/Build
/Profile
/HORNETUB
798 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),ALFA
,hornet-ub
,$(hornetub_cmdline
),1638400,6291456,kernel_image
,rootfs_image
)
801 ja76pf_cmdline
=board
=JA76PF console
=ttyS0
,115200
802 define Image
/Build
/Profile
/JA76PF
803 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,ja76pf
,$(ja76pf_cmdline
))
806 ja76pf2_cmdline
=board
=JA76PF2 console
=ttyS0
,115200
807 define Image
/Build
/Profile
/JA76PF2
808 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,ja76pf2
,$(ja76pf2_cmdline
))
811 jwap003_cmdline
=board
=JWAP003 console
=ttyS0
,115200
812 define Image
/Build
/Profile
/JWAP003
813 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),PB4X
,jwap003
,$(jwap003_cmdline
))
816 fr54rtr_cmdline
=board
=DIR-600-A1 console
=ttyS0
,115200
817 define Image
/Build
/Profile
/FR54RTR
818 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Cameo7240
,fr-54rtr
,$(fr54rtr_cmdline
),"AP91-AR7240-RT-090223-01")
821 dir615c1_cmdline
=board
=DIR-615-C1 console
=ttyS0
,115200
822 define Image
/Build
/Profile
/DIR615C1
823 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,dir-615-c1
,$(dir615c1_cmdline
),"AP81-AR9130-RT-070614-02")
826 rw2458n_cmdline
=board
=RW2458N console
=ttyS0
,115200
827 define Image
/Build
/Profile
/RW2458N
828 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,rw2458n
,$(rw2458n_cmdline
),XM
,UBNTXM
,ar7240
)
831 tew632brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
832 define Image
/Build
/Profile
/TEW632BRP
833 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-632brp
,$(tew632brp_cmdline
),"AP81-AR9130-RT-070614-00")
836 tew652brp_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
837 define Image
/Build
/Profile
/TEW652BRP
838 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-652brp
,$(tew652brp_cmdline
),"AP81-AR9130-RT-080609-05")
839 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,tew-652brp-recovery
,$(tew652brp_cmdline
),"AP81-AR9130-RT-070614-02")
842 tew712br_cmdline
=board
=TEW-712BR console
=ttyATH0
,115200
843 define Image
/Build
/Profile
/TEW712BR
844 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo933x
,tew-712br
,$(tew712br_cmdline
),"HORNET-RT-TEW712BR-3")
848 a05rbw300n_cmdline
=board
=TEW-632BRP console
=ttyS0
,115200
849 define Image
/Build
/Profile
/A02RBW300N
850 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),Cameo913x
,a02-rb-w300n
,$(a05rbw300n_cmdline
),"AP81-AR9130-RT-070614-03")
853 ubntairrouter_cmdline
=board
=UBNT-AR console
=ttyS0
,115200
854 define Image
/Build
/Profile
/UBNTAIRROUTER
855 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-airrouter
,$(ubntairrouter_cmdline
),XM
,UBNTXM
,ar7240
)
858 ubntrs_cmdline
=board
=UBNT-RS console
=ttyS0
,115200
859 define Image
/Build
/Profile
/UBNTRS
860 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rs
,$(ubntrs_cmdline
),RS
,RSx
,ar7100
)
863 ubntrspro_cmdline
=board
=UBNT-RSPRO console
=ttyS0
,115200
864 define Image
/Build
/Profile
/UBNTRSPRO
865 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-rspro
,$(ubntrspro_cmdline
),RSPRO
,RSPRO
,ar7100pro
)
868 ubntlssr71_cmdline
=board
=UBNT-LS-SR71 console
=ttyS0
,115200
869 define Image
/Build
/Profile
/UBNTLSSR71
870 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNT
,ubnt-ls-sr71
,$(ubntlssr71_cmdline
),LS-SR71
,LS-SR71
,ar7100
)
873 ubntbulletm_cmdline
=board
=UBNT-BM console
=ttyS0
,115200
874 define Image
/Build
/Profile
/UBNTBULLETM
875 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-bullet-m
,$(ubntbulletm_cmdline
),XM
,XM
,ar7240
)
878 ubntrocketm_cmdline
=board
=UBNT-RM console
=ttyS0
,115200
879 define Image
/Build
/Profile
/UBNTROCKETM
880 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-rocket-m
,$(ubntrocketm_cmdline
),XM
,XM
,ar7240
)
883 ubntnanom_cmdline
=board
=UBNT-NM console
=ttyS0
,115200
884 define Image
/Build
/Profile
/UBNTNANOM
885 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-nano-m
,$(ubntnanom_cmdline
),XM
,XM
,ar7240
)
888 ubntunifi_cmdline
=board
=UBNT-UF console
=ttyS0
,115200
889 define Image
/Build
/Profile
/UBNTUNIFI
890 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),UBNTXM
,ubnt-unifi
,$(ubntunifi_cmdline
),XM
,XM
,ar7240
)
893 define Image
/Build
/Profile
/UBNT
894 $(call Image
/Build
/Profile
/UBNTAIRROUTER
,$(1))
895 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
896 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
897 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
898 $(call Image
/Build
/Profile
/UBNTBULLETM
,$(1))
899 $(call Image
/Build
/Profile
/UBNTROCKETM
,$(1))
900 $(call Image
/Build
/Profile
/UBNTNANOM
,$(1))
901 $(call Image
/Build
/Profile
/UBNTUNIFI
,$(1))
904 mzkw04nu_cmdline
=board
=MZK-W04NU console
=ttyS0
,115200
905 define Image
/Build
/Profile
/MZKW04NU
906 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w04nu
,$(mzkw04nu_cmdline
))
909 mzkw300nh_cmdline
=board
=MZK-W300NH console
=ttyS0
,115200
910 define Image
/Build
/Profile
/MZKW300NH
911 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Planex
,mzk-w300nh
,$(mzkw300nh_cmdline
))
914 nbg460n_cmdline
=board
=NBG460N console
=ttyS0
,115200
915 define Image
/Build
/Profile
/NBG_460N_550N_550NH
916 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),ZyXEL
,nbg460n_550n_550nh
,$(nbg460n_cmdline
),NBG-460N
)
919 define Image
/Build
/Profile
/OM2P
920 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),OpenMesh
,om2p
,OM2P
)
923 tlmr11u_cmdline
=board
=TL-MR11U console
=ttyATH0
,115200
924 define Image
/Build
/Profile
/TLMR11U
925 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-mr11u-v1
,$(tlmr11u_cmdline
),0x00110101,1,4Mlzma
)
928 tlmr3020_cmdline
=board
=TL-MR3020 console
=ttyATH0
,115200
929 define Image
/Build
/Profile
/TLMR3020
930 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),TPLINK-LZMA
,tl-mr3020-v1
,$(tlmr3020_cmdline
),0x30200001,1,4Mlzma
)
933 tlmr3040_cmdline
=board
=TL-MR11U console
=ttyATH0
,115200
934 define Image
/Build
/Profile
/TLMR3040
935 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-mr3040-v1
,$(tlmr3040_cmdline
),0x30400001,1,4Mlzma
)
938 tlmr3220_cmdline
=board
=TL-MR3220 console
=ttyS0
,115200
939 define Image
/Build
/Profile
/TLMR3220
940 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-mr3220-v1
,$(tlmr3220_cmdline
),0x32200001,1,4M
)
943 tlmr3420_cmdline
=board
=TL-MR3420 console
=ttyS0
,115200
944 define Image
/Build
/Profile
/TLMR3420
945 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-mr3420-v1
,$(tlmr3420_cmdline
),0x34200001,1,4M
)
948 tlwa701_cmdline
=board
=TL-WA901ND console
=ttyS0
,115200
949 define Image
/Build
/Profile
/TLWA701
950 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wa701n-v1
,$(tlwa701_cmdline
),0x07010001,1,4M
)
953 tlwa901_cmdline
=board
=TL-WA901ND console
=ttyS0
,115200
954 tlwa901v2_cmdline
=board
=TL-WA901ND-v2 console
=ttyS0
,115200
955 define Image
/Build
/Profile
/TLWA901
956 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wa901nd-v1
,$(tlwa901_cmdline
),0x09010001,1,4M
)
957 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wa901nd-v2
,$(tlwa901v2_cmdline
),0x09010002,1,4M
)
960 tlwr703_cmdline
=board
=TL-WR703N console
=ttyATH0
,115200
961 define Image
/Build
/Profile
/TLWR703
962 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wr703n-v1
,$(tlwr703_cmdline
),0x07030101,1,4Mlzma
)
965 tlwr740_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
966 tlwr740v4_cmdline
=board
=TL-WR741ND-v4 console
=ttyATH0
,115200
967 define Image
/Build
/Profile
/TLWR740
968 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr740n-v1
,$(tlwr740_cmdline
),0x07400001,1,4M
)
969 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr740n-v3
,$(tlwr740_cmdline
),0x07400003,1,4M
)
970 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wr740n-v4
,$(tlwr740v4_cmdline
),0x07400004,1,4Mlzma
)
973 tlwr741_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
974 tlwr741v4_cmdline
=board
=TL-WR741ND-v4 console
=ttyATH0
,115200
975 define Image
/Build
/Profile
/TLWR741
976 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr741nd-v1
,$(tlwr741_cmdline
),0x07410001,1,4M
)
977 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr741nd-v2
,$(tlwr741_cmdline
),0x07410001,1,4M
)
978 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wr741nd-v4
,$(tlwr741v4_cmdline
),0x07410004,1,4Mlzma
)
981 define Image
/Build
/Profile
/TLWR743
982 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr743nd-v1
,$(tlwr741_cmdline
),0x07430001,1,4M
)
985 tlwr841v15_cmdline
=board
=TL-WR841N-v1.5 console
=ttyS0
,115200
986 tlwr841v3_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
987 tlwr841v5_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
988 tlwr841v7_cmdline
=board
=TL-WR841N-v7 console
=ttyS0
,115200
989 define Image
/Build
/Profile
/TLWR841
990 $(call Image
/Build
/Template
/$(fs_squash
)/$(1),TPLINKOLD
,tl-wr841n-v1.5
,$(tlwr841v15_cmdline
),0x08410002,2,4M
)
991 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr841nd-v3
,$(tlwr841v3_cmdline
),0x08410003,3,4M
)
992 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr841nd-v5
,$(tlwr841v5_cmdline
),0x08410005,1,4M
)
993 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr841nd-v7
,$(tlwr841v7_cmdline
),0x08410007,1,4M
)
996 tlwr842_cmdline
=board
=TL-MR3420 console
=ttyS0
,115200
997 define Image
/Build
/Profile
/TLWR842
998 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr842n-v1
,$(tlwr842_cmdline
),0x08420001,1,8M
)
1001 tlwr941v2_cmdline
=board
=TL-WR941ND console
=ttyS0
,115200
1002 tlwr941v4_cmdline
=board
=TL-WR741ND console
=ttyS0
,115200
1003 define Image
/Build
/Profile
/TLWR941
1004 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr941nd-v2
,$(tlwr941v2_cmdline
),0x09410002,2,4M
)
1005 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr941nd-v3
,$(tlwr941v2_cmdline
),0x09410002,2,4M
)
1006 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr941nd-v4
,$(tlwr941v4_cmdline
),0x09410004,1,4M
)
1009 tlwr1041_cmdline
=board
=TL-WR1041N-v2 console
=ttyS0
,115200
1010 define Image
/Build
/Profile
/TLWR1041
1011 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wr1041n-v2
,$(tlwr1041_cmdline
),0x10410002,1,4Mlzma
)
1014 tlwr1043_cmdline
=board
=TL-WR1043ND console
=ttyS0
,115200
1015 define Image
/Build
/Profile
/TLWR1043
1016 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK
,tl-wr1043nd-v1
,$(tlwr1043_cmdline
),0x10430001,1,8M
)
1019 tlwr2543_cmdline
=board
=TL-WR2543N console
=ttyS0
,115200
1020 define Image
/Build
/Profile
/TLWR2543
1021 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wr2543n-v1
,$(tlwr2543_cmdline
),0x25430001,1,8Mlzma
,-v
3.13.99)
1024 tlwdr4300_cmdline
=board
=TL-WDR4300 console
=ttyS0
,115200
1025 define Image
/Build
/Profile
/TLWDR4300
1026 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wdr3600-v1
,$(tlwdr4300_cmdline
),0x36000001,1,8Mlzma
)
1027 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wdr4300-v1
,$(tlwdr4300_cmdline
),0x43000001,1,8Mlzma
)
1028 $(call Image
/Build
/Template
/$(fs_64kraw
)/$(1),TPLINK-LZMA
,tl-wdr4310-v1
,$(tlwdr4300_cmdline
),0x43100001,1,8Mlzma
)
1031 wndr3700_cmdline
=board
=WNDR3700 console
=ttyS0
,115200
1032 wndr3700_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),6656k
(rootfs
),64k
(art
)ro
,7680k@
0x70000(firmware
)
1033 wndr3700v2_mtdlayout
=mtdparts
=spi0.0
:320k
(u-boot
)ro
,128k
(u-boot-env
)ro
,1024k
(kernel
),14848k
(rootfs
),64k
(art
)ro
,15872k@
0x70000(firmware
)
1034 define Image
/Build
/Profile
/WNDR3700
1035 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700
,$(wndr3700_cmdline
),$(wndr3700_mtdlayout
),3700,WNDR3700
,"" NA
,)
1036 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3700v2
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDR3700v2
,"",-H
29763654+16+64)
1037 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndrmac
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDRMAC
,"",-H
29763654+16+64)
1038 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndr3800
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDR3800
,"",-H
29763654+16+128)
1039 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Netgear
,wndrmacv2
,$(wndr3700_cmdline
),$(wndr3700v2_mtdlayout
),3701,WNDRMACv2
,"",-H
29763654+16+128)
1042 wr400n_cmdline
=board
=WRT400N console
=ttyS0
,115200
1043 define Image
/Build
/Profile
/WRT400N
1044 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WRT400N
,wrt400n
,$(wr400n_cmdline
))
1047 dir825b1_cmdline
=board
=DIR-825-B1 console
=ttyS0
,115200
1048 define Image
/Build
/Profile
/DIR825B1
1049 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),DIR825B1
,dir-825-b1
,$(dir825b1_cmdline
),01AP94-AR7161-RT-080619-00
,00AP94-AR7161-RT-080619-00
)
1052 tew673gru_cmdline
=board
=TEW-673GRU console
=ttyS0
,115200
1053 define Image
/Build
/Profile
/TEW673GRU
1054 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),DIR825B1
,tew-673gru
,$(tew673gru_cmdline
),01AP94-AR7161-RT-080619-01
,00AP94-AR7161-RT-080619-01
)
1057 wrt160nl_cmdline
=board
=WRT160NL console
=ttyS0
,115200
1058 define Image
/Build
/Profile
/WRT160NL
1059 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),CyberTAN
,wrt160nl
,$(wrt160nl_cmdline
),1.00.01)
1062 whrg301n_cmdline
=board
=WHR-G301N console
=ttyS0
,115200
1063 define Image
/Build
/Profile
/WHRG301N
1064 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-g301n
,$(whrg301n_cmdline
),$(whrhpg300n_mtdlayout
),WHR-G301N
)
1067 whrhpg300n_cmdline
=board
=WHR-HP-G300N console
=ttyS0
,115200
1068 whrhpg300n_mtdlayout
=mtdparts
=spi0.0
:248k
(u-boot
)ro
,8k
(u-boot-env
)ro
,960k
(kernel
),2816k
(rootfs
),64k
(art
)ro
,3712k@
0x40000(firmware
)
1069 define Image
/Build
/Profile
/WHRHPG300N
1070 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-hp-g300n
,$(whrhpg300n_cmdline
),$(whrhpg300n_mtdlayout
),WHR-HP-G300N
)
1073 whrhpgn_cmdline
=board
=WHR-HP-GN console
=ttyS0
,115200
1074 define Image
/Build
/Profile
/WHRHPGN
1075 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,whr-hp-gn
,$(whrhpgn_cmdline
),$(whrhpg300n_mtdlayout
),WHR-HP-GN
)
1078 wlaeag300n_cmdline
=board
=WLAE-AG300N console
=ttyS0
,115200
1079 define Image
/Build
/Profile
/WLAEAG300N
1080 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WHRHPG300N
,wlae-ag300n
,$(wlaeag300n_cmdline
),$(whrhpg300n_mtdlayout
),WLAE-AG300N
)
1083 wzrhpg300nh_cmdline
=board
=WZR-HP-G300NH console
=ttyS0
,115200
1084 define Image
/Build
/Profile
/WZRHPG300NH
1085 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-g300nh
,$(wzrhpg300nh_cmdline
),WZR-HP-G300NH
)
1088 wzrhpg300nh2_cmdline
=board
=WZR-HP-G300NH2 console
=ttyS0
,115200
1089 define Image
/Build
/Profile
/WZRHPG300NH2
1090 $(call Image
/Build
/Template
/$(fs_128k
)/$(1),WZRHPG30XNH
,wzr-hp-g300nh2
,$(wzrhpg300nh2_cmdline
),WZR-HP-G300NH2
)
1093 wzrhpag300h_cmdline
=board
=WZR-HP-AG300H console
=ttyS0
,115200
1094 define Image
/Build
/Profile
/WZRHPAG300H
1095 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WZRHPG30XNH
,wzr-hp-ag300h
,$(wzrhpag300h_cmdline
),WZR-HP-AG300H
)
1098 wzrhpg450h_cmdline
=board
=WZR-HP-G450H console
=ttyS0
,115200
1099 define Image
/Build
/Profile
/WZRHPG450H
1100 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),WZRHPG30XNH
,wzr-hp-g450h
,$(wzrhpg450h_cmdline
),WZR-HP-AG450H
)
1103 zcn1523h_mtdlayout
=mtdparts
=spi0.0
:256k
(u-boot
)ro
,64k
(u-boot-env
)ro
,6208k
(rootfs
),1472k
(kernel
),64k
(configure
)ro
,64k
(mfg
)ro
,64k
(art
)ro
,7680k@
0x50000(firmware
)
1104 zcn1523h28_cmdline
=board
=ZCN-1523H-2 console
=ttyS0
,115200 $(zcn1523h_mtdlayout
)
1105 define Image
/Build
/Profile
/ZCN1523H28
1106 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-2-8
,$(zcn1523h28_cmdline
))
1109 zcn1523h516_cmdline
=board
=ZCN-1523H-5 console
=ttyS0
,115200 $(zcn1523h_mtdlayout
)
1110 define Image
/Build
/Profile
/ZCN1523H516
1111 $(call Image
/Build
/Template
/$(fs_64k
)/$(1),Zcomax
,zcn-1523h-5-16
,$(zcn1523h516_cmdline
))
1114 define Image
/Build
/Profile
/Default
1115 $(call Image
/Build
/Profile
/ALFAAP96
,$(1))
1116 $(call Image
/Build
/Profile
/ALFANX
,$(1))
1117 $(call Image
/Build
/Profile
/ALL0258N
,$(1))
1118 $(call Image
/Build
/Profile
/ALL0305
,$(1))
1119 $(call Image
/Build
/Profile
/AP113
,$(1))
1120 $(call Image
/Build
/Profile
/AP121
,$(1))
1121 $(call Image
/Build
/Profile
/AP121MINI
,$(1))
1122 $(call Image
/Build
/Profile
/AP136
,$(1))
1123 $(call Image
/Build
/Profile
/AP81
,$(1))
1124 $(call Image
/Build
/Profile
/AP83
,$(1))
1125 $(call Image
/Build
/Profile
/A02RBW300N
,$(1))
1126 $(call Image
/Build
/Profile
/DB120
,$(1))
1127 $(call Image
/Build
/Profile
/DIR600A1
,$(1))
1128 $(call Image
/Build
/Profile
/DIR601A1
,$(1))
1129 $(call Image
/Build
/Profile
/DIR615C1
,$(1))
1130 $(call Image
/Build
/Profile
/DIR615E4
,$(1))
1131 $(call Image
/Build
/Profile
/DIR825B1
,$(1))
1132 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
1133 $(call Image
/Build
/Profile
/EWDORIN
,$(1))
1134 $(call Image
/Build
/Profile
/FR54RTR
,$(1))
1135 $(call Image
/Build
/Profile
/HORNETUB
,$(1))
1136 $(call Image
/Build
/Profile
/JA76PF
,$(1))
1137 $(call Image
/Build
/Profile
/JA76PF2
,$(1))
1138 $(call Image
/Build
/Profile
/JWAP003
,$(1))
1139 $(call Image
/Build
/Profile
/MZKW04NU
,$(1))
1140 $(call Image
/Build
/Profile
/MZKW300NH
,$(1))
1141 $(call Image
/Build
/Profile
/NBG_460N_550N_550NH
,$(1))
1142 $(call Image
/Build
/Profile
/OM2P
,$(1))
1143 $(call Image
/Build
/Profile
/PB42
,$(1))
1144 $(call Image
/Build
/Profile
/PB44
,$(1))
1145 $(call Image
/Build
/Profile
/PB92
,$(1))
1146 $(call Image
/Build
/Profile
/RW2458N
,$(1))
1147 $(call Image
/Build
/Profile
/TEW632BRP
,$(1))
1148 $(call Image
/Build
/Profile
/TEW652BRP
,$(1))
1149 $(call Image
/Build
/Profile
/TEW673GRU
,$(1))
1150 $(call Image
/Build
/Profile
/TEW712BR
,$(1))
1151 $(call Image
/Build
/Profile
/TLMR11U
,$(1))
1152 $(call Image
/Build
/Profile
/TLMR3020
,$(1))
1153 $(call Image
/Build
/Profile
/TLMR3040
,$(1))
1154 $(call Image
/Build
/Profile
/TLMR3220
,$(1))
1155 $(call Image
/Build
/Profile
/TLMR3420
,$(1))
1156 $(call Image
/Build
/Profile
/TLWA701
,$(1))
1157 $(call Image
/Build
/Profile
/TLWA901
,$(1))
1158 $(call Image
/Build
/Profile
/TLWDR4300
,$(1))
1159 $(call Image
/Build
/Profile
/TLWR703
,$(1))
1160 $(call Image
/Build
/Profile
/TLWR740
,$(1))
1161 $(call Image
/Build
/Profile
/TLWR741
,$(1))
1162 $(call Image
/Build
/Profile
/TLWR743
,$(1))
1163 $(call Image
/Build
/Profile
/TLWR841
,$(1))
1164 $(call Image
/Build
/Profile
/TLWR842
,$(1))
1165 $(call Image
/Build
/Profile
/TLWR941
,$(1))
1166 $(call Image
/Build
/Profile
/TLWR1041
,$(1))
1167 $(call Image
/Build
/Profile
/TLWR1043
,$(1))
1168 $(call Image
/Build
/Profile
/TLWR2543
,$(1))
1169 $(call Image
/Build
/Profile
/UBNT
,$(1))
1170 $(call Image
/Build
/Profile
/WP543
,$(1))
1171 $(call Image
/Build
/Profile
/WPE72
,$(1))
1172 $(call Image
/Build
/Profile
/WNDR3700
,$(1))
1173 $(call Image
/Build
/Profile
/AP96
,$(1))
1174 $(call Image
/Build
/Profile
/WRT400N
,$(1))
1175 $(call Image
/Build
/Profile
/WRT160NL
,$(1))
1176 $(call Image
/Build
/Profile
/WHRG301N
,$(1))
1177 $(call Image
/Build
/Profile
/WHRHPG300N
,$(1))
1178 $(call Image
/Build
/Profile
/WHRHPGN
,$(1))
1179 $(call Image
/Build
/Profile
/WLAEAG300N
,$(1))
1180 $(call Image
/Build
/Profile
/WZRHPG300NH
,$(1))
1181 $(call Image
/Build
/Profile
/WZRHPG300NH2
,$(1))
1182 $(call Image
/Build
/Profile
/WZRHPAG300H
,$(1))
1183 $(call Image
/Build
/Profile
/WZRHPG450H
,$(1))
1184 $(call Image
/Build
/Profile
/ZCN1523H28
,$(1))
1185 $(call Image
/Build
/Profile
/ZCN1523H516
,$(1))
1188 define Image
/Build
/Profile
/Minimal
1189 $(call Image
/Build
/Profile
/Default
,$(1))
1192 define Image
/Build
/Profile
/Madwifi
1193 $(call Image
/Build
/Profile
/EAP7660D
,$(1))
1194 $(call Image
/Build
/Profile
/UBNTRS
,$(1))
1195 $(call Image
/Build
/Profile
/UBNTRSPRO
,$(1))
1196 $(call Image
/Build
/Profile
/UBNTLSSR71
,$(1))
1197 $(call Image
/Build
/Profile
/WP543
,$(1))
1200 define Image
/Build
/squashfs
1201 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-raw
1202 cp
$(KDIR
)/root.squashfs
$(KDIR
)/root.squashfs-64k
1203 $(STAGING_DIR_HOST
)/bin
/padjffs2
$(KDIR
)/root.squashfs-64k
64
1204 cp
$(KDIR
)/root.squashfs-64k
$(BIN_DIR
)/$(IMG_PREFIX
)-root.squashfs-64k
1205 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
1208 define Image
/Build
/Initramfs
1209 $(call Image
/Build
/Profile
/$(PROFILE
),initramfs
)
1212 define Image
/Prepare
1213 gzip
-9 -c
$(KDIR
)/vmlinux
> $(KDIR
)/vmlinux.bin.gz
1214 $(call CompressLzma
,$(KDIR
)/vmlinux
,$(KDIR
)/vmlinux.bin.lzma
)
1215 $(call Image
/Build
/Profile
/$(if
$(CONFIG_IB
),Default
,$(PROFILE
)),loader
)
1219 $(call Image
/Build
/$(1))
1220 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1) bs
=128k conv
=sync
1221 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
1224 $(eval
$(call BuildImage
))