[adm5120] add ids for Edimax BR-6104Wg boards
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / image / router_le.mk
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
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)
11 endef
12
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
24 endef
25
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
31 endef
32
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 \
38 -p0x30000:0 \
39 -b0x20000:0x10000:h:$(KDIR)/loader-$(2).gz \
40 -b0x30000:0::$(call imgname,$(1),$(2)).trx \
41 $(call imgname,$(1),$(2)).bin
42 endef
43
44 #
45 # Cellvision CAS-771
46 #
47 define Image/Build/Board/CAS771/Initramfs
48 $(call Image/Build/LZMAKernel/Admboot,cas-771,gz)
49 endef
50
51 #
52 # Cellvision CAS-771W
53 #
54 define Image/Build/Board/CAS771W/Initramfs
55 $(call Image/Build/LZMAKernel/Admboot,cas-771w,gz)
56 endef
57
58 #
59 # Compex NP27G
60 #
61 define Image/Build/Board/NP27G
62 $(call Image/Build/MyLoader,$(1),np27g)
63 endef
64
65 define Image/Build/Board/NP27G/squashfs
66 $(call Image/Build/Board/NP27G,squashfs)
67 endef
68
69 define Image/Build/Board/NP27G/jffs2-64k
70 $(call Image/Build/Board/NP27G,jffs2-64k)
71 endef
72
73 define Image/Build/Board/NP27G/Initramfs
74 $(call Image/Build/LZMAKernel/Generic,np27g,bin)
75 endef
76
77 #
78 # Compex NP28G
79 #
80 define Image/Build/Board/NP28G
81 $(call Image/Build/MyLoader,$(1),np28g)
82 endef
83
84 define Image/Build/Board/NP28G/squashfs
85 $(call Image/Build/Board/NP28G,squashfs)
86 endef
87
88 define Image/Build/Board/NP28G/jffs2-64k
89 $(call Image/Build/Board/NP28G,jffs2-64k)
90 endef
91
92 define Image/Build/Board/NP28G/Initramfs
93 $(call Image/Build/LZMAKernel/Generic,np28g,bin)
94 endef
95
96 #
97 # Compex WP54G
98 #
99 define Image/Build/Board/WP54G
100 $(call Image/Build/MyLoader,$(1),wp54g)
101 endef
102
103 define Image/Build/Board/WP54G/squashfs
104 $(call Image/Build/Board/WP54G,squashfs)
105 endef
106
107 define Image/Build/Board/WP54G/jffs2-64k
108 $(call Image/Build/Board/WP54G,jffs2-64k)
109 endef
110
111 define Image/Build/Board/WP54G/Initramfs
112 $(call Image/Build/LZMAKernel/Generic,wp54g,bin)
113 endef
114
115 #
116 # Compex WP54AG
117 #
118 define Image/Build/Board/WP54AG
119 $(call Image/Build/MyLoader,$(1),wp54ag)
120 endef
121
122 define Image/Build/Board/WP54AG/squashfs
123 $(call Image/Build/Board/WP54AG,squashfs)
124 endef
125
126 define Image/Build/Board/WP54AG/jffs2-64k
127 $(call Image/Build/Board/WP54AG,jffs2-64k)
128 endef
129
130 define Image/Build/Board/WP54AG/Initramfs
131 $(call Image/Build/LZMAKernel/Generic,wp54ag,bin)
132 endef
133
134 #
135 # Compex WPP54G
136 #
137 define Image/Build/Board/WPP54G
138 $(call Image/Build/MyLoader,$(1),wpp54g)
139 endef
140
141 define Image/Build/Board/WPP54G/squashfs
142 $(call Image/Build/Board/WPP54G,squashfs)
143 endef
144
145 define Image/Build/Board/WPP54G/jffs2-64k
146 $(call Image/Build/Board/WPP54G,jffs2-64k)
147 endef
148
149 define Image/Build/Board/WPP54G/Initramfs
150 $(call Image/Build/LZMAKernel/Generic,wpp54g,bin)
151 endef
152
153 #
154 # Compex WPP54AG
155 #
156 define Image/Build/Board/WPP54AG
157 $(call Image/Build/MyLoader,$(1),wpp54ag)
158 endef
159
160 define Image/Build/Board/WPP54AG/squashfs
161 $(call Image/Build/Board/WPP54AG,squashfs)
162 endef
163
164 define Image/Build/Board/WPP54AG/jffs2-64k
165 $(call Image/Build/Board/WPP54AG,jffs2-64k)
166 endef
167
168 define Image/Build/Board/WPP54AG/Initramfs
169 $(call Image/Build/LZMAKernel/Generic,wpp54ag,bin)
170 endef
171
172 #
173 # Compex WP54G-WRT
174 #
175 define Image/Build/Board/WP54GWRT
176 $(call Image/Build/Compex,$(1),wp54g-wrt)
177 endef
178
179 define Image/Build/Board/WP54GWRT/squashfs
180 $(call Image/Build/Board/WP54GWRT,squashfs)
181 endef
182
183 define Image/Build/Board/WP54GWRT/jffs2-64k
184 $(call Image/Build/Board/WP54GWRT,jffs2-64k)
185 endef
186
187 define Image/Build/Board/WP54GWRT/Initramfs
188 $(call Image/Build/LZMAKernel/KArgs,wp54g-wrt,bin)
189 endef
190
191 #
192 # Edimax BR-6104K/KP
193 #
194 define Image/Build/Board/BR6104K
195 $(call Image/Build/Edimax,$(1),br-6104k)
196 endef
197
198 define Image/Build/Board/BR6104K/squashfs
199 $(call Image/Build/Board/BR6104K,squashfs)
200 endef
201
202 define Image/Build/Board/BR6104K/Initramfs
203 $(call Image/Build/LZMAKernel/Admboot,br-6104k,gz)
204 endef
205
206 #
207 # Edimax BR-6104WG
208 #
209 define Image/Build/Board/BR6104WG
210 $(call Image/Build/Edimax,$(1),br-6104wg)
211 endef
212
213 define Image/Build/Board/BR6104WG/squashfs
214 $(call Image/Build/Board/BR6104WG,squashfs)
215 endef
216
217 define Image/Build/Board/BR6104WG/Initramfs
218 $(call Image/Build/LZMAKernel/Admboot,br-6104wg,gz)
219 endef
220
221 #
222 # Infineon EASY 83000
223 #
224 define Image/Build/Board/EASY83000
225 $(call Image/Build/Infineon,$(1),easy-83000)
226 endef
227
228 define Image/Build/Board/EASY83000/squashfs
229 $(call Image/Build/Board/EASY83000,squashfs)
230 endef
231
232 define Image/Build/Board/EASY83000/jffs2-64k
233 $(call Image/Build/Board/EASY83000,jffs2-64k)
234 endef
235
236 define Image/Build/Board/EASY83000/Initramfs
237 $(call Image/Build/LZMAKernel/Admboot,easy-83000,gz)
238 endef
239
240 #
241 # Mikrotik RB-1xx
242 #
243 define Image/Build/Board/RB1xx/Initramfs
244 $(CP) $(KDIR)/vmlinux.elf $(call imgname,netboot,rb1xx)
245 endef
246
247 #
248 # Groups
249 #
250 define Image/Build/Group/Cellvision
251 $(call Image/Build/Board/CAS771/$(1))
252 $(call Image/Build/Board/CAS771W/$(1))
253 endef
254
255 define Image/Build/Group/WP54G
256 $(call Image/Build/Board/WP54G/$(1))
257 $(call Image/Build/Board/WP54AG/$(1))
258 $(call Image/Build/Board/WPP54G/$(1))
259 $(call Image/Build/Board/WPP54AG/$(1))
260 $(call Image/Build/Board/WP54GWRT/$(1))
261 endef
262
263 define Image/Build/Group/Compex
264 $(call Image/Build/Board/NP27G/$(1))
265 $(call Image/Build/Board/NP28G/$(1))
266
267 $(call Image/Build/Group/WP54G,$(1))
268 endef
269
270 define Image/Build/Group/Edimax
271 $(call Image/Build/Board/BR6104K/$(1))
272 $(call Image/Build/Board/BR6104WG/$(1))
273 endef
274
275 define Image/Build/Group/Infineon
276 $(call Image/Build/Board/EASY83000/$(1))
277 endef
278
279 define Image/Build/Group/All
280 $(call Image/Build/Group/Cellvision,$(1))
281 $(call Image/Build/Group/Compex,$(1))
282 $(call Image/Build/Group/Edimax,$(1))
283 $(call Image/Build/Group/Cellvision,$(1))
284 $(call Image/Build/Group/Infineon,$(1))
285 $(call Image/Build/Board/RB1xx/$(1))
286 endef
287
288 #
289 # Profiles
290 #
291 define Image/Build/Profile/Generic
292 $(call Image/Build/Group/All,$(1))
293 endef
294
295 define Image/Build/Profile/Atheros
296 $(call Image/Build/AllBoards,$(1))
297 endef
298
299 define Image/Build/Profile/Texas
300 $(call Image/Build/AllBoards,$(1))
301 endef
302
303 define Image/Build/Profile/Ralink
304 $(call Image/Build/AllBoards,$(1))
305 endef
306
307 define Image/Build/Profile/WP54G
308 $(call Image/Build/Group/WP54G,$(1))
309 endef
310
311 define Image/Build/Profile/NP27G
312 $(call Image/Build/Board/NP27G/$(1))
313 endef
314
315 define Image/Build/Profile/NP28G
316 $(call Image/Build/Board/NP28G/$(1))
317 endef
318
319 define Image/Build/Profile/CAS771
320 $(call Image/Build/Board/CAS771/$(1))
321 endef
322
323 define Image/Build/Profile/CAS771W
324 $(call Image/Build/Board/CAS771W/$(1))
325 endef
326
327 define Image/Build/Profile/BR6104KP
328 $(call Image/Build/Board/BR6104K/$(1))
329 endef
330
331 define Image/Build/Profile/RouterBoard
332 $(call Image/Build/Board/RB1xx/$(1))
333 endef
334
335 ifeq ($(PROFILE),RouterBoard)
336 define Image/cmdline/yaffs2
337 root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit
338 endef
339
340 define Image/BuildKernel/RouterBoard
341 $(CP) $(KDIR)/vmlinux.elf $(call imgname,kernel,rb1xx)
342 $(STAGING_DIR_HOST)/bin/patch-cmdline $(call imgname,kernel,rb1xx) \
343 '$(strip $(call Image/cmdline/yaffs2))'
344 endef
345
346 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
347 define Image/BuildKernel
348 $(call Image/BuildKernel/RouterBoard)
349 endef
350 endif
351
352 endif
353