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)).bin
22 define Image
/Build
/Infineon
23 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0x6D8,y
,$(2))
24 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
25 dd if
=$(KDIR
)/loader-
$(2).gz of
=$(call imgname
,$(1),$(2)).img bs
=64k conv
=sync
26 cat
$(call imgname
,$(1),$(2)).trx
>> $(call imgname
,$(1),$(2)).img
29 define Image
/Build
/MyLoader
30 $(call Image
/Build
/Loader
,$(2),gz
,0x80500000,0)
31 $(call Image
/Build
/TRXNoloader
,$(call imgname
,$(1),$(2)).trx
,$(1))
32 $(STAGING_DIR_HOST
)/bin
/mkmylofw
-B
$(2) \
33 -p0x20000
:0x10000:ahp
:0x80001000 \
35 -b0x20000
:0x10000:h
:$(KDIR
)/loader-
$(2).gz \
36 -b0x30000
:0::$(call imgname
,$(1),$(2)).trx \
37 $(call imgname
,$(1),$(2)).bin
43 define Image
/Build
/Board
/CAS-771
/Initramfs
44 $(call Image
/Build
/LZMAKernel
/Admboot
,cas-771
,gz
)
50 define Image
/Build
/Board
/CAS-771W
/Initramfs
51 $(call Image
/Build
/LZMAKernel
/Admboot
,cas-771w
,gz
)
57 define Image
/Build
/Board
/NP27G
58 $(call Image
/Build
/MyLoader
,$(1),np27g
)
61 define Image
/Build
/Board
/NP27G
/squashfs
62 $(call Image
/Build
/Board
/NP27G
,squashfs
)
65 define Image
/Build
/Board
/NP27G
/jffs2-64k
66 $(call Image
/Build
/Board
/NP27G
,jffs2-64k
)
69 define Image
/Build
/Board
/NP27G
/Initramfs
70 $(call Image
/Build
/LZMAKernel
/Generic
,np27g
,bin
)
76 define Image
/Build
/Board
/NP28G
77 $(call Image
/Build
/MyLoader
,$(1),np28g
)
80 define Image
/Build
/Board
/NP28G
/squashfs
81 $(call Image
/Build
/Board
/NP28G
,squashfs
)
84 define Image
/Build
/Board
/NP28G
/jffs2-64k
85 $(call Image
/Build
/Board
/NP28G
,jffs2-64k
)
88 define Image
/Build
/Board
/NP28G
/Initramfs
89 $(call Image
/Build
/LZMAKernel
/Generic
,np28g
,bin
)
95 define Image
/Build
/Board
/WP54G
96 $(call Image
/Build
/MyLoader
,$(1),wp54g
)
99 define Image
/Build
/Board
/WP54G
/squashfs
100 $(call Image
/Build
/Board
/WP54G
,squashfs
)
103 define Image
/Build
/Board
/WP54G
/jffs2-64k
104 $(call Image
/Build
/Board
/WP54G
,jffs2-64k
)
107 define Image
/Build
/Board
/WP54G
/Initramfs
108 $(call Image
/Build
/LZMAKernel
/Generic
,wp54g
,bin
)
114 define Image
/Build
/Board
/WP54AG
115 $(call Image
/Build
/MyLoader
,$(1),wp54ag
)
118 define Image
/Build
/Board
/WP54AG
/squashfs
119 $(call Image
/Build
/Board
/WP54AG
,squashfs
)
122 define Image
/Build
/Board
/WP54AG
/jffs2-64k
123 $(call Image
/Build
/Board
/WP54AG
,jffs2-64k
)
126 define Image
/Build
/Board
/WP54AG
/Initramfs
127 $(call Image
/Build
/LZMAKernel
/Generic
,wp54ag
,bin
)
133 define Image
/Build
/Board
/WPP54G
134 $(call Image
/Build
/MyLoader
,$(1),wpp54g
)
137 define Image
/Build
/Board
/WPP54G
/squashfs
138 $(call Image
/Build
/Board
/WPP54G
,squashfs
)
141 define Image
/Build
/Board
/WPP54G
/jffs2-64k
142 $(call Image
/Build
/Board
/WPP54G
,jffs2-64k
)
145 define Image
/Build
/Board
/WPP54G
/Initramfs
146 $(call Image
/Build
/LZMAKernel
/Generic
,wpp54g
,bin
)
152 define Image
/Build
/Board
/WPP54AG
153 $(call Image
/Build
/MyLoader
,$(1),wpp54ag
)
156 define Image
/Build
/Board
/WPP54AG
/squashfs
157 $(call Image
/Build
/Board
/WPP54AG
,squashfs
)
160 define Image
/Build
/Board
/WPP54AG
/jffs2-64k
161 $(call Image
/Build
/Board
/WPP54AG
,jffs2-64k
)
164 define Image
/Build
/Board
/WPP54AG
/Initramfs
165 $(call Image
/Build
/LZMAKernel
/Generic
,wpp54ag
,bin
)
171 define Image
/Build
/Board
/WP54G-WRT
172 $(call Image
/Build
/Compex
,$(1),wp54g-wrt
)
175 define Image
/Build
/Board
/WP54G-WRT
/squashfs
176 $(call Image
/Build
/Board
/WP54G-WRT
,squashfs
)
179 define Image
/Build
/Board
/WP54G-WRT
/jffs2-64k
180 $(call Image
/Build
/Board
/WP54G-WRT
,jffs2-64k
)
183 define Image
/Build
/Board
/WP54G-WRT
/Initramfs
184 $(call Image
/Build
/LZMAKernel
/KArgs
,wp54g-wrt
,bin
)
190 define Image
/Build
/Board
/BR-6104K
191 $(call Image
/Build
/Edimax
,$(1),br-6104k
)
194 define Image
/Build
/Board
/BR-6104K
/squashfs
195 $(call Image
/Build
/Board
/BR-6104K
,squashfs
)
198 define Image
/Build
/Board
/BR-6104K
/jffs2-64k
199 $(call Image
/Build
/Board
/BR-6104K
,jffs2-64k
)
202 define Image
/Build
/Board
/BR-6104K
/Initramfs
203 $(call Image
/Build
/LZMAKernel
/Admboot
,br-6104k
,gz
)
207 # Infineon EASY 83000
209 define Image
/Build
/Board
/EASY-83000
210 $(call Image
/Build
/Infineon
,$(1),easy-83000
)
213 define Image
/Build
/Board
/EASY-83000
/squashfs
214 $(call Image
/Build
/Board
/EASY-83000
,squashfs
)
217 define Image
/Build
/Board
/EASY-83000
/jffs2-64k
218 $(call Image
/Build
/Board
/EASY-83000
,jffs2-64k
)
221 define Image
/Build
/Board
/EASY-83000
/Initramfs
222 $(call Image
/Build
/LZMAKernel
/Admboot
,easy-83000
,gz
)
228 define Image
/Build
/Board
/RB1xx
/Initramfs
229 $(CP
) $(KDIR
)/vmlinux.elf
$(IMGNAME
)-ramfs-rb1xx.elf
235 define Image
/Build
/Group
/Cellvision
236 $(call Image
/Build
/Board
/CAS-771
/$(1))
237 $(call Image
/Build
/Board
/CAS-771W
/$(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
/WP54G-WRT
/$(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
/BR-6104K
/$(1))
259 define Image
/Build
/Group
/Infineon
260 $(call Image
/Build
/Board
/EASY-83000
/$(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))
274 define Image
/Build
/Profile
/Generic
275 $(call Image
/Build
/Group
/All
,$(1))
278 define Image
/Build
/Profile
/Atheros
279 $(call Image
/Build
/AllBoards
,$(1))
282 define Image
/Build
/Profile
/Texas
283 $(call Image
/Build
/AllBoards
,$(1))
286 define Image
/Build
/Profile
/Ralink
287 $(call Image
/Build
/AllBoards
,$(1))
290 define Image
/Build
/Profile
/WP54G
291 $(call Image
/Build
/Group
/WP54G
,$(1))
294 define Image
/Build
/Profile
/NP27G
295 $(call Image
/Build
/Board
/NP27G
/$(1))
298 define Image
/Build
/Profile
/NP28G
299 $(call Image
/Build
/Board
/NP28G
/$(1))
302 define Image
/Build
/Profile
/CAS-771
303 $(call Image
/Build
/Board
/CAS-771
/$(1))
306 define Image
/Build
/Profile
/CAS-771W
307 $(call Image
/Build
/Board
/CAS-771W
/$(1))
310 define Image
/Build
/Profile
/RouterBoard
311 $(call Image
/Build
/Board
/RB1xx
/$(1))
314 ifeq ($(PROFILE
),Routerboard
)
315 define Image
/cmdline
/yaffs2
316 root
=/dev
/mtdblock1 rootfstype
=yaffs2 init
=/etc
/preinit
319 define Image
/BuildKernel
/RouterBoard
320 $(CP
) $(KDIR
)/vmlinux.elf
$(IMGNAME
)-rb1xx-vmlinux
321 $(STAGING_DIR_HOST
)/bin
/patch-cmdline
$(KDIR
)/vmlinux.elf \
322 '$(strip $(call Image/cmdline/yaffs2))'
325 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
326 define Image
/BuildKernel
327 $(call Image
/BuildKernel
/RouterBoard
)