2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 define trxedimax
/jffs2-128k
9 -a
0x20000 -f
$(KDIR
)/root.jffs2-128k
12 define trxedimax
/jffs2-64k
13 -a
0x10000 -f
$(KDIR
)/root.jffs2-64k
16 define trxedimax
/squashfs
17 -a
1024 -f
$(KDIR
)/root.squashfs
20 define Image
/Build
/TRXEdimax
21 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(1) -f
$(KDIR
)/vmlinux.lzma \
22 $(call trxedimax
/$(2))
25 define Image
/Build
/Compex
26 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0,y
,$(2))
27 $(call Image
/Build
/TRX
,$(call imgname
,$(1),$(2)).trx
,$(1),$(KDIR
)/loader-
$(2).gz
)
30 define Image
/Build
/Edimax
31 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0x6D8,y
,$(2))
32 $(call Image
/Build
/TRXEdimax
,$(call imgname
,$(1),$(2)).trx
,$(1))
33 $(STAGING_DIR_HOST
)/bin
/mkcsysimg
-B
$(2) -d
-w \
34 -r
$(KDIR
)/loader-
$(2).gz
::0x1000 \
35 -x
$(call imgname
,$(1),$(2)).trx
:0x10000 \
36 -x
$(JFFS2MARK
):0x10000 \
37 $(call imgname
,$(1),$(2))-webui.bin
38 $(STAGING_DIR_HOST
)/bin
/mkcsysimg
-B
$(2) -d \
39 -r
$(KDIR
)/loader-
$(2).gz
::0x1000 \
40 -x
$(call imgname
,$(1),$(2)).trx
:0x10000 \
41 -x
$(JFFS2MARK
):0x10000 \
42 $(call imgname
,$(1),$(2))-xmodem.bin
43 rm -f
$(call imgname
,$(1),$(2)).trx
46 define Image
/Build
/Infineon
47 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0x6D8,y
,$(2))
48 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
49 dd if
=$(KDIR
)/loader-
$(2).gz of
=$(call imgname
,$(1),$(2)).img bs
=64k conv
=sync
50 cat
$(call imgname
,$(1),$(2)).trx
>> $(call imgname
,$(1),$(2)).img
53 define Image
/Build
/MyLoader
54 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0)
55 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
56 $(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) \
57 -p0x20000
:0x10000:ahp
:0x80001000 \
59 -b0x20000
:0x10000:h
:$(KDIR
)/loader-
$(2).gz \
60 -b0x30000
:0::$(call imgname
,$(1),$(2)).trx \
61 $(call imgname
,$(1),$(2)).bin
67 define Image
/Build
/Board
/CAS771
/Initramfs
68 $(call Image
/Build
/LZMAKernel
/Admboot
,cas-771
,gz
)
74 define Image
/Build
/Board
/CAS771W
/Initramfs
75 $(call Image
/Build
/LZMAKernel
/Admboot
,cas-771w
,gz
)
81 define Image
/Build
/Board
/NP27G
82 $(call Image
/Build
/MyLoader
,$(1),np27g
)
85 define Image
/Build
/Board
/NP27G
/squashfs
86 $(call Image
/Build
/Board
/NP27G
,squashfs
)
89 define Image
/Build
/Board
/NP27G
/jffs2-64k
90 $(call Image
/Build
/Board
/NP27G
,jffs2-64k
)
93 define Image
/Build
/Board
/NP27G
/Initramfs
94 $(call Image
/Build
/LZMAKernel
/Generic
,np27g
,bin
)
100 define Image
/Build
/Board
/NP28G
101 $(call Image
/Build
/MyLoader
,$(1),np28g
)
104 define Image
/Build
/Board
/NP28G
/squashfs
105 $(call Image
/Build
/Board
/NP28G
,squashfs
)
108 define Image
/Build
/Board
/NP28G
/jffs2-64k
109 $(call Image
/Build
/Board
/NP28G
,jffs2-64k
)
112 define Image
/Build
/Board
/NP28G
/Initramfs
113 $(call Image
/Build
/LZMAKernel
/Generic
,np28g
,bin
)
119 define Image
/Build
/Board
/WP54G
120 $(call Image
/Build
/MyLoader
,$(1),wp54g
)
123 define Image
/Build
/Board
/WP54G
/squashfs
124 $(call Image
/Build
/Board
/WP54G
,squashfs
)
127 define Image
/Build
/Board
/WP54G
/jffs2-64k
128 $(call Image
/Build
/Board
/WP54G
,jffs2-64k
)
131 define Image
/Build
/Board
/WP54G
/Initramfs
132 $(call Image
/Build
/LZMAKernel
/Generic
,wp54g
,bin
)
138 define Image
/Build
/Board
/WP54AG
139 $(call Image
/Build
/MyLoader
,$(1),wp54ag
)
142 define Image
/Build
/Board
/WP54AG
/squashfs
143 $(call Image
/Build
/Board
/WP54AG
,squashfs
)
146 define Image
/Build
/Board
/WP54AG
/jffs2-64k
147 $(call Image
/Build
/Board
/WP54AG
,jffs2-64k
)
150 define Image
/Build
/Board
/WP54AG
/Initramfs
151 $(call Image
/Build
/LZMAKernel
/Generic
,wp54ag
,bin
)
157 define Image
/Build
/Board
/WPP54G
158 $(call Image
/Build
/MyLoader
,$(1),wpp54g
)
161 define Image
/Build
/Board
/WPP54G
/squashfs
162 $(call Image
/Build
/Board
/WPP54G
,squashfs
)
165 define Image
/Build
/Board
/WPP54G
/jffs2-64k
166 $(call Image
/Build
/Board
/WPP54G
,jffs2-64k
)
169 define Image
/Build
/Board
/WPP54G
/Initramfs
170 $(call Image
/Build
/LZMAKernel
/Generic
,wpp54g
,bin
)
176 define Image
/Build
/Board
/WPP54AG
177 $(call Image
/Build
/MyLoader
,$(1),wpp54ag
)
180 define Image
/Build
/Board
/WPP54AG
/squashfs
181 $(call Image
/Build
/Board
/WPP54AG
,squashfs
)
184 define Image
/Build
/Board
/WPP54AG
/jffs2-64k
185 $(call Image
/Build
/Board
/WPP54AG
,jffs2-64k
)
188 define Image
/Build
/Board
/WPP54AG
/Initramfs
189 $(call Image
/Build
/LZMAKernel
/Generic
,wpp54ag
,bin
)
195 define Image
/Build
/Board
/WP54GWRT
196 $(call Image
/Build
/Compex
,$(1),wp54g-wrt
)
199 define Image
/Build
/Board
/WP54GWRT
/squashfs
200 $(call Image
/Build
/Board
/WP54GWRT
,squashfs
)
203 define Image
/Build
/Board
/WP54GWRT
/jffs2-64k
204 $(call Image
/Build
/Board
/WP54GWRT
,jffs2-64k
)
207 define Image
/Build
/Board
/WP54GWRT
/Initramfs
208 $(call Image
/Build
/LZMAKernel
/KArgs
,wp54g-wrt
,bin
)
214 define Image
/Build
/Board
/BR6104K
215 $(call Image
/Build
/Edimax
,$(1),br-6104k
)
218 define Image
/Build
/Board
/BR6104K
/squashfs
219 $(call Image
/Build
/Board
/BR6104K
,squashfs
)
222 define Image
/Build
/Board
/BR6104K
/Initramfs
223 $(call Image
/Build
/LZMAKernel
/Admboot
,br-6104k
,gz
)
229 define Image
/Build
/Board
/BR6104KP
230 $(call Image
/Build
/Edimax
,$(1),br-6104kp
)
233 define Image
/Build
/Board
/BR6104KP
/squashfs
234 $(call Image
/Build
/Board
/BR6104KP
,squashfs
)
237 define Image
/Build
/Board
/BR6104KP
/Initramfs
238 $(call Image
/Build
/LZMAKernel
/Admboot
,br-6104kp
,gz
)
244 define Image
/Build
/Board
/BR6104WG
245 $(call Image
/Build
/Edimax
,$(1),br-6104wg
)
248 define Image
/Build
/Board
/BR6104WG
/squashfs
249 $(call Image
/Build
/Board
/BR6104WG
,squashfs
)
252 define Image
/Build
/Board
/BR6104WG
/Initramfs
253 $(call Image
/Build
/LZMAKernel
/Admboot
,br-6104wg
,gz
)
257 # Infineon EASY 83000
259 define Image
/Build
/Board
/EASY83000
260 $(call Image
/Build
/Infineon
,$(1),easy-83000
)
263 define Image
/Build
/Board
/EASY83000
/squashfs
264 $(call Image
/Build
/Board
/EASY83000
,squashfs
)
267 define Image
/Build
/Board
/EASY83000
/jffs2-64k
268 $(call Image
/Build
/Board
/EASY83000
,jffs2-64k
)
271 define Image
/Build
/Board
/EASY83000
/Initramfs
272 $(call Image
/Build
/LZMAKernel
/Admboot
,easy-83000
,gz
)
278 define Image
/Build
/Board
/RB1xx
/Initramfs
279 $(CP
) $(KDIR
)/vmlinux.elf
$(call imgname
,netboot
,rb1xx
)
285 define Image
/Build
/Group
/Cellvision
286 $(call Image
/Build
/Board
/CAS771
/$(1))
287 $(call Image
/Build
/Board
/CAS771W
/$(1))
290 define Image
/Build
/Group
/WP54G
291 $(call Image
/Build
/Board
/WP54G
/$(1))
292 $(call Image
/Build
/Board
/WP54AG
/$(1))
293 $(call Image
/Build
/Board
/WPP54G
/$(1))
294 $(call Image
/Build
/Board
/WPP54AG
/$(1))
295 $(call Image
/Build
/Board
/WP54GWRT
/$(1))
298 define Image
/Build
/Group
/Compex
299 $(call Image
/Build
/Board
/NP27G
/$(1))
300 $(call Image
/Build
/Board
/NP28G
/$(1))
301 $(call Image
/Build
/Group
/WP54G
,$(1))
304 define Image
/Build
/Group
/Edimax
305 $(call Image
/Build
/Board
/BR6104K
/$(1))
306 $(call Image
/Build
/Board
/BR6104KP
/$(1))
307 $(call Image
/Build
/Board
/BR6104WG
/$(1))
310 define Image
/Build
/Group
/Infineon
311 $(call Image
/Build
/Board
/EASY83000
/$(1))
314 define Image
/Build
/Group
/All
315 $(call Image
/Build
/Group
/Cellvision
,$(1))
316 $(call Image
/Build
/Group
/Compex
,$(1))
317 $(call Image
/Build
/Group
/Edimax
,$(1))
318 $(call Image
/Build
/Group
/Cellvision
,$(1))
319 $(call Image
/Build
/Group
/Infineon
,$(1))
320 $(call Image
/Build
/Board
/RB1xx
/$(1))
326 define Image
/Build
/Profile
/Generic
327 $(call Image
/Build
/Group
/All
,$(1))
330 define Image
/Build
/Profile
/Atheros
331 $(call Image
/Build
/AllBoards
,$(1))
334 define Image
/Build
/Profile
/Texas
335 $(call Image
/Build
/AllBoards
,$(1))
338 define Image
/Build
/Profile
/Ralink
339 $(call Image
/Build
/AllBoards
,$(1))
342 define Image
/Build
/Profile
/WP54G
343 $(call Image
/Build
/Group
/WP54G
,$(1))
346 define Image
/Build
/Profile
/NP27G
347 $(call Image
/Build
/Board
/NP27G
/$(1))
350 define Image
/Build
/Profile
/NP28G
351 $(call Image
/Build
/Board
/NP28G
/$(1))
354 define Image
/Build
/Profile
/CAS771
355 $(call Image
/Build
/Board
/CAS771
/$(1))
358 define Image
/Build
/Profile
/CAS771W
359 $(call Image
/Build
/Board
/CAS771W
/$(1))
362 define Image
/Build
/Profile
/BR6104K
363 $(call Image
/Build
/Board
/BR6104K
/$(1))
366 define Image
/Build
/Profile
/BR6104KP
367 $(call Image
/Build
/Board
/BR6104KP
/$(1))
370 define Image
/Build
/Profile
/RouterBoard
371 $(call Image
/Build
/Board
/RB1xx
/$(1))
374 ifeq ($(PROFILE
),RouterBoard
)
375 define Image
/cmdline
/yaffs2
376 root
=/dev
/mtdblock3 rootfstype
=yaffs2 init
=/etc
/preinit
379 define Image
/BuildKernel
/RouterBoard
380 $(CP
) $(KDIR
)/vmlinux.elf
$(call imgname
,kernel
,rb1xx
)
381 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(call imgname
,kernel
,rb1xx
) \
382 '$(strip $(call Image/cmdline/yaffs2))'
385 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
386 define Image
/BuildKernel
387 $(call Image
/BuildKernel
/RouterBoard
)