lantiq: build sysupgrade images for lantiqImage
[openwrt/openwrt.git] / target / linux / lantiq / image / Makefile
1 #
2 # Copyright (C) 2010-2016 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 JFFS2_BLOCKSIZE = 64k 128k 256k
12
13 KERNEL_LOADADDR = 0x80002000
14 KERNEL_ENTRY = 0x80002000
15
16 include $(TOPDIR)/rules.mk
17 include $(INCLUDE_DIR)/image.mk
18
19 LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
20
21 define Image/BuildLoader/Template
22 -rm -rf $(KDIR)/lzma-loader
23 $(LOADER_MAKE) LOADER=loader$(2)-$(1).bin\
24 LZMA_TEXT_START=0x80a00000 \
25 LOADADDR=0x80002000 \
26 LOADER_DATA="$(KDIR)/vmlinux$(2)-$(1).lzma" BOARD="$(1)" \
27 compile loader.bin
28 endef
29
30
31 define CompressLzma
32 $(STAGING_DIR_HOST)/bin/lzma e $(1) $(2)
33 endef
34
35 define PatchKernelLzma
36 cp $(KDIR)/vmlinux$(2) $(KDIR)/vmlinux$(2)-$(1)
37 $(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(1).dtb ../dts/$(1).dts
38 cat $(KDIR)/vmlinux$(2)-$(1) $(KDIR)/$(1).dtb > $(KDIR)/vmlinux$(2)-$(1).tmp
39 $(call CompressLzma,$(KDIR)/vmlinux$(2)-$(1).tmp,$(KDIR)/vmlinux$(2)-$(1).lzma)
40 endef
41
42 define MkBrnImage
43 mkbrncmdline -i $(KDIR)/vmlinux-$(5) -o $(KDIR)/vmlinux-$(5)-brn BRN-BOOT $(7)
44 $(call CompressLzma,$(KDIR)/vmlinux-$(5)-brn,$(KDIR)/vmlinux-$(5)-brn.lzma)
45 mkbrnimg -s $(1) -m $(2) -p $(3) -o $(4) $(KDIR)/vmlinux-$(5)-brn.lzma $(KDIR)/root.$(6)
46 endef
47
48 define MkImageLzma
49 mkimage -A mips -O linux -T kernel -a 0x80002000 -C lzma \
50 -e 0x80002000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
51 -d $(KDIR)/vmlinux$(2)-$(1).lzma $(KDIR)/uImage-$(1)$(2)
52 endef
53
54 define TPLinkImageLzma
55 mktplinkfw2 -c -B $(2) -s \
56 -k $(KDIR)/vmlinux$(3)-$(1).lzma -o $(KDIR)/uImage-$(1)$(3)
57 endef
58
59 define MkImageEVA
60 lzma2eva 0x80002000 0x80002000 $(KDIR)/vmlinux$(2)-$(1).lzma $(KDIR)/$(1)$(2).eva.prealign
61 dd if=$(KDIR)/$(1)$(2).eva.prealign of=$(KDIR)/$(1)$(2).eva.align.64k bs=64k conv=sync
62 dd if=$(KDIR)/$(1)$(2).eva.prealign of=$(KDIR)/$(1)$(2).eva.align.128k bs=128k conv=sync
63 cat ./eva.dummy.squashfs >> $(KDIR)/$(1)$(2).eva.align.64k
64 endef
65
66 define Image/Build/squashfs
67 cat $(KDIR)/uImage-$(2) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
68 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
69 $(if $(3),$(call MkBrnImage,$(3),$(4),$(5),$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3)-brnImage,$(2),$(1),$(6)))
70 endef
71
72 define Image/BuildNAND/squashfs
73
74 ifneq ($($(PROFILE)_UBI_OPTS),)
75 $(call prepare_generic_squashfs,$(KDIR)/root.$(1))
76 $(call Image/Build/UbinizeImage,$(PROFILE),,squashfs,$($(PROFILE)_UBI_OPTS))
77 $(call Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
78 endif
79 endef
80
81 DGN3500_SKERNEL=0x50000
82 DGN3500_SKERNEL_DECIMAL=327680
83 define Image/BuildDGN3500/squashfs
84 dd if=/dev/zero of=$(BIN_DIR)/$(IMG_PREFIX)-pad bs=$(DGN3500_SKERNEL_DECIMAL) count=1
85 cat $(BIN_DIR)/$(IMG_PREFIX)-pad $(KDIR)/uImage-$(2) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img
86 rm -r $(BIN_DIR)/$(IMG_PREFIX)-pad
87 dd if=/dev/zero ibs=16M count=1 | tr "\000" "\377" > $(BIN_DIR)/$(IMG_PREFIX)-pwf
88 cp $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadNA.img
89 dgn3500sum $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadNA.img $(DGN3500_SKERNEL) NA
90 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadNA.img)
91 cp $(BIN_DIR)/$(IMG_PREFIX)-pwf $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-NA.img
92 dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadNA.img of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-NA.img conv=notrunc
93 dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadNA.img of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade-NA.image bs=$(DGN3500_SKERNEL_DECIMAL) skip=1
94 rm -r $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadNA.img
95 mv $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadWW.img
96 dgn3500sum $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadWW.img $(DGN3500_SKERNEL) WW
97 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadWW.img)
98 mv $(BIN_DIR)/$(IMG_PREFIX)-pwf $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-WW.img
99 dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadWW.img of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-WW.img conv=notrunc
100 dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadWW.img of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade-WW.image bs=$(DGN3500_SKERNEL_DECIMAL) skip=1
101 rm -r $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepadWW.img
102 endef
103
104 define Image/BuildDGN3500B/squashfs
105 dd if=/dev/zero of=$(BIN_DIR)/$(IMG_PREFIX)-pad bs=327680 count=1
106 cat $(BIN_DIR)/$(IMG_PREFIX)-pad $(KDIR)/uImage-$(2) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img
107 rm -r $(BIN_DIR)/$(IMG_PREFIX)-pad
108 dd if=/dev/zero ibs=16M count=1 | tr "\000" "\377" > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory.img
109 dgn3500sum $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img $(DGN3500_SKERNEL) DE
110 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img)
111 dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory.img conv=notrunc
112 dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade.image bs=$(DGN3500_SKERNEL_DECIMAL) skip=1
113 rm -r $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory-prepad.img
114 dgn3500sum $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade.image $(DGN3500_SKERNEL) DE
115 endef
116
117
118 define Image/BuildTPLink/squashfs
119 mktplinkfw2 -B $(3) -s -a 0x4 -j \
120 -k $(KDIR)/vmlinux-$(2).lzma -r $(KDIR)/root.$(1) \
121 -o $(BIN_DIR)/$(IMG_PREFIX)-$(2)-sysupgrade.image
122 endef
123
124 define Image/BuildEVA/squashfs
125 cat $(KDIR)/$(2).eva.align.64k $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
126 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva)
127 endef
128
129 define Image/BuildEVA/ubifs
130
131 ifneq ($($(PROFILE)_UBIFS_OPTS),)
132 $(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
133 endif
134 endef
135
136 define Image/BuildEVA/ubi
137
138 ifneq ($($(PROFILE)_UBI_OPTS),)
139 $(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
140 $(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
141 endif
142 endef
143
144 define Image/BuildLoader/squashfs
145 dd if=$(KDIR)/loader-$(2).bin of=$(KDIR)/loader-$(2).bin.padded bs=3072k conv=sync
146 cat $(KDIR)/loader-$(2).bin.padded $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
147 $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
148 endef
149
150 define Image/BuildEVA/jffs2-128k
151 cat $(KDIR)/$(2).eva.align.128k $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
152 endef
153
154 define Image/Build/jffs2-64k
155 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=64k conv=sync
156 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
157 endef
158
159 define Image/Build/jffs2-128k
160 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=128k conv=sync
161 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
162 endef
163
164 define Image/Build/jffs2-256k
165 dd if=$(KDIR)/uImage-$(2) of=$(KDIR)/uImage-$(2)-$(1) bs=256k conv=sync
166 cat $(KDIR)/uImage-$(2)-$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image
167 endef
168
169 define Image/Build/ubifs
170
171 ifneq ($($(PROFILE)_UBIFS_OPTS),)
172 $(CP) $(KDIR)/root.ubifs $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubifs
173 endif
174 endef
175
176 define Image/Build/ubi
177
178 ifneq ($($(PROFILE)_UBI_OPTS),)
179 $(CP) $(KDIR)/root.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs.ubi
180 $(CP) $(KDIR)/root-overlay.ubi $(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-rootfs-overlay.ubi
181 endif
182 endef
183
184
185 define Image/BuildNAND/ubifs
186
187 ifneq ($($(PROFILE)_UBIFS_OPTS),)
188 ifneq ($($(PROFILE)_UBI_OPTS),)
189 $(call Image/Build/UbinizeImage,$(PROFILE),,ubifs,$($(PROFILE)_UBI_OPTS))
190 $(call Image/Build/SysupgradeNAND,$(PROFILE),$(1),$(KDIR)/uImage-$(PROFILE))
191 endif
192 endif
193 endef
194
195
196 define Image/InstallKernel/Template
197
198 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL),)
199 $(INSTALL_DIR) $(TARGET_DIR)/boot
200
201 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_UIMAGE),)
202 $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage $(TARGET_DIR)/boot/
203 ln -sf $(IMG_PREFIX)-$(1)-uImage $(TARGET_DIR)/boot/uImage
204 endif
205
206 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_ZIMAGE),)
207 $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-zImage $(TARGET_DIR)/boot/
208 ln -sf $(IMG_PREFIX)-$(1)-zImage $(TARGET_DIR)/boot/zImage
209 endif
210 endif
211
212 ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_DTB),)
213 $(INSTALL_DIR) $(TARGET_DIR)/boot
214
215 ifneq ($(1),)
216 $(CP) $(KDIR)/$(1).dtb $(TARGET_DIR)/boot/
217 endif
218 endif
219 endef
220
221 define Image/BuildKernel/Template
222 $(call PatchKernelLzma,$(1))
223 $(call MkImageLzma,$(1))
224 $(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
225 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
226 $(call PatchKernelLzma,$(1),-initramfs)
227 $(call MkImageLzma,$(1),-initramfs)
228 $(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
229 endif
230 endef
231
232 define Image/BuildKernelLoader/Template
233 $(CP) $(KDIR)/loader-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-loader
234 $(CP) $(KDIR)/vmlinux-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux
235 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
236 $(CP) $(KDIR)/loader-initramfs-$(1).bin $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs-loader
237 $(CP) $(KDIR)/vmlinux-initramfs-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux-initramfs
238 endif
239 endef
240
241 define Image/Prepare/Profile
242 $(call PatchKernelLzma,$(1))
243 $(call Image/BuildLoader/Template,$(1))
244 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
245 $(call PatchKernelLzma,$(1),-initramfs)
246 $(call Image/BuildLoader/Template,$(1),-initramfs)
247 endif
248 endef
249
250 define Image/BuildKernelTPLink/Template
251 $(call PatchKernelLzma,$(1))
252 $(call TPLinkImageLzma,$(1),$(2))
253 $(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage
254 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
255 $(call PatchKernelLzma,$(1),-initramfs)
256 $(call TPLinkImageLzma,$(1),$(2),-initramfs)
257 $(CP) $(KDIR)/uImage-$(1)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage-initramfs
258 endif
259 endef
260
261 define Image/BuildKernelEVA/Template
262 $(call PatchKernelLzma,$(1))
263 $(call MkImageEVA,$(1))
264 $(CP) $(KDIR)/$(1).eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.64k
265 $(CP) $(KDIR)/$(1).eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.128k
266 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
267 $(call PatchKernelLzma,$(1),-initramfs)
268 $(call MkImageEVA,$(1),-initramfs)
269 $(CP) $(KDIR)/$(1)-initramfs.eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1)-initramfs.eva.align.64k
270 $(CP) $(KDIR)/$(1)-initramfs.eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1)-initramfs.eva.align.128k
271 endif
272 endef
273
274
275 ### Kernel scripts ###
276 define Build/append-dtb
277 $(call Image/BuildDTB,../dts/$(DEVICE_DTS).dts,$@.dtb)
278 cat $@.dtb >> $@
279 endef
280
281 define Build/tplink-fw
282 mktplinkfw2 -c -B $(BOARD_ID) -s \
283 -k $@ -o $@.new
284 mv $@.new $@
285 endef
286
287 define Build/mktplinkfw2
288 mktplinkfw2 -B $(BOARD_ID) -s -a 0x4 -j \
289 -k $(word 1,$^) -r $(word 2,$^) \
290 -o $@
291 endef
292
293
294 # Shared device definition: applies to every defined device
295 define Device/Default
296 PROFILES = Default $$(DEVICE_PROFILE)
297 KERNEL_DEPENDS = $$(wildcard ../dts/$$(DEVICE_DTS).dts)
298 KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs
299 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
300 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
301 FILESYSTEMS := squashfs
302 DEVICE_PROFILE :=
303 DEVICE_DTS :=
304 IMAGES := sysupgrade.bin
305 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs
306 endef
307 DEVICE_VARS += BOARD_ID DEVICE_PROFILE DEVICE_DTS
308
309 define Device/lantiqTpLink
310 KERNEL := kernel-bin | append-dtb | lzma
311 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-fw
312 IMAGES := tplink
313 IMAGE/tplink := mktplinkfw2
314 endef
315
316 define lantiqTpLink
317 define Device/$(1)
318 $$(Device/lantiqTpLink)
319 DEVICE_PROFILE := $(1)
320 DEVICE_DTS := $(1)
321 BOARD_ID := $(2)
322 endef
323 TARGET_DEVICES += $(1)
324 endef
325
326 define lantiqImage
327 define Device/$(1)
328 $$(Device/lantiqImage)
329 DEVICE_PROFILE := $(1)
330 DEVICE_DTS := $(1)
331 endef
332 TARGET_DEVICES += $(1)
333 endef
334
335
336 ifeq ($(CONFIG_TARGET_lantiq_falcon),y)
337
338 $(eval $(call lantiqImage,EASY98000NOR))
339 $(eval $(call lantiqImage,EASY98000SFLASH))
340
341 endif
342
343
344 ifeq ($(CONFIG_TARGET_lantiq_ase),y)
345
346 $(eval $(call lantiqImage,DGN1000B))
347
348 endif
349
350
351 ifeq ($(CONFIG_TARGET_lantiq_xway),y)
352
353 # Danube
354 Image/BuildKernel/Profile/BTHOMEHUBV2B=$(call Image/BuildKernel/Template,BTHOMEHUBV2B)
355 Image/Build/Profile/BTHOMEHUBV2B=$(call Image/BuildNAND/$(1),$(1),BTHOMEHUBV2B)
356
357 $(eval $(call lantiqImage,EASY50712))
358 $(eval $(call lantiqImage,ACMP252))
359 $(eval $(call lantiqImage,ARV4510PW))
360 $(eval $(call lantiqImage,ARV4525PW))
361 $(eval $(call lantiqImage,ARV7525PW))
362 $(eval $(call lantiqImage,ARV4518PWR01))
363 $(eval $(call lantiqImage,ARV4518PWR01A))
364 $(eval $(call lantiqImage,ARV4519PW))
365 $(eval $(call lantiqImage,ARV4520PW))
366 $(eval $(call lantiqImage,ARV452CQW))
367 $(eval $(call lantiqImage,ARV7510PW22))
368 $(eval $(call lantiqImage,ARV7518PW))
369 $(eval $(call lantiqImage,ARV7519PW))
370 $(eval $(call lantiqImage,ARV752DPW))
371 $(eval $(call lantiqImage,ARV752DPW22))
372 $(eval $(call lantiqImage,ARV8539PW22))
373 $(eval $(call lantiqImage,GIGASX76X))
374
375
376 # AR9
377 Image/BuildKernel/Profile/BTHOMEHUBV3A=$(call Image/BuildKernel/Template,BTHOMEHUBV3A)
378 Image/Build/Profile/BTHOMEHUBV3A=$(call Image/BuildNAND/$(1),$(1),BTHOMEHUBV3A)
379
380 Image/BuildKernel/Profile/DGN3500=$(call Image/BuildKernel/Template,DGN3500)
381 Image/Build/Profile/DGN3500=$(call Image/BuildDGN3500/$(1),$(1),DGN3500)
382
383 Image/BuildKernel/Profile/DGN3500B=$(call Image/BuildKernel/Template,DGN3500B)
384 Image/Build/Profile/DGN3500B=$(call Image/BuildDGN3500B/$(1),$(1),DGN3500B)
385
386 $(eval $(call lantiqImage,WBMRA))
387 $(eval $(call lantiqImage,WBMRB))
388
389 Image/BuildKernel/Profile/FRITZ7320=$(call Image/BuildKernelEVA/Template,FRITZ7320)
390 Image/Build/Profile/FRITZ7320=$(call Image/BuildEVA/$(1),$(1),FRITZ7320)
391
392 $(eval $(call lantiqImage,GR7000))
393 $(eval $(call lantiqImage,H201L))
394 $(eval $(call lantiqImage,P2601HNFX))
395
396 endif
397
398
399 ifeq ($(CONFIG_TARGET_lantiq_xrx200),y)
400
401 # VR9
402 Image/BuildKernel/Profile/P2812HNUF1=$(call Image/BuildKernel/Template,P2812HNUF1)
403 Image/Build/Profile/P2812HNUF1=$(call Image/BuildNAND/$(1),$(1),P2812HNUF1)
404
405 Image/BuildKernel/Profile/P2812HNUF3=$(call Image/BuildKernel/Template,P2812HNUF3)
406 Image/Build/Profile/P2812HNUF3=$(call Image/BuildNAND/$(1),$(1),P2812HNUF3)
407
408 $(eval $(call lantiqImage,ARV7519RW22))
409
410 Image/BuildKernel/Profile/BTHOMEHUBV5A=$(call Image/BuildKernel/Template,BTHOMEHUBV5A)
411 Image/Build/Profile/BTHOMEHUBV5A=$(call Image/BuildNAND/$(1),$(1),BTHOMEHUBV5A)
412
413 $(eval $(call lantiqImage,EASY80920NAND))
414 $(eval $(call lantiqImage,EASY80920NOR))
415
416 Image/BuildKernel/Profile/FRITZ3370=$(call Image/BuildKernelEVA/Template,FRITZ3370)
417 Image/Build/Profile/FRITZ3370=$(call Image/BuildEVA/$(1),$(1),FRITZ3370)
418
419 Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelLoader/Template,VG3503J)
420 Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J)
421
422 Image/BuildKernel/Profile/VG3503J_V2=$(call Image/BuildKernelLoader/Template,VG3503J_V2)
423 Image/Build/Profile/VG3503J_V2=$(call Image/BuildLoader/$(1),$(1),VG3503J_V2)
424
425 $(eval $(call lantiqTpLink,TDW8970,TD-W8970v1))
426 $(eval $(call lantiqTpLink,TDW8980,TD-W8980v1))
427 $(eval $(call lantiqTpLink,VR200v,ArcherVR200V))
428 $(eval $(call lantiqImage,VGV7510KW22NOR))
429
430 Image/BuildKernel/Profile/VGV7510KW22BRN=$(call Image/BuildKernel/Template,VGV7510KW22BRN,$(1))
431 Image/Build/Profile/VGV7510KW22BRN=$(call Image/Build/$(1),$(1),VGV7510KW22BRN,BRNDA6431,0x12345678,0x04c11db7,$(1))
432
433 $(eval $(call lantiqImage,VGV7519NOR))
434
435 Image/BuildKernel/Profile/VGV7519BRN=$(call Image/BuildKernel/Template,VGV7519BRN,$(1))
436 Image/Build/Profile/VGV7519BRN=$(call Image/Build/$(1),$(1),VGV7519BRN,5D00008000,0x12345678,0x2083b8ed,$(1))
437
438 define Image/Prepare
439 $(call Image/Prepare/Profile,$(PROFILE))
440 endef
441
442 endif
443
444
445 define Image/BuildKernel
446 $(call Image/BuildKernel/Profile/$(PROFILE))
447 endef
448
449 define Image/InstallKernel
450 $(call Image/InstallKernel/Template/$(PROFILE))
451 endef
452
453 define Image/Build
454 $(call Image/Build/Profile/$(PROFILE),$(1))
455 endef
456
457 $(eval $(call BuildImage))