ixp4xx: New patch to support FSG-3 buttons
[openwrt.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 # Infineon EASY 83000
208 #
209 define Image/Build/Board/EASY83000
210 $(call Image/Build/Infineon,$(1),easy-83000)
211 endef
212
213 define Image/Build/Board/EASY83000/squashfs
214 $(call Image/Build/Board/EASY83000,squashfs)
215 endef
216
217 define Image/Build/Board/EASY83000/jffs2-64k
218 $(call Image/Build/Board/EASY83000,jffs2-64k)
219 endef
220
221 define Image/Build/Board/EASY83000/Initramfs
222 $(call Image/Build/LZMAKernel/Admboot,easy-83000,gz)
223 endef
224
225 #
226 # Mikrotik RB-1xx
227 #
228 define Image/Build/Board/RB1xx/Initramfs
229 $(CP) $(KDIR)/vmlinux.elf $(call imgname,netboot,rb1xx)
230 endef
231
232 #
233 # Groups
234 #
235 define Image/Build/Group/Cellvision
236 $(call Image/Build/Board/CAS771/$(1))
237 $(call Image/Build/Board/CAS771W/$(1))
238 endef
239
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))
246 endef
247
248 define Image/Build/Group/Compex
249 $(call Image/Build/Board/NP27G/$(1))
250 $(call Image/Build/Board/NP28G/$(1))
251
252 $(call Image/Build/Group/WP54G,$(1))
253 endef
254
255 define Image/Build/Group/Edimax
256 $(call Image/Build/Board/BR6104K/$(1))
257 endef
258
259 define Image/Build/Group/Infineon
260 $(call Image/Build/Board/EASY83000/$(1))
261 endef
262
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))
270 endef
271
272 #
273 # Profiles
274 #
275 define Image/Build/Profile/Generic
276 $(call Image/Build/Group/All,$(1))
277 endef
278
279 define Image/Build/Profile/Atheros
280 $(call Image/Build/AllBoards,$(1))
281 endef
282
283 define Image/Build/Profile/Texas
284 $(call Image/Build/AllBoards,$(1))
285 endef
286
287 define Image/Build/Profile/Ralink
288 $(call Image/Build/AllBoards,$(1))
289 endef
290
291 define Image/Build/Profile/WP54G
292 $(call Image/Build/Group/WP54G,$(1))
293 endef
294
295 define Image/Build/Profile/NP27G
296 $(call Image/Build/Board/NP27G/$(1))
297 endef
298
299 define Image/Build/Profile/NP28G
300 $(call Image/Build/Board/NP28G/$(1))
301 endef
302
303 define Image/Build/Profile/CAS771
304 $(call Image/Build/Board/CAS771/$(1))
305 endef
306
307 define Image/Build/Profile/CAS771W
308 $(call Image/Build/Board/CAS771W/$(1))
309 endef
310
311 define Image/Build/Profile/BR6104KP
312 $(call Image/Build/Board/BR6104K/$(1))
313 endef
314
315 define Image/Build/Profile/RouterBoard
316 $(call Image/Build/Board/RB1xx/$(1))
317 endef
318
319 ifeq ($(PROFILE),RouterBoard)
320 define Image/cmdline/yaffs2
321 root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit
322 endef
323
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))'
328 endef
329
330 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
331 define Image/BuildKernel
332 $(call Image/BuildKernel/RouterBoard)
333 endef
334 endif
335
336 endif
337
This page took 0.056363 seconds and 5 git commands to generate.