f8d46fb94e79365b16dab4fbdc28156cc7d20aee
[openwrt/openwrt.git] / target / linux / lantiq / image / Makefile
1 #
2 # Copyright (C) 2010-2012 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 # boards missing since devicetree update
9 #EASY50712 ARV3527P
10
11 include $(TOPDIR)/rules.mk
12 include $(INCLUDE_DIR)/image.mk
13
14 JFFS2_BLOCKSIZE = 64k 128k 256k
15 NAND_BLOCKSIZE = 512:16k
16
17 LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
18
19 define Image/BuildLoader/Template
20 -rm -rf $(KDIR)/lzma-loader
21 $(LOADER_MAKE) LOADER=loader$(2)-$(1).bin\
22 LZMA_TEXT_START=0x80a00000 \
23 LOADADDR=0x80002000 \
24 LOADER_DATA="$(KDIR)/vmlinux$(2)-$(1).lzma" BOARD="$(1)" \
25 compile loader.bin
26 endef
27
28
29 define CompressLzma
30 $(STAGING_DIR_HOST)/bin/lzma e $(1) $(2)
31 endef
32
33 define PatchKernelLzma
34 cp $(KDIR)/vmlinux$(2) $(KDIR)/vmlinux$(2)-$(1)
35 $(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(1).dtb ../dts/$(1).dts
36 $(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux$(2)-$(1) $(KDIR)/$(1).dtb
37 $(call CompressLzma,$(KDIR)/vmlinux$(2)-$(1),$(KDIR)/vmlinux$(2)-$(1).lzma)
38 endef
39
40 define MkBrnImage
41 mkbrncmdline -i $(KDIR)/vmlinux-$(4) -o $(KDIR)/vmlinux-$(4)-brn BRN-BOOT $(6)
42 $(call CompressLzma,$(KDIR)/vmlinux-$(4)-brn,$(KDIR)/vmlinux-$(4)-brn.lzma)
43 mkbrnimg -s $(1) -m $(2) -o $(3) $(KDIR)/vmlinux-$(4)-brn.lzma $(KDIR)/root.$(5)
44 endef
45
46 define MkImageLzma
47 mkimage -A mips -O linux -T kernel -a 0x80002000 -C lzma \
48 -e 0x80002000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
49 -d $(KDIR)/vmlinux$(2)-$(1).lzma $(KDIR)/uImage-$(1)$(2)
50 endef
51
52 define TPLinkImageLzma
53 mktplinkfw2 -c -B $(2) -s \
54 -k $(KDIR)/vmlinux$(3)-$(1).lzma -o $(KDIR)/uImage-$(1)$(3)
55 endef
56
57 define MkImageEVA
58 lzma2eva 0x80002000 0x80002000 $(KDIR)/vmlinux$(2)-$(1).lzma $(KDIR)/$(1)$(2).eva.prealign
59 dd if=$(KDIR)/$(1)$(2).eva.prealign of=$(KDIR)/$(1)$(2).eva.align.64k bs=64k conv=sync
60 dd if=$(KDIR)/$(1)$(2).eva.prealign of=$(KDIR)/$(1)$(2).eva.align.128k bs=128k conv=sync
61 cat ./eva.dummy.squashfs >> $(KDIR)/$(1)$(2).eva.align.64k
62 endef
63
64 define CompressGzip
65 gzip -c $(1) > $(2)
66 endef
67
68 define PatchKernelGzip
69 cp $(KDIR)/vmlinux$(3) $(KDIR)/vmlinux$(3)-$(1)
70 $(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux$(3)-$(1) '$(strip $(2))'
71 $(call CompressGzip,$(KDIR)/vmlinux$(3)-$(1),$(KDIR)/vmlinux$(3)-$(1).gzip)
72 endef
73
74 define MkImageGzip
75 mkimage -A mips -O linux -T kernel -a 0x80002000 -C gzip \
76 -e 0x80002000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
77 -d $(KDIR)/vmlinux$(2)-$(1).gzip $(KDIR)/uImage-$(1)$(2)
78 endef
79
80 define Image/Build/squashfs
81 cat $(KDIR)/uImage-$(2) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
82 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
83 $(if $(3),$(call MkBrnImage,$(3),$(4),$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3)-brnImage,$(2),$(1),$(5)))
84 endef
85
86 define Image/BuildTPLink/squashfs
87 mktplinkfw2 -B $(3) -s -a 0x4 -j \
88 -k $(KDIR)/vmlinux-$(2).lzma -r $(KDIR)/root.$(1) \
89 -o $(BIN_DIR)/$(IMG_PREFIX)-$(2)-sysupgrade.image
90 endef
91
92 define Image/BuildEVA/squashfs
93 cat $(KDIR)/$(2).eva.align.64k $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
94 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva)
95 endef
96
97 define Image/BuildEVA/ubifs
98
99 ifneq ($($(PROFILE)_UBIFS_OPTS),)
100 $(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
101 endif
102 endef
103
104 define Image/BuildEVA/ubi
105
106 ifneq ($($(PROFILE)_UBI_OPTS),)
107 $(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
108 $(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
109 endif
110 endef
111
112 define Image/BuildLoader/squashfs
113 dd if=$(KDIR)/loader-$(2).bin of=$(KDIR)/loader-$(2).bin.padded bs=1536k conv=sync
114 cat $(KDIR)/loader-$(2).bin.padded $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
115 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
116 endef
117
118 define Image/BuildEVA/jffs2-128k
119 cat $(KDIR)/$(2).eva.align.128k $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
120 endef
121
122 define Image/Build/jffs2-64k
123 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=64k conv=sync
124 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
125 endef
126
127 define Image/Build/jffs2-128k
128 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=128k conv=sync
129 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
130 endef
131
132 define Image/Build/jffs2-256k
133 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=256k conv=sync
134 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
135 endef
136
137 define Image/Build/jffs2-nand-512-16k
138 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=16k conv=sync
139 $(CP) $(KDIR)/uImage-$(2)-$(1) $(BIN_DIR)/uImage-$(2)-$(1)
140 $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/root-$(2)-$(1)
141 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
142 endef
143
144 define Image/Build/ubifs
145
146 ifneq ($($(PROFILE)_UBIFS_OPTS),)
147 $(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
148 endif
149 endef
150
151 define Image/Build/ubi
152
153 ifneq ($($(PROFILE)_UBI_OPTS),)
154 $(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
155 endif
156 endef
157
158 define Image/InstallKernel/Template
159
160 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL),)
161 $(INSTALL_DIR) $(TARGET_DIR)/boot
162
163 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_UIMAGE),)
164 $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage $(TARGET_DIR)/boot/
165 ln -sf $(IMG_PREFIX)-$(1)-uImage $(TARGET_DIR)/boot/uImage
166 endif
167
168 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_ZIMAGE),)
169 $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-zImage $(TARGET_DIR)/boot/
170 ln -sf $(IMG_PREFIX)-$(1)-zImage $(TARGET_DIR)/boot/zImage
171 endif
172 endif
173
174 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_DTB),)
175 $(INSTALL_DIR) $(TARGET_DIR)/boot
176
177 ifneq ($(1),)
178 $(CP) $(KDIR)/$(1).dtb $(TARGET_DIR)/boot/
179 endif
180 endif
181 endef
182
183 define Image/BuildKernel/Template
184 $(call PatchKernelLzma,$(1))
185 $(call MkImageLzma,$(1))
186 $(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
187 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
188 $(call PatchKernelLzma,$(1),-initramfs)
189 $(call MkImageLzma,$(1),-initramfs)
190 $(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
191 endif
192 endef
193
194 define Image/BuildKernelLoader/Template
195 $(call PatchKernelLzma,$(1))
196 $(call Image/BuildLoader/Template,$(1))
197 $(CP) $(KDIR)/loader-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-loader
198 $(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux
199 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
200 $(call PatchKernelLzma,$(1),-initramfs)
201 $(call Image/BuildLoader/Template,$(1),-initramfs)
202 $(CP) $(KDIR)/loader-initramfs-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs-loader
203 $(CP) $(KDIR)/vmlinux-initramfs-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs
204 endif
205 endef
206
207 define Image/BuildKernelTPLink/Template
208 $(call PatchKernelLzma,$(1))
209 $(call TPLinkImageLzma,$(1),$(2))
210 $(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
211 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
212 $(call PatchKernelLzma,$(1),-initramfs)
213 $(call TPLinkImageLzma,$(1),$(2),-initramfs)
214 $(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
215 endif
216 endef
217
218 define Image/BuildKernelEVA/Template
219 $(call PatchKernelLzma,$(1))
220 $(call MkImageEVA,$(1))
221 $(CP) $(KDIR)/$(1).eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.64k
222 $(CP) $(KDIR)/$(1).eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.128k
223 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
224 $(call PatchKernelLzma,$(1),-initramfs)
225 $(call MkImageEVA,$(1),-initramfs)
226 $(CP) $(KDIR)/$(1)-initramfs.eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1)-initramfs.eva.align.64k
227 $(CP) $(KDIR)/$(1)-initramfs.eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1)-initramfs.eva.align.128k
228 endif
229 endef
230
231 define Image/BuildKernelGzip/Template
232 $(call PatchKernelGzip,$(1),$(if $(2),$(2) machtype=$(1),))
233 $(call MkImageGzip,$(1))
234 $(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
235 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
236 $(call PatchKernelGzip,$(1),$(if $(2),$(2) machtype=$(1),),-initramfs)
237 $(call MkImageGzip,$(1),-initramfs)
238 $(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
239 endif
240 endef
241
242
243 ifeq ($(CONFIG_TARGET_lantiq_falcon),y)
244
245 Image/BuildKernel/Profile/EASY98000NOR=$(call Image/BuildKernel/Template,EASY98000NOR)
246 Image/Build/Profile/EASY98000NOR=$(call Image/Build/$(1),$(1),EASY98000NOR)
247
248 Image/BuildKernel/Profile/EASY98000SFLASH=$(call Image/BuildKernel/Template,EASY98000SFLASH)
249 Image/Build/Profile/EASY98000SFLASH=$(call Image/Build/$(1),$(1),EASY98000SFLASH)
250
251 endif
252
253
254 ifeq ($(CONFIG_TARGET_lantiq_ase),y)
255
256 Image/BuildKernel/Profile/DGN1000B=$(call Image/BuildKernel/Template,DGN1000B)
257 Image/Build/Profile/DGN1000B=$(call Image/Build/$(1),$(1),DGN1000B)
258
259 endif
260
261
262 ifeq ($(CONFIG_TARGET_lantiq_xway),y)
263
264 # Danube
265 Image/BuildKernel/Profile/BTHOMEHUBV2B=$(call Image/BuildKernel/Template,BTHOMEHUBV2B)
266 Image/Build/Profile/BTHOMEHUBV2B=$(call Image/Build/$(1),$(1),BTHOMEHUBV2B)
267
268 Image/BuildKernel/Profile/EASY50712=$(call Image/BuildKernel/Template,EASY50712)
269 Image/Build/Profile/EASY50712=$(call Image/Build/$(1),$(1),EASY50712)
270
271 Image/BuildKernel/Profile/ACMP252=$(call Image/BuildKernel/Template,ACMP252)
272 Image/Build/Profile/ACMP252=$(call Image/Build/$(1),$(1),ACMP252)
273
274 Image/BuildKernel/Profile/ARV4510PW=$(call Image/BuildKernel/Template,ARV4510PW)
275 Image/Build/Profile/ARV4510PW=$(call Image/Build/$(1),$(1),ARV4510PW)
276
277 Image/BuildKernel/Profile/ARV4525PW=$(call Image/BuildKernel/Template,ARV4525PW)
278 Image/Build/Profile/ARV4525PW=$(call Image/Build/$(1),$(1),ARV4525PW)
279
280 Image/BuildKernel/Profile/ARV7525PW=$(call Image/BuildKernel/Template,ARV7525PW)
281 Image/Build/Profile/ARV7525PW=$(call Image/Build/$(1),$(1),ARV7525PW)
282
283 Image/BuildKernel/Profile/ARV4518PWR01=$(call Image/BuildKernel/Template,ARV4518PWR01)
284 Image/Build/Profile/ARV4518PWR01=$(call Image/Build/$(1),$(1),ARV4518PWR01)
285
286 Image/BuildKernel/Profile/ARV4518PWR01A=$(call Image/BuildKernel/Template,ARV4518PWR01A)
287 Image/Build/Profile/ARV4518PWR01A=$(call Image/Build/$(1),$(1),ARV4518PWR01A)
288
289 Image/BuildKernel/Profile/ARV4519PW=$(call Image/BuildKernel/Template,ARV4519PW)
290 Image/Build/Profile/ARV4519PW=$(call Image/Build/$(1),$(1),ARV4519PW)
291
292 Image/BuildKernel/Profile/ARV4520PW=$(call Image/BuildKernel/Template,ARV4520PW)
293 Image/Build/Profile/ARV4520PW=$(call Image/Build/$(1),$(1),ARV4520PW)
294
295 Image/BuildKernel/Profile/ARV452CQW=$(call Image/BuildKernel/Template,ARV452CQW)
296 Image/Build/Profile/ARV452CQW=$(call Image/Build/$(1),$(1),ARV452CQW)
297
298 Image/BuildKernel/Profile/ARV7510PW22=$(call Image/BuildKernel/Template,ARV7510PW22)
299 Image/Build/Profile/ARV7510PW22=$(call Image/Build/$(1),$(1),ARV7510PW22)
300
301 Image/BuildKernel/Profile/ARV7518PW=$(call Image/BuildKernel/Template,ARV7518PW)
302 Image/Build/Profile/ARV7518PW=$(call Image/Build/$(1),$(1),ARV7518PW)
303
304 Image/BuildKernel/Profile/ARV7519PW=$(call Image/BuildKernel/Template,ARV7519PW)
305 Image/Build/Profile/ARV7519PW=$(call Image/Build/$(1),$(1),ARV7519PW)
306
307 Image/BuildKernel/Profile/ARV752DPW=$(call Image/BuildKernel/Template,ARV752DPW)
308 Image/Build/Profile/ARV752DPW=$(call Image/Build/$(1),$(1),ARV752DPW)
309
310 Image/BuildKernel/Profile/ARV752DPW22=$(call Image/BuildKernel/Template,ARV752DPW22)
311 Image/Build/Profile/ARV752DPW22=$(call Image/Build/$(1),$(1),ARV752DPW22)
312
313 Image/BuildKernel/Profile/GIGASX76X=$(call Image/BuildKernel/Template,GIGASX76X)
314 Image/Build/Profile/GIGASX76X=$(call Image/Build/$(1),$(1),GIGASX76X)
315
316
317 # AR9
318 Image/BuildKernel/Profile/DGN3500=$(call Image/BuildKernel/Template,DGN3500)
319 Image/Build/Profile/DGN3500=$(call Image/Build/$(1),$(1),DGN3500)
320
321 Image/BuildKernel/Profile/DGN3500B=$(call Image/BuildKernel/Template,DGN3500)
322 Image/Build/Profile/DGN3500B=$(call Image/Build/$(1),$(1),DGN3500)
323
324 Image/BuildKernel/Profile/WBMRA=$(call Image/BuildKernel/Template,WBMR)
325 Image/Build/Profile/WBMRA=$(call Image/Build/$(1),$(1),WBMR)
326
327 Image/BuildKernel/Profile/WBMRB=$(call Image/BuildKernel/Template,WBMR)
328 Image/Build/Profile/WBMRB=$(call Image/Build/$(1),$(1),WBMR)
329
330 Image/BuildKernel/Profile/FRITZ7320=$(call Image/BuildKernelEVA/Template,FRITZ7320)
331 Image/Build/Profile/FRITZ7320=$(call Image/BuildEVA/$(1),$(1),FRITZ7320)
332
333 Image/BuildKernel/Profile/GR7000=$(call Image/BuildKernel/Template,GR7000)
334 Image/Build/Profile/GR7000=$(call Image/Build/$(1),$(1),GR7000)
335
336 Image/BuildKernel/Profile/H201L=$(call Image/BuildKernel/Template,H201L)
337 Image/Build/Profile/H201L=$(call Image/Build/$(1),$(1),H201L)
338
339 Image/BuildKernel/Profile/P2601HNFX=$(call Image/BuildKernel/Template,P2601HNFX)
340 Image/Build/Profile/P2601HNFX=$(call Image/Build/$(1),$(1),P2601HNFX)
341
342 endif
343
344
345 ifeq ($(CONFIG_TARGET_lantiq_xrx200),y)
346
347 # VR9
348 Image/BuildKernel/Profile/P2812HNUFX=$(call Image/BuildKernel/Template,P2812HNUFX)
349 Image/InstallKernel/Template/P2812HNUFX=$(call Image/InstallKernel/Template,P2812HNUFX)
350 Image/Build/Profile/P2812HNUFX=$(call Image/Build/$(1),$(1),P2812HNUFX)
351
352 Image/BuildKernel/Profile/ARV7519RWV11=$(call Image/BuildKernel/Template,ARV7519RWV11,$(1))
353 Image/Build/Profile/ARV7519RWV11=$(call Image/Build/$(1),$(1),ARV7519RWV11)
354
355 Image/BuildKernel/Profile/ARV7519RWV12=$(call Image/BuildKernel/Template,ARV7519RWV12,$(1))
356 Image/Build/Profile/ARV7519RWV12=$(call Image/Build/$(1),$(1),ARV7519RWV12)
357
358 Image/BuildKernel/Profile/EASY80920NAND=$(call Image/BuildKernel/Template,EASY80920NAND)
359 Image/Build/Profile/EASY80920NAND=$(call Image/Build/$(1),$(1),EASY80920NAND)
360
361 Image/BuildKernel/Profile/EASY80920NOR=$(call Image/BuildKernel/Template,EASY80920NOR)
362 Image/Build/Profile/EASY80920NOR=$(call Image/Build/$(1),$(1),EASY80920NOR)
363
364 Image/BuildKernel/Profile/FRITZ3370=$(call Image/BuildKernelEVA/Template,FRITZ3370)
365 Image/Build/Profile/FRITZ3370=$(call Image/BuildEVA/$(1),$(1),FRITZ3370)
366
367 Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelLoader/Template,VG3503J)
368 Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J)
369
370 Image/BuildKernel/Profile/VG3503J_V2=$(call Image/BuildKernelLoader/Template,VG3503J_V2)
371 Image/Build/Profile/VG3503J_V2=$(call Image/BuildLoader/$(1),$(1),VG3503J_V2)
372
373 Image/BuildKernel/Profile/TDW8970=$(call Image/BuildKernelTPLink/Template,TDW8970,TD-W8970v1,$(1))
374 Image/Build/Profile/TDW8970=$(call Image/BuildTPLink/$(1),$(1),TDW8970,TD-W8970v1)
375
376 Image/BuildKernel/Profile/VGV7519NOR=$(call Image/BuildKernel/Template,VGV7519NOR,$(1))
377 Image/Build/Profile/VGV7519NOR=$(call Image/Build/$(1),$(1),VGV7519NOR)
378
379 Image/BuildKernel/Profile/VGV7519BRN=$(call Image/BuildKernel/Template,VGV7519BRN,$(1))
380 Image/Build/Profile/VGV7519BRN=$(call Image/Build/$(1),$(1),VGV7519BRN,5D00008000,0x12345678,$(1))
381
382 endif
383
384
385 ifeq ($(CONFIG_TARGET_lantiq_svip_be),y)
386
387 Image/BuildKernel/Profile/EASY33016=$(call Image/BuildKernelGzip/Template,EASY33016)
388 Image/Build/Profile/EASY33016=$(call Image/Build/$(1),$(1),EASY33016)
389
390 endif
391
392
393 define Image/BuildKernel
394 $(call Image/BuildKernel/Profile/$(PROFILE))
395 endef
396
397 define Image/InstallKernel
398 $(call Image/InstallKernel/Template/$(PROFILE))
399 endef
400
401 define Image/Build
402 $(call Image/Build/Profile/$(PROFILE),$(1))
403 endef
404
405 $(eval $(call BuildImage))