mvebu: Add subtarget for Cortex A9 build
[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-wrt1900ac
55 $(call Device/linksys,WRT1900AC (Mamba))
56 DEVICE_DTS := armada-xp-linksys-mamba
57 DEVICE_PACKAGES += mwlwifi-firmware-88w8864
58 $(Device/NAND-128K)
59 $(Device/UBI-factory)
60 KERNEL_SIZE := 3072k
61 endef
62 TARGET_DEVICES += linksys-wrt1900ac
63
64 define Device/openblocks-ax3-4
65 $(Device/UBI-factory)
66 DEVICE_DTS := armada-xp-openblocks-ax3-4
67 SUPPORTED_DEVICES := $(1)
68 BLOCKSIZE := 128k
69 PAGESIZE := 1
70 IMAGE/factory.img := append-kernel | pad-to $$(BLOCKSIZE) | append-ubi
71 DEVICE_TITLE := Plat'Home OpenBlocks AX3
72 endef
73 TARGET_DEVICES += openblocks-ax3-4
74
75 define Device/armada-385-db-ap
76 $(Device/NAND-256K)
77 $(Device/UBI-factory)
78 KERNEL_SIZE := 8192k
79 DEVICE_TITLE := Marvell Armada 385 DB AP (DB-88F6820-AP)
80 endef
81 TARGET_DEVICES += armada-385-db-ap
82
83 define Device/marvell-nand
84 $(Device/NAND-512K)
85 DEVICE_TITLE := Marvell Armada $(1)
86 endef
87
88 define Device/armada-370-db
89 $(call Device/marvell-nand,370 DB (DB-88F6710-BP-DDR3))
90 endef
91 TARGET_DEVICES += armada-370-db
92
93 define Device/armada-370-rd
94 $(call Device/marvell-nand,370 RD (RD-88F6710-A1))
95 endef
96 TARGET_DEVICES += armada-370-rd
97
98 define Device/armada-xp-db
99 $(call Device/marvell-nand,XP DB (DB-78460-BP))
100 endef
101 TARGET_DEVICES += armada-xp-db
102
103 define Device/armada-xp-gp
104 $(call Device/marvell-nand,XP GP (DB-MV784MP-GP))
105 endef
106 TARGET_DEVICES += armada-xp-gp
107
108 define Device/armada-388-rd
109 DEVICE_TITLE := Marvell Armada 388 RD (RD-88F6820-AP)
110 IMAGES := firmware.bin
111 IMAGE/firmware.bin := append-kernel | pad-to 256k | append-rootfs | pad-rootfs
112 endef
113 TARGET_DEVICES += armada-388-rd
114
115 define Device/armada-388-clearfog-pro
116 KERNEL_INSTALL := 1
117 KERNEL := kernel-bin
118 DEVICE_TITLE := SolidRun ClearFog Pro
119 DEVICE_PACKAGES := mkf2fs e2fsprogs swconfig kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1
120 IMAGES := sdcard.img.gz
121 IMAGE/sdcard.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
122 DEVICE_DTS := armada-388-clearfog-pro armada-388-clearfog-base
123 SUPPORTED_DEVICES := armada-388-clearfog-pro armada-388-clearfog
124 UBOOT := clearfog-u-boot-spl.kwb
125 endef
126 TARGET_DEVICES += armada-388-clearfog-pro
127
128 define Device/armada-388-clearfog-base
129 KERNEL_INSTALL := 1
130 KERNEL := kernel-bin
131 DEVICE_TITLE := SolidRun ClearFog Base
132 DEVICE_PACKAGES := mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1
133 IMAGES := sdcard.img.gz
134 IMAGE/sdcard.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
135 DEVICE_DTS := armada-388-clearfog-pro armada-388-clearfog-base
136 UBOOT := clearfog-u-boot-spl.kwb
137 endef
138 TARGET_DEVICES += armada-388-clearfog-base
139
140 define Device/globalscale-mirabox
141 $(Device/NAND-512K)
142 DEVICE_DTS := armada-370-mirabox
143 SUPPORTED_DEVICES := mirabox
144 DEVICE_TITLE := Globalscale Mirabox
145 endef
146 TARGET_DEVICES += globalscale-mirabox
147
148 define Device/turris-omnia
149 KERNEL_INSTALL := 1
150 KERNEL := kernel-bin
151 KERNEL_INITRAMFS := kernel-bin
152 DEVICE_TITLE := Turris Omnia
153 DEVICE_PACKAGES := \
154 mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
155 wpad-mini kmod-ath9k kmod-ath10k ath10k-firmware-qca988x
156 IMAGES := $$(IMAGE_PREFIX)-sysupgrade.img.gz omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz
157 IMAGE/$$(IMAGE_PREFIX)-sysupgrade.img.gz := boot-img | sdcard-img | gzip | append-metadata
158 IMAGE/omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz := omnia-medkit-initramfs | gzip
159 IMAGE_NAME = $$(2)
160 DEVICE_DTS := armada-385-turris-omnia
161 UBOOT :=
162 endef
163 TARGET_DEVICES += turris-omnia
164
165 endif