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 Image
/Build
/Compex
9 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0,y
,$(2))
10 $(call Image
/Build
/TRX
,$(call imgname
,$(1),$(2)).trx
,$(1),$(KDIR
)/loader-
$(2).gz
)
13 define Image
/Build
/Edimax
14 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0x6D8,y
,$(2))
15 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
16 $(STAGING_DIR_HOST
)/bin
/mkcsysimg
-B
$(2) -d
-w \
17 -r
$(KDIR
)/loader-
$(2).gz \
18 -x
$(call imgname
,$(1),$(2)).trx \
19 $(call imgname
,$(1),$(2))-webui.bin
20 $(STAGING_DIR_HOST
)/bin
/mkcsysimg
-B
$(2) -d \
21 -r
$(KDIR
)/loader-
$(2).gz \
22 -x
$(call imgname
,$(1),$(2)).trx \
23 $(call imgname
,$(1),$(2))-xmodem.bin
26 define Image
/Build
/Infineon
27 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0x6D8,y
,$(2))
28 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
29 dd if
=$(KDIR
)/loader-
$(2).gz of
=$(call imgname
,$(1),$(2)).img bs
=64k conv
=sync
30 cat
$(call imgname
,$(1),$(2)).trx
>> $(call imgname
,$(1),$(2)).img
33 define Image
/Build
/MyLoader
34 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0)
35 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
36 $(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) \
37 -p0x20000
:0x10000:ahp
:0x80001000 \
39 -b0x20000
:0x10000:h
:$(KDIR
)/loader-
$(2).gz \
40 -b0x30000
:0::$(call imgname
,$(1),$(2)).trx \
41 $(call imgname
,$(1),$(2)).bin
47 define Image
/Build
/Board
/CAS771
/Initramfs
48 $(call Image
/Build
/LZMAKernel
/Admboot
,cas-771
,gz
)
54 define Image
/Build
/Board
/CAS771W
/Initramfs
55 $(call Image
/Build
/LZMAKernel
/Admboot
,cas-771w
,gz
)
61 define Image
/Build
/Board
/NP27G
62 $(call Image
/Build
/MyLoader
,$(1),np27g
)
65 define Image
/Build
/Board
/NP27G
/squashfs
66 $(call Image
/Build
/Board
/NP27G
,squashfs
)
69 define Image
/Build
/Board
/NP27G
/jffs2-64k
70 $(call Image
/Build
/Board
/NP27G
,jffs2-64k
)
73 define Image
/Build
/Board
/NP27G
/Initramfs
74 $(call Image
/Build
/LZMAKernel
/Generic
,np27g
,bin
)
80 define Image
/Build
/Board
/NP28G
81 $(call Image
/Build
/MyLoader
,$(1),np28g
)
84 define Image
/Build
/Board
/NP28G
/squashfs
85 $(call Image
/Build
/Board
/NP28G
,squashfs
)
88 define Image
/Build
/Board
/NP28G
/jffs2-64k
89 $(call Image
/Build
/Board
/NP28G
,jffs2-64k
)
92 define Image
/Build
/Board
/NP28G
/Initramfs
93 $(call Image
/Build
/LZMAKernel
/Generic
,np28g
,bin
)
99 define Image
/Build
/Board
/WP54G
100 $(call Image
/Build
/MyLoader
,$(1),wp54g
)
103 define Image
/Build
/Board
/WP54G
/squashfs
104 $(call Image
/Build
/Board
/WP54G
,squashfs
)
107 define Image
/Build
/Board
/WP54G
/jffs2-64k
108 $(call Image
/Build
/Board
/WP54G
,jffs2-64k
)
111 define Image
/Build
/Board
/WP54G
/Initramfs
112 $(call Image
/Build
/LZMAKernel
/Generic
,wp54g
,bin
)
118 define Image
/Build
/Board
/WP54AG
119 $(call Image
/Build
/MyLoader
,$(1),wp54ag
)
122 define Image
/Build
/Board
/WP54AG
/squashfs
123 $(call Image
/Build
/Board
/WP54AG
,squashfs
)
126 define Image
/Build
/Board
/WP54AG
/jffs2-64k
127 $(call Image
/Build
/Board
/WP54AG
,jffs2-64k
)
130 define Image
/Build
/Board
/WP54AG
/Initramfs
131 $(call Image
/Build
/LZMAKernel
/Generic
,wp54ag
,bin
)
137 define Image
/Build
/Board
/WPP54G
138 $(call Image
/Build
/MyLoader
,$(1),wpp54g
)
141 define Image
/Build
/Board
/WPP54G
/squashfs
142 $(call Image
/Build
/Board
/WPP54G
,squashfs
)
145 define Image
/Build
/Board
/WPP54G
/jffs2-64k
146 $(call Image
/Build
/Board
/WPP54G
,jffs2-64k
)
149 define Image
/Build
/Board
/WPP54G
/Initramfs
150 $(call Image
/Build
/LZMAKernel
/Generic
,wpp54g
,bin
)
156 define Image
/Build
/Board
/WPP54AG
157 $(call Image
/Build
/MyLoader
,$(1),wpp54ag
)
160 define Image
/Build
/Board
/WPP54AG
/squashfs
161 $(call Image
/Build
/Board
/WPP54AG
,squashfs
)
164 define Image
/Build
/Board
/WPP54AG
/jffs2-64k
165 $(call Image
/Build
/Board
/WPP54AG
,jffs2-64k
)
168 define Image
/Build
/Board
/WPP54AG
/Initramfs
169 $(call Image
/Build
/LZMAKernel
/Generic
,wpp54ag
,bin
)
175 define Image
/Build
/Board
/WP54GWRT
176 $(call Image
/Build
/Compex
,$(1),wp54g-wrt
)
179 define Image
/Build
/Board
/WP54GWRT
/squashfs
180 $(call Image
/Build
/Board
/WP54GWRT
,squashfs
)
183 define Image
/Build
/Board
/WP54GWRT
/jffs2-64k
184 $(call Image
/Build
/Board
/WP54GWRT
,jffs2-64k
)
187 define Image
/Build
/Board
/WP54GWRT
/Initramfs
188 $(call Image
/Build
/LZMAKernel
/KArgs
,wp54g-wrt
,bin
)
194 define Image
/Build
/Board
/BR6104K
195 $(call Image
/Build
/Edimax
,$(1),br-6104k
)
198 define Image
/Build
/Board
/BR6104K
/squashfs
199 $(call Image
/Build
/Board
/BR6104K
,squashfs
)
202 define Image
/Build
/Board
/BR6104K
/Initramfs
203 $(call Image
/Build
/LZMAKernel
/Admboot
,br-6104k
,gz
)
207 # Infineon EASY 83000
209 define Image
/Build
/Board
/EASY83000
210 $(call Image
/Build
/Infineon
,$(1),easy-83000
)
213 define Image
/Build
/Board
/EASY83000
/squashfs
214 $(call Image
/Build
/Board
/EASY83000
,squashfs
)
217 define Image
/Build
/Board
/EASY83000
/jffs2-64k
218 $(call Image
/Build
/Board
/EASY83000
,jffs2-64k
)
221 define Image
/Build
/Board
/EASY83000
/Initramfs
222 $(call Image
/Build
/LZMAKernel
/Admboot
,easy-83000
,gz
)
228 define Image
/Build
/Board
/RB1xx
/Initramfs
229 $(CP
) $(KDIR
)/vmlinux.elf
$(call imgname
,netboot
,rb1xx
)
235 define Image
/Build
/Group
/Cellvision
236 $(call Image
/Build
/Board
/CAS771
/$(1))
237 $(call Image
/Build
/Board
/CAS771W
/$(1))
240 define Image
/Build
/Group
/WP54G
241 $(call Image
/Build
/Board
/WP54G
/$(1))
242 $(call Image
/Build
/Board
/WP54AG
/$(1))
243 $(call Image
/Build
/Board
/WPP54G
/$(1))
244 $(call Image
/Build
/Board
/WPP54AG
/$(1))
245 $(call Image
/Build
/Board
/WP54GWRT
/$(1))
248 define Image
/Build
/Group
/Compex
249 $(call Image
/Build
/Board
/NP27G
/$(1))
250 $(call Image
/Build
/Board
/NP28G
/$(1))
252 $(call Image
/Build
/Group
/WP54G
,$(1))
255 define Image
/Build
/Group
/Edimax
256 $(call Image
/Build
/Board
/BR6104K
/$(1))
259 define Image
/Build
/Group
/Infineon
260 $(call Image
/Build
/Board
/EASY83000
/$(1))
263 define Image
/Build
/Group
/All
264 $(call Image
/Build
/Group
/Cellvision
,$(1))
265 $(call Image
/Build
/Group
/Compex
,$(1))
266 $(call Image
/Build
/Group
/Edimax
,$(1))
267 $(call Image
/Build
/Group
/Cellvision
,$(1))
268 $(call Image
/Build
/Group
/Infineon
,$(1))
269 $(call Image
/Build
/Board
/RB1xx
/$(1))
275 define Image
/Build
/Profile
/Generic
276 $(call Image
/Build
/Group
/All
,$(1))
279 define Image
/Build
/Profile
/Atheros
280 $(call Image
/Build
/AllBoards
,$(1))
283 define Image
/Build
/Profile
/Texas
284 $(call Image
/Build
/AllBoards
,$(1))
287 define Image
/Build
/Profile
/Ralink
288 $(call Image
/Build
/AllBoards
,$(1))
291 define Image
/Build
/Profile
/WP54G
292 $(call Image
/Build
/Group
/WP54G
,$(1))
295 define Image
/Build
/Profile
/NP27G
296 $(call Image
/Build
/Board
/NP27G
/$(1))
299 define Image
/Build
/Profile
/NP28G
300 $(call Image
/Build
/Board
/NP28G
/$(1))
303 define Image
/Build
/Profile
/CAS771
304 $(call Image
/Build
/Board
/CAS771
/$(1))
307 define Image
/Build
/Profile
/CAS771W
308 $(call Image
/Build
/Board
/CAS771W
/$(1))
311 define Image
/Build
/Profile
/BR6104KP
312 $(call Image
/Build
/Board
/BR6104K
/$(1))
315 define Image
/Build
/Profile
/RouterBoard
316 $(call Image
/Build
/Board
/RB1xx
/$(1))
319 ifeq ($(PROFILE
),RouterBoard
)
320 define Image
/cmdline
/yaffs2
321 root
=/dev
/mtdblock3 rootfstype
=yaffs2 init
=/etc
/preinit
324 define Image
/BuildKernel
/RouterBoard
325 $(CP
) $(KDIR
)/vmlinux.elf
$(call imgname
,kernel
,rb1xx
)
326 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(call imgname
,kernel
,rb1xx
) \
327 '$(strip $(call Image/cmdline/yaffs2))'
330 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
331 define Image
/BuildKernel
332 $(call Image
/BuildKernel
/RouterBoard
)