kirkwood: Add support for Sheevaplug
[openwrt/openwrt.git] / target / linux / kirkwood / image / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2009-2013 OpenWrt.org
4
5 include $(TOPDIR)/rules.mk
6 include $(INCLUDE_DIR)/image.mk
7
8 KERNEL_LOADADDR:=0x8000
9
10 define Device/dsa-migration
11 DEVICE_COMPAT_VERSION := 1.1
12 DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
13 endef
14
15 define Device/Default
16 PROFILES := Default
17 DEVICE_DTS = kirkwood-$(lastword $(subst _, ,$(1)))
18 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
19 KERNEL := kernel-bin | append-dtb | uImage none
20 KERNEL_NAME := zImage
21 KERNEL_SUFFIX := -uImage
22 KERNEL_IN_UBI := 1
23
24 PAGESIZE := 2048
25 SUBPAGESIZE := 512
26 BLOCKSIZE := 128k
27 IMAGES := sysupgrade.bin factory.bin
28 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
29 IMAGE/factory.bin := append-ubi
30 endef
31
32 define Device/checkpoint_l-50
33 DEVICE_VENDOR := Check Point
34 DEVICE_MODEL := L-50
35 DEVICE_PACKAGES := kmod-ath9k kmod-gpio-button-hotplug kmod-mvsdio \
36 kmod-rtc-s35390a kmod-usb-ledtrig-usbport wpad-basic-wolfssl
37 IMAGES := sysupgrade.bin
38 endef
39 TARGET_DEVICES += checkpoint_l-50
40
41 define Device/cisco_on100
42 DEVICE_VENDOR := Cisco Systems
43 DEVICE_MODEL := ON100
44 KERNEL_SIZE := 5376k
45 KERNEL_IN_UBI :=
46 UBINIZE_OPTS := -E 5
47 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
48 DEVICE_PACKAGES := kmod-mvsdio
49 SUPPORTED_DEVICES += on100
50 endef
51 TARGET_DEVICES += cisco_on100
52
53 define Device/cloudengines_pogoe02
54 DEVICE_VENDOR := Cloud Engines
55 DEVICE_MODEL := Pogoplug E02
56 DEVICE_DTS := kirkwood-pogo_e02
57 SUPPORTED_DEVICES += pogo_e02
58 endef
59 TARGET_DEVICES += cloudengines_pogoe02
60
61 define Device/cloudengines_pogoplugv4
62 DEVICE_VENDOR := Cloud Engines
63 DEVICE_MODEL := Pogoplug V4
64 DEVICE_DTS := kirkwood-pogoplug-series-4
65 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-mvsdio kmod-usb3 \
66 kmod-gpio-button-hotplug
67 endef
68 TARGET_DEVICES += cloudengines_pogoplugv4
69
70 define Device/globalscale_sheevaplug
71 DEVICE_VENDOR := Globalscale
72 DEVICE_MODEL := Sheevaplug
73 DEVICE_PACKAGES := kmod-mvsdio
74 endef
75 TARGET_DEVICES += globalscale_sheevaplug
76
77 define Device/iom_iconnect-1.1
78 DEVICE_VENDOR := Iomega
79 DEVICE_MODEL := Iconnect
80 DEVICE_DTS := kirkwood-iconnect
81 SUPPORTED_DEVICES += iconnect
82 endef
83 TARGET_DEVICES += iom_iconnect-1.1
84
85 define Device/iom_ix2-200
86 DEVICE_VENDOR := Iomega
87 DEVICE_MODEL := StorCenter ix2-200
88 DEVICE_DTS := kirkwood-iomega_ix2_200
89 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
90 kmod-gpio-button-hotplug kmod-hwmon-lm63
91 PAGESIZE := 512
92 SUBPAGESIZE := 256
93 BLOCKSIZE := 16k
94 KERNEL_SIZE := 3072k
95 KERNEL_IN_UBI :=
96 UBINIZE_OPTS := -E 5
97 IMAGE_SIZE := 31744k
98 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
99 check-size
100 endef
101 TARGET_DEVICES += iom_ix2-200
102
103 define Device/linksys
104 DEVICE_VENDOR := Linksys
105 DEVICE_PACKAGES := kmod-mwl8k wpad-basic-wolfssl kmod-gpio-button-hotplug
106 KERNEL_IN_UBI :=
107 UBINIZE_OPTS := -E 5
108 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
109 endef
110
111 define Device/linksys_e4200-v2
112 $(Device/linksys)
113 $(Device/dsa-migration)
114 DEVICE_MODEL := E4200
115 DEVICE_VARIANT := v2
116 KERNEL_SIZE := 2688k
117 SUPPORTED_DEVICES += linksys,viper linksys-viper
118 endef
119 TARGET_DEVICES += linksys_e4200-v2
120
121 define Device/linksys_ea3500
122 $(Device/linksys)
123 $(Device/dsa-migration)
124 DEVICE_MODEL := EA3500
125 PAGESIZE := 512
126 SUBPAGESIZE := 256
127 BLOCKSIZE := 16k
128 KERNEL_SIZE := 2624k
129 SUPPORTED_DEVICES += linksys,audi linksys-audi
130 endef
131 TARGET_DEVICES += linksys_ea3500
132
133 define Device/linksys_ea4500
134 $(Device/linksys)
135 $(Device/dsa-migration)
136 DEVICE_MODEL := EA4500
137 KERNEL_SIZE := 2688k
138 SUPPORTED_DEVICES += linksys,viper linksys-viper
139 endef
140 TARGET_DEVICES += linksys_ea4500
141
142 define Device/raidsonic_ib-nas62x0
143 DEVICE_VENDOR := RaidSonic
144 DEVICE_MODEL := ICY BOX IB-NAS62x0
145 DEVICE_DTS := kirkwood-ib62x0
146 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
147 SUPPORTED_DEVICES += ib62x0
148 endef
149 TARGET_DEVICES += raidsonic_ib-nas62x0
150
151 define Device/seagate_blackarmor-nas220
152 DEVICE_VENDOR := Seagate
153 DEVICE_MODEL := Blackarmor NAS220
154 DEVICE_PACKAGES := kmod-hwmon-adt7475 kmod-fs-ext4 kmod-ata-marvell-sata \
155 mdadm kmod-gpio-button-hotplug
156 PAGESIZE := 512
157 SUBPAGESIZE := 256
158 BLOCKSIZE := 16k
159 UBINIZE_OPTS := -e 1
160 endef
161 TARGET_DEVICES += seagate_blackarmor-nas220
162
163 define Device/seagate_dockstar
164 DEVICE_VENDOR := Seagate
165 DEVICE_MODEL := FreeAgent Dockstar
166 SUPPORTED_DEVICES += dockstar
167 endef
168 TARGET_DEVICES += seagate_dockstar
169
170 define Device/seagate_goflexnet
171 DEVICE_VENDOR := Seagate
172 DEVICE_MODEL := GoFlexNet
173 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
174 SUPPORTED_DEVICES += goflexnet
175 endef
176 TARGET_DEVICES += seagate_goflexnet
177
178 define Device/seagate_goflexhome
179 DEVICE_VENDOR := Seagate
180 DEVICE_MODEL := GoFlexHome
181 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
182 SUPPORTED_DEVICES += goflexhome
183 endef
184 TARGET_DEVICES += seagate_goflexhome
185
186 define Device/zyxel_nsa310b
187 DEVICE_VENDOR := ZyXEL
188 DEVICE_MODEL := NSA310b
189 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-r8169 kmod-fs-ext4 \
190 kmod-gpio-button-hotplug kmod-hwmon-lm85
191 SUPPORTED_DEVICES += nsa310b
192 endef
193 TARGET_DEVICES += zyxel_nsa310b
194
195 define Device/zyxel_nsa310s
196 DEVICE_VENDOR := ZyXEL
197 DEVICE_MODEL := NSA310S
198 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-gpio-button-hotplug
199 endef
200 TARGET_DEVICES += zyxel_nsa310s
201
202 define Device/zyxel_nsa325
203 DEVICE_VENDOR := ZyXEL
204 DEVICE_MODEL := NSA325
205 DEVICE_VARIANT := v1/v2
206 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
207 kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
208 SUPPORTED_DEVICES += nsa325
209 endef
210 TARGET_DEVICES += zyxel_nsa325
211
212 $(eval $(call BuildImage))