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