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