6bc6269da6a0b11c4c136d3143e06312346f0097
[openwrt/openwrt.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_TITLE := Linksys $(1)
13 DEVICE_PACKAGES := kmod-mwlwifi wpad-mini swconfig
14 endef
15
16 define Device/armada-385-linksys
17 $(Device/NAND-128K)
18 $(Device/UBI-factory)
19 KERNEL_SIZE := 6144k
20 endef
21
22 define Device/linksys-wrt1200ac
23 $(call Device/linksys,WRT1200AC (Caiman))
24 $(Device/armada-385-linksys)
25 DEVICE_DTS := armada-385-linksys-caiman
26 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
27 endef
28 TARGET_DEVICES += linksys-wrt1200ac
29
30 define Device/linksys-wrt1900acv2
31 $(call Device/linksys,WRT1900ACv2 (Cobra))
32 $(Device/armada-385-linksys)
33 DEVICE_DTS := armada-385-linksys-cobra
34 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
35 endef
36 TARGET_DEVICES += linksys-wrt1900acv2
37
38 define Device/linksys-wrt3200acm
39 $(call Device/linksys,WRT3200ACM (Rango))
40 $(Device/armada-385-linksys)
41 DEVICE_DTS := armada-385-linksys-rango
42 DEVICE_PACKAGES += kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
43 endef
44 TARGET_DEVICES += linksys-wrt3200acm
45
46 define Device/linksys-wrt1900acs
47 $(call Device/linksys,WRT1900ACS (Shelby))
48 $(Device/armada-385-linksys)
49 DEVICE_DTS := armada-385-linksys-shelby
50 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
51 endef
52 TARGET_DEVICES += linksys-wrt1900acs
53
54 define Device/linksys-wrt32x
55 $(call Device/linksys,WRT32X (Venom))
56 DEVICE_DTS := armada-385-linksys-venom
57 DEVICE_PACKAGES += kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
58 $(Device/armada-385-linksys)
59 KERNEL_SIZE := 3072k
60 KERNEL := kernel-bin | append-dtb
61 endef
62 TARGET_DEVICES += linksys-wrt32x
63
64 define Device/linksys-wrt1900ac
65 $(call Device/linksys,WRT1900AC (Mamba))
66 DEVICE_DTS := armada-xp-linksys-mamba
67 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
68 $(Device/NAND-128K)
69 $(Device/UBI-factory)
70 KERNEL_SIZE := 3072k
71 endef
72 TARGET_DEVICES += linksys-wrt1900ac
73
74 define Device/openblocks-ax3-4
75 $(Device/UBI-factory)
76 DEVICE_DTS := armada-xp-openblocks-ax3-4
77 SUPPORTED_DEVICES := $(1)
78 BLOCKSIZE := 128k
79 PAGESIZE := 1
80 IMAGE/factory.img := append-kernel | pad-to $$(BLOCKSIZE) | append-ubi
81 DEVICE_TITLE := Plat'Home OpenBlocks AX3
82 endef
83 TARGET_DEVICES += openblocks-ax3-4
84
85 define Device/armada-385-db-ap
86 $(Device/NAND-256K)
87 $(Device/UBI-factory)
88 KERNEL_SIZE := 8192k
89 DEVICE_TITLE := Marvell Armada 385 DB AP (DB-88F6820-AP)
90 endef
91 TARGET_DEVICES += armada-385-db-ap
92
93 define Device/marvell-nand
94 $(Device/NAND-512K)
95 DEVICE_TITLE := Marvell Armada $(1)
96 endef
97
98 define Device/armada-370-db
99 $(call Device/marvell-nand,370 DB (DB-88F6710-BP-DDR3))
100 endef
101 TARGET_DEVICES += armada-370-db
102
103 define Device/armada-370-rd
104 $(call Device/marvell-nand,370 RD (RD-88F6710-A1))
105 endef
106 TARGET_DEVICES += armada-370-rd
107
108 define Device/armada-xp-db
109 $(call Device/marvell-nand,XP DB (DB-78460-BP))
110 endef
111 TARGET_DEVICES += armada-xp-db
112
113 define Device/armada-xp-gp
114 $(call Device/marvell-nand,XP GP (DB-MV784MP-GP))
115 endef
116 TARGET_DEVICES += armada-xp-gp
117
118 define Device/armada-388-rd
119 DEVICE_TITLE := Marvell Armada 388 RD (RD-88F6820-AP)
120 IMAGES := firmware.bin
121 IMAGE/firmware.bin := append-kernel | pad-to 256k | append-rootfs | pad-rootfs
122 endef
123 TARGET_DEVICES += armada-388-rd
124
125 define Device/armada-388-clearfog-pro
126 KERNEL_INSTALL := 1
127 KERNEL := kernel-bin
128 DEVICE_TITLE := SolidRun ClearFog Pro
129 DEVICE_PACKAGES := mkf2fs e2fsprogs swconfig kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1
130 IMAGES := sdcard.img.gz
131 IMAGE/sdcard.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
132 DEVICE_DTS := armada-388-clearfog-pro armada-388-clearfog-base
133 SUPPORTED_DEVICES := armada-388-clearfog-pro armada-388-clearfog
134 UBOOT := clearfog-u-boot-spl.kwb
135 endef
136 TARGET_DEVICES += armada-388-clearfog-pro
137
138 define Device/armada-388-clearfog-base
139 KERNEL_INSTALL := 1
140 KERNEL := kernel-bin
141 DEVICE_TITLE := SolidRun ClearFog Base
142 DEVICE_PACKAGES := mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1
143 IMAGES := sdcard.img.gz
144 IMAGE/sdcard.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
145 DEVICE_DTS := armada-388-clearfog-pro armada-388-clearfog-base
146 UBOOT := clearfog-u-boot-spl.kwb
147 endef
148 TARGET_DEVICES += armada-388-clearfog-base
149
150 define Device/globalscale-mirabox
151 $(Device/NAND-512K)
152 DEVICE_DTS := armada-370-mirabox
153 SUPPORTED_DEVICES := mirabox
154 DEVICE_TITLE := Globalscale Mirabox
155 endef
156 TARGET_DEVICES += globalscale-mirabox
157
158 define Device/turris-omnia
159 KERNEL_INSTALL := 1
160 KERNEL := kernel-bin
161 KERNEL_INITRAMFS := kernel-bin
162 DEVICE_TITLE := Turris Omnia
163 DEVICE_PACKAGES := \
164 mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
165 wpad-mini kmod-ath9k kmod-ath10k ath10k-firmware-qca988x
166 IMAGES := $$(IMAGE_PREFIX)-sysupgrade.img.gz omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz
167 IMAGE/$$(IMAGE_PREFIX)-sysupgrade.img.gz := boot-img | sdcard-img | gzip | append-metadata
168 IMAGE/omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz := omnia-medkit-initramfs | gzip
169 IMAGE_NAME = $$(2)
170 DEVICE_DTS := armada-385-turris-omnia
171 endef
172 TARGET_DEVICES += turris-omnia
173
174 endif