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