mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.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 := swconfig wpad-basic
15   IMAGES += factory.img
16   KERNEL_SIZE := 6144k
17 endef
18
19 define Device/linksys_wrt1900ac
20   $(call Device/linksys,WRT1900AC (Mamba))
21   DEVICE_DTS := armada-xp-linksys-mamba
22   DEVICE_PACKAGES := kmod-ath9k
23   KERNEL_SIZE := 3072k
24   SUPPORTED_DEVICES := armada-xp-linksys-mamba linksys,mamba
25 endef
26 TARGET_DEVICES += linksys_wrt1900ac
27
28 define Device/cznic_turris-omnia
29   KERNEL_INSTALL := 1
30   KERNEL := kernel-bin
31   KERNEL_INITRAMFS := kernel-bin
32   DEVICE_TITLE := Turris Omnia
33   DEVICE_PACKAGES :=  \
34     mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
35     wpad-basic kmod-ath9k partx-utils kmod-i2c-core kmod-i2c-mux \
36     kmod-i2c-mux-pca954x
37   IMAGES := $$(IMAGE_PREFIX)-sysupgrade.img.gz omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz
38   IMAGE/$$(IMAGE_PREFIX)-sysupgrade.img.gz := boot-img | sdcard-img | gzip | append-metadata
39   IMAGE/omnia-medkit-$$(IMAGE_PREFIX)-initramfs.tar.gz := omnia-medkit-initramfs | gzip
40   IMAGE_NAME = $$(2)
41   DEVICE_DTS := armada-385-turris-omnia
42   SUPPORTED_DEVICES += armada-385-turris-omnia
43 endef
44 TARGET_DEVICES += cznic_turris-omnia
45
46 endif