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