2 # Copyright (C) 2012-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 include $(TOPDIR)/rules.mk
11 include $(INCLUDE_DIR)/image.mk
13 KERNEL_LOADADDR := 0x00008000
15 DEVICE_VARS += KERNEL_SIZE
19 BOARD_NAME = $$(DEVICE_DTS)
21 KERNEL := kernel-bin | append-dtb | uImage none
25 IMAGES := sysupgrade.bin
26 IMAGE/sysupgrade.bin := sysupgrade-nand
29 define Device/UBI-factory
32 IMAGE/factory.img := append-kernel $$$$(KERNEL_SIZE) | append-ubi | pad-to $$$$(PAGESIZE)
35 define Device/NAND-128K
40 VID_HDR_OFFSET := 2048
43 define Device/NAND-256K
49 define Device/NAND-512K
56 DEVICE_TITLE := Linksys $(1)
57 DEVICE_PACKAGES := kmod-mwlwifi wpad-mini swconfig
60 define Device/armada-385-linksys
66 define Device/linksys-wrt1200ac
67 $(call Device/linksys,WRT1200AC (Caiman))
68 $(Device/armada-385-linksys)
69 DEVICE_DTS := armada-385-linksys-caiman
71 TARGET_DEVICES += linksys-wrt1200ac
73 define Device/linksys-wrt1900acv2
74 $(call Device/linksys,WRT1900ACv2 (Cobra))
75 $(Device/armada-385-linksys)
76 DEVICE_DTS := armada-385-linksys-cobra
78 TARGET_DEVICES += linksys-wrt1900acv2
80 define Device/linksys-wrt1900acs
81 $(call Device/linksys,WRT1900ACS (Shelby))
82 $(Device/armada-385-linksys)
83 DEVICE_DTS := armada-385-linksys-shelby
85 TARGET_DEVICES += linksys-wrt1900acs
87 define Device/linksys-wrt1900ac
88 $(call Device/linksys,WRT1900AC (Mamba))
89 DEVICE_DTS := armada-xp-linksys-mamba
94 TARGET_DEVICES += linksys-wrt1900ac
96 define Device/openblocks-ax3
98 DEVICE_DTS := armada-xp-openblocks-ax3-4
101 IMAGE/factory.img := append-kernel $$$$(KERNEL_SIZE) | append-ubi
102 DEVICE_TITLE := Plat'Home OpenBlocks AX3
104 TARGET_DEVICES += openblocks-ax3
106 define Device/armada-385-db-ap
108 $(Device/UBI-factory)
110 DEVICE_TITLE := Marvell Armada 385 DB AP (DB-88F6820-AP)
112 TARGET_DEVICES += armada-385-db-ap
114 define Device/marvell-nand
116 DEVICE_TITLE := Marvell Armada $(1)
119 Device/armada-370-db = $(call Device/marvell-nand,370 DB (DB-88F6710-BP-DDR3))
120 Device/armada-370-rd = $(call Device/marvell-nand,370 RD (RD-88F6710-A1))
121 Device/armada-xp-db = $(call Device/marvell-nand,XP DB (DB-78460-BP))
122 Device/armada-xp-gp = $(call Device/marvell-nand,XP GP (DB-MV784MP-GP))
123 TARGET_DEVICES += armada-370-db armada-370-rd armada-xp-db armada-xp-gp
125 define Device/armada-388-rd
126 DEVICE_TITLE := Marvell Armada 388 RD (RD-88F6820-AP)
127 IMAGES := firmware.bin
128 IMAGE/firmware.bin := append-kernel 256k | append-rootfs | pad-rootfs
130 TARGET_DEVICES += armada-388-rd
132 define Device/armada-388-clearfog
134 DEVICE_TITLE := SolidRun ClearFog
136 TARGET_DEVICES += armada-388-clearfog
138 define Device/globalscale-mirabox
140 DEVICE_DTS := armada-370-mirabox
141 DEVICE_TITLE := Globalscale Mirabox
143 TARGET_DEVICES += globalscale-mirabox
145 $(eval $(call BuildImage))