kirkwood: add pogoplug v4
[openwrt/openwrt.git] / target / linux / kirkwood / image / Makefile
1 #
2 # Copyright (C) 2009-2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/image.mk
10
11 KERNEL_LOADADDR:=0x8000
12
13 define Device/Default
14 PROFILES := Default
15 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
16 KERNEL := kernel-bin | append-dtb | uImage none
17 KERNEL_NAME := zImage
18 KERNEL_SUFFIX := -uImage
19 KERNEL_IN_UBI := 1
20
21 PAGESIZE := 2048
22 SUBPAGESIZE := 512
23 BLOCKSIZE := 128k
24 IMAGES := sysupgrade.bin factory.bin
25 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
26 IMAGE/factory.bin := append-ubi
27 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
28 endef
29
30 define Device/seagate_dockstar
31 DEVICE_DTS := kirkwood-dockstar
32 DEVICE_TITLE := Seagate FreeAgent Dockstar
33 BOARD_NAME := dockstar
34 SUPPORTED_DEVICES += dockstar
35 endef
36 TARGET_DEVICES += seagate_dockstar
37
38 define Device/seagate_goflexnet
39 DEVICE_TITLE := Seagate GoFlexNet
40 DEVICE_DTS := kirkwood-goflexnet
41 BOARD_NAME := goflexnet
42 SUPPORTED_DEVICES += goflexnet
43 endef
44 TARGET_DEVICES += seagate_goflexnet
45
46 define Device/seagate_goflexhome
47 DEVICE_TITLE := Seagate GoFlexHome
48 DEVICE_DTS := kirkwood-goflexhome
49 BOARD_NAME := goflexhome
50 SUPPORTED_DEVICES += goflexhome
51 endef
52 TARGET_DEVICES += seagate_goflexhome
53
54 define Device/linksys_audi
55 DEVICE_TITLE := Linksys EA3500 (Audi)
56 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
57 DEVICE_DTS := kirkwood-linksys-audi
58 KERNEL_SIZE := 2624k
59 KERNEL_IN_UBI := 0
60 UBINIZE_OPTS := -E 5
61 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
62 BOARD_NAME := linksys-audi
63 SUPPORTED_DEVICES += linksys-audi
64 endef
65 TARGET_DEVICES += linksys_audi
66
67 define Device/linksys_viper
68 DEVICE_TITLE := Linksys E4200v2 / EA4500 (Viper)
69 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
70 DEVICE_DTS := kirkwood-linksys-viper
71 KERNEL_SIZE := 2688k
72 KERNEL_IN_UBI := 0
73 UBINIZE_OPTS := -E 5
74 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
75 BOARD_NAME := linksys-viper
76 SUPPORTED_DEVICES += linksys-viper
77 endef
78 TARGET_DEVICES += linksys_viper
79
80 define Device/iom_iconnect-1.1
81 DEVICE_TITLE := Iomega Iconnect
82 DEVICE_DTS := kirkwood-iconnect
83 BOARD_NAME := iconnect
84 SUPPORTED_DEVICES += iconnect
85 endef
86 TARGET_DEVICES += iom_iconnect-1.1
87
88 define Device/zyxel_nsa310b
89 DEVICE_TITLE := ZyXEL NSA310b
90 DEVICE_DTS := kirkwood-nsa310b
91 DEVICE_PACKAGES := kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
92 BOARD_NAME := nsa310b
93 endef
94 TARGET_DEVICES += zyxel_nsa310b
95
96 define Device/zyxel_nsa325
97 DEVICE_TITLE := ZyXEL NSA325 (v1 and v2)
98 DEVICE_DTS := kirkwood-nsa325
99 DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
100 BOARD_NAME := nsa325
101 endef
102 TARGET_DEVICES += zyxel_nsa325
103
104 define Device/cisco_on100
105 DEVICE_TITLE := Cisco Systems ON100
106 DEVICE_DTS := kirkwood-on100
107 DEVICE_PACKAGES := kmod-i2c-mv64xxx
108 KERNEL_SIZE := 5376k
109 KERNEL_IN_UBI := 0
110 UBINIZE_OPTS := -E 5
111 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
112 BOARD_NAME := on100
113 endef
114 TARGET_DEVICES += cisco_on100
115
116 define Device/cloudengines_pogoe02
117 DEVICE_TITLE := Cloud Engines Pogoplug E02
118 DEVICE_DTS := kirkwood-pogo_e02
119 BOARD_NAME := pogo_e02
120 SUPPORTED_DEVICES += pogo_e02
121 endef
122 TARGET_DEVICES += cloudengines_pogoe02
123
124 define Device/cloudengines_pogoplugv4
125 DEVICE_TITLE := Cloud Engines Pogoplug V4
126 DEVICE_DTS := kirkwood-pogoplug-series-4
127 DEVICE_PACKAGES := kmod-usb3
128 endef
129 TARGET_DEVICES += cloudengines_pogoplugv4
130
131 define Device/raidsonic_ib-nas62x0
132 DEVICE_TITLE := RaidSonic ICY BOX IB-NAS62x0
133 DEVICE_DTS := kirkwood-ib62x0
134 BOARD_NAME := ib62x0
135 SUPPORTED_DEVICES += ib62x0
136 endef
137 TARGET_DEVICES += raidsonic_ib-nas62x0
138
139 $(eval $(call BuildImage))