mvebu: use device-tree board detection
[openwrt/staging/dedeckeh.git] / target / linux / mvebu / image / cortex-a9.mk
1 #
2 # Copyright (C) 2012-2016 OpenWrt.org
3 # Copyright (C) 2016 LEDE-project.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 ifeq ($(SUBTARGET),cortexa9)
10
11 define Device/linksys
12 $(Device/NAND-128K)
13 DEVICE_TITLE := Linksys $(1)
14 DEVICE_PACKAGES := kmod-mwlwifi swconfig wpad-basic
15 IMAGES += factory.img
16 KERNEL_SIZE := 6144k
17 endef
18
19 define Device/linksys_wrt1200ac
20 $(call Device/linksys,WRT1200AC (Caiman))
21 DEVICE_DTS := armada-385-linksys-caiman
22 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
23 SUPPORTED_DEVICES := armada-385-linksys-caiman linksys,caiman
24 endef
25 TARGET_DEVICES += linksys_wrt1200ac
26
27 define Device/linksys_wrt1900acv2
28 $(call Device/linksys,WRT1900ACv2 (Cobra))
29 DEVICE_DTS := armada-385-linksys-cobra
30 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
31 SUPPORTED_DEVICES := armada-385-linksys-cobra linksys,cobra
32 endef
33 TARGET_DEVICES += linksys_wrt1900acv2
34
35 define Device/linksys_wrt3200acm
36 $(call Device/linksys,WRT3200ACM (Rango))
37 DEVICE_DTS := armada-385-linksys-rango
38 DEVICE_PACKAGES += kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
39 SUPPORTED_DEVICES := armada-385-linksys-rango linksys,rango
40 endef
41 TARGET_DEVICES += linksys_wrt3200acm
42
43 define Device/linksys_wrt1900acs
44 $(call Device/linksys,WRT1900ACS (Shelby))
45 DEVICE_DTS := armada-385-linksys-shelby
46 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
47 SUPPORTED_DEVICES := armada-385-linksys-shelby linksys,shelby
48 endef
49 TARGET_DEVICES += linksys_wrt1900acs
50
51 define Device/linksys_wrt32x
52 $(call Device/linksys,WRT32X (Venom))
53 DEVICE_DTS := armada-385-linksys-venom
54 DEVICE_PACKAGES += kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
55 KERNEL_SIZE := 3072k
56 KERNEL := kernel-bin | append-dtb
57 SUPPORTED_DEVICES := armada-385-linksys-venom linksys,venom
58 endef
59 TARGET_DEVICES += linksys_wrt32x
60
61 define Device/linksys_wrt1900ac
62 $(call Device/linksys,WRT1900AC (Mamba))
63 DEVICE_DTS := armada-xp-linksys-mamba
64 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
65 KERNEL_SIZE := 3072k
66 SUPPORTED_DEVICES := armada-xp-linksys-mamba linksys,mamba
67 endef
68 TARGET_DEVICES += linksys_wrt1900ac
69
70 define Device/plathome_openblocks-ax3-4
71 DEVICE_DTS := armada-xp-openblocks-ax3-4
72 SUPPORTED_DEVICES += openblocks-ax3-4
73 BLOCKSIZE := 128k
74 PAGESIZE := 1
75 IMAGES += factory.img
76 IMAGE/factory.img := append-kernel | pad-to $$(BLOCKSIZE) | append-ubi
77 DEVICE_TITLE := Plat'Home OpenBlocks AX3
78 endef
79 TARGET_DEVICES += plathome_openblocks-ax3-4
80
81 define Device/marvell_a385-db-ap
82 $(Device/NAND-256K)
83 DEVICE_DTS := armada-385-db-ap
84 IMAGES += factory.img
85 KERNEL_SIZE := 8192k
86 DEVICE_TITLE := Marvell Armada 385 DB AP (DB-88F6820-AP)
87 SUPPORTED_DEVICES += armada-385-db-ap
88 endef
89 TARGET_DEVICES += marvell_a385-db-ap
90
91 define Device/marvell_a370-db
92 $(Device/NAND-512K)
93 DEVICE_TITLE := Marvell Armada 370 DB (DB-88F6710-BP-DDR3)
94 DEVICE_DTS := armada-370-db
95 SUPPORTED_DEVICES += armada-370-db
96 endef
97 TARGET_DEVICES += marvell_a370-db
98
99 define Device/marvell_a370-rd
100 $(Device/NAND-512K)
101 DEVICE_TITLE := Marvell Armada 370 RD (RD-88F6710-A1)
102 DEVICE_DTS := armada-370-rd
103 SUPPORTED_DEVICES += armada-370-rd
104 endef
105 TARGET_DEVICES += marvell_a370-rd
106
107 define Device/marvell_axp-db
108 $(Device/NAND-512K)
109 DEVICE_TITLE := Marvell Armada XP DB (DB-78460-BP)
110 DEVICE_DTS := armada-xp-db
111 SUPPORTED_DEVICES += armada-xp-db
112 endef
113 TARGET_DEVICES += marvell_axp-db
114
115 define Device/marvell_axp-gp
116 $(Device/NAND-512K)
117 DEVICE_TITLE := Marvell Armada XP GP (DB-MV784MP-GP)
118 DEVICE_DTS := armada-xp-gp
119 SUPPORTED_DEVICES += armada-xp-gp
120 endef
121 TARGET_DEVICES += marvell_axp-gp
122
123 define Device/marvell_a388-rd
124 DEVICE_TITLE := Marvell Armada 388 RD (RD-88F6820-AP)
125 DEVICE_DTS := armada-388-rd
126 IMAGES := firmware.bin
127 IMAGE/firmware.bin := append-kernel | pad-to 256k | append-rootfs | pad-rootfs
128 SUPPORTED_DEVICES := armada-388-rd marvell,a385-rd
129 endef
130 TARGET_DEVICES += marvell_a388-rd
131
132 define Device/solidrun_clearfog-pro-a1
133 KERNEL_INSTALL := 1
134 KERNEL := kernel-bin
135 DEVICE_TITLE := SolidRun ClearFog Pro
136 DEVICE_PACKAGES := mkf2fs e2fsprogs partx-utils swconfig
137 IMAGES := sdcard.img.gz
138 IMAGE/sdcard.img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
139 DEVICE_DTS := armada-388-clearfog-pro armada-388-clearfog-base
140 SUPPORTED_DEVICES += armada-388-clearfog armada-388-clearfog-pro
141 UBOOT := clearfog-u-boot-spl.kwb
142 BOOT_SCRIPT := clearfog
143 endef
144 TARGET_DEVICES += solidrun_clearfog-pro-a1
145
146 define Device/solidrun_clearfog-base-a1
147 KERNEL_INSTALL := 1
148 KERNEL := kernel-bin
149 DEVICE_TITLE := SolidRun ClearFog Base
150 DEVICE_PACKAGES := mkf2fs e2fsprogs partx-utils
151 IMAGES := sdcard.img.gz
152 IMAGE/sdcard.img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
153 DEVICE_DTS := armada-388-clearfog-base armada-388-clearfog-pro
154 SUPPORTED_DEVICES += armada-388-clearfog-base
155 UBOOT := clearfog-u-boot-spl.kwb
156 BOOT_SCRIPT := clearfog
157 endef
158 TARGET_DEVICES += solidrun_clearfog-base-a1
159
160 define Device/globalscale_mirabox
161 $(Device/NAND-512K)
162 DEVICE_DTS := armada-370-mirabox
163 SUPPORTED_DEVICES += mirabox
164 DEVICE_TITLE := Globalscale Mirabox
165 endef
166 TARGET_DEVICES += globalscale_mirabox
167
168 define Device/cznic_turris-omnia
169 KERNEL_INSTALL := 1
170 KERNEL := kernel-bin
171 KERNEL_INITRAMFS := kernel-bin
172 DEVICE_TITLE := Turris Omnia
173 DEVICE_PACKAGES := \
174 mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
175 wpad-basic kmod-ath9k kmod-ath10k-ct ath10k-firmware-qca988x-ct \
176 partx-utils
177 IMAGES := $$(IMAGE_PREFIX)-sysupgrade.img.gz omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz
178 IMAGE/$$(IMAGE_PREFIX)-sysupgrade.img.gz := boot-img | sdcard-img | gzip | append-metadata
179 IMAGE/omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz := omnia-medkit-initramfs | gzip
180 IMAGE_NAME = $$(2)
181 DEVICE_DTS := armada-385-turris-omnia
182 SUPPORTED_DEVICES += armada-385-turris-omnia
183 endef
184 TARGET_DEVICES += cznic_turris-omnia
185
186 endif