target: use SPDX license identifiers on Makefiles
[openwrt/staging/wigyori.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/iom_iconnect-1.1
71 DEVICE_VENDOR := Iomega
72 DEVICE_MODEL := Iconnect
73 DEVICE_DTS := kirkwood-iconnect
74 SUPPORTED_DEVICES += iconnect
75 endef
76 TARGET_DEVICES += iom_iconnect-1.1
77
78 define Device/iom_ix2-200
79 DEVICE_VENDOR := Iomega
80 DEVICE_MODEL := StorCenter ix2-200
81 DEVICE_DTS := kirkwood-iomega_ix2_200
82 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
83 kmod-gpio-button-hotplug kmod-hwmon-lm63
84 PAGESIZE := 512
85 SUBPAGESIZE := 256
86 BLOCKSIZE := 16k
87 KERNEL_SIZE := 3072k
88 KERNEL_IN_UBI :=
89 UBINIZE_OPTS := -E 5
90 IMAGE_SIZE := 31744k
91 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
92 check-size
93 endef
94 TARGET_DEVICES += iom_ix2-200
95
96 define Device/linksys
97 DEVICE_VENDOR := Linksys
98 DEVICE_PACKAGES := kmod-mwl8k wpad-basic-wolfssl kmod-gpio-button-hotplug
99 KERNEL_IN_UBI :=
100 UBINIZE_OPTS := -E 5
101 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
102 endef
103
104 define Device/linksys_e4200-v2
105 $(Device/linksys)
106 $(Device/dsa-migration)
107 DEVICE_MODEL := E4200
108 DEVICE_VARIANT := v2
109 KERNEL_SIZE := 2688k
110 SUPPORTED_DEVICES += linksys,viper linksys-viper
111 endef
112 TARGET_DEVICES += linksys_e4200-v2
113
114 define Device/linksys_ea3500
115 $(Device/linksys)
116 $(Device/dsa-migration)
117 DEVICE_MODEL := EA3500
118 PAGESIZE := 512
119 SUBPAGESIZE := 256
120 BLOCKSIZE := 16k
121 KERNEL_SIZE := 2624k
122 SUPPORTED_DEVICES += linksys,audi linksys-audi
123 endef
124 TARGET_DEVICES += linksys_ea3500
125
126 define Device/linksys_ea4500
127 $(Device/linksys)
128 $(Device/dsa-migration)
129 DEVICE_MODEL := EA4500
130 KERNEL_SIZE := 2688k
131 SUPPORTED_DEVICES += linksys,viper linksys-viper
132 endef
133 TARGET_DEVICES += linksys_ea4500
134
135 define Device/raidsonic_ib-nas62x0
136 DEVICE_VENDOR := RaidSonic
137 DEVICE_MODEL := ICY BOX IB-NAS62x0
138 DEVICE_DTS := kirkwood-ib62x0
139 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
140 SUPPORTED_DEVICES += ib62x0
141 endef
142 TARGET_DEVICES += raidsonic_ib-nas62x0
143
144 define Device/seagate_blackarmor-nas220
145 DEVICE_VENDOR := Seagate
146 DEVICE_MODEL := Blackarmor NAS220
147 DEVICE_PACKAGES := kmod-hwmon-adt7475 kmod-fs-ext4 kmod-ata-marvell-sata \
148 mdadm kmod-gpio-button-hotplug
149 PAGESIZE := 512
150 SUBPAGESIZE := 256
151 BLOCKSIZE := 16k
152 UBINIZE_OPTS := -e 1
153 endef
154 TARGET_DEVICES += seagate_blackarmor-nas220
155
156 define Device/seagate_dockstar
157 DEVICE_VENDOR := Seagate
158 DEVICE_MODEL := FreeAgent Dockstar
159 SUPPORTED_DEVICES += dockstar
160 endef
161 TARGET_DEVICES += seagate_dockstar
162
163 define Device/seagate_goflexnet
164 DEVICE_VENDOR := Seagate
165 DEVICE_MODEL := GoFlexNet
166 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
167 SUPPORTED_DEVICES += goflexnet
168 endef
169 TARGET_DEVICES += seagate_goflexnet
170
171 define Device/seagate_goflexhome
172 DEVICE_VENDOR := Seagate
173 DEVICE_MODEL := GoFlexHome
174 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
175 SUPPORTED_DEVICES += goflexhome
176 endef
177 TARGET_DEVICES += seagate_goflexhome
178
179 define Device/zyxel_nsa310b
180 DEVICE_VENDOR := ZyXEL
181 DEVICE_MODEL := NSA310b
182 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-r8169 kmod-fs-ext4 \
183 kmod-gpio-button-hotplug kmod-hwmon-lm85
184 SUPPORTED_DEVICES += nsa310b
185 endef
186 TARGET_DEVICES += zyxel_nsa310b
187
188 define Device/zyxel_nsa310s
189 DEVICE_VENDOR := ZyXEL
190 DEVICE_MODEL := NSA310S
191 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-gpio-button-hotplug
192 endef
193 TARGET_DEVICES += zyxel_nsa310s
194
195 define Device/zyxel_nsa325
196 DEVICE_VENDOR := ZyXEL
197 DEVICE_MODEL := NSA325
198 DEVICE_VARIANT := v1/v2
199 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
200 kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
201 SUPPORTED_DEVICES += nsa325
202 endef
203 TARGET_DEVICES += zyxel_nsa325
204
205 $(eval $(call BuildImage))