6554fc2669499a659a7ddf5637d081f8eaf9c290
[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 = $$(if $$(BOARD_NAME),kirkwood-$$(BOARD_NAME),)
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)) $$(BOARD_NAME)
34 endef
35
36 define Device/checkpoint_l-50
37 DEVICE_VENDOR := Check Point
38 DEVICE_MODEL := L-50
39 DEVICE_DTS := kirkwood-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 BOARD_NAME := on100
54 DEVICE_PACKAGES := kmod-mvsdio
55 endef
56 TARGET_DEVICES += cisco_on100
57
58 define Device/cloudengines_pogoe02
59 DEVICE_VENDOR := Cloud Engines
60 DEVICE_MODEL := Pogoplug E02
61 BOARD_NAME := 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 BOARD_NAME := iconnect
78 endef
79 TARGET_DEVICES += iom_iconnect-1.1
80
81 define Device/iom_ix2-200
82 DEVICE_VENDOR := Iomega
83 DEVICE_MODEL := StorCenter ix2-200
84 DEVICE_DTS := kirkwood-iomega_ix2_200
85 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
86 kmod-gpio-button-hotplug kmod-hwmon-lm63
87 PAGESIZE := 512
88 SUBPAGESIZE := 256
89 BLOCKSIZE := 16k
90 KERNEL_SIZE := 3072k
91 KERNEL_IN_UBI :=
92 UBINIZE_OPTS := -E 5
93 IMAGE_SIZE := 31744k
94 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
95 check-size
96 endef
97 TARGET_DEVICES += iom_ix2-200
98
99 define Device/linksys_audi
100 $(Device/dsa-migration)
101 DEVICE_VENDOR := Linksys
102 DEVICE_MODEL := EA3500 (Audi)
103 DEVICE_PACKAGES := kmod-mwl8k wpad-basic kmod-gpio-button-hotplug
104 PAGESIZE := 512
105 SUBPAGESIZE := 256
106 BLOCKSIZE := 16k
107 KERNEL_SIZE := 2624k
108 KERNEL_IN_UBI :=
109 UBINIZE_OPTS := -E 5
110 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
111 BOARD_NAME := linksys-audi
112 endef
113 TARGET_DEVICES += linksys_audi
114
115 define Device/linksys_viper
116 $(Device/dsa-migration)
117 DEVICE_VENDOR := Linksys
118 DEVICE_MODEL := E4200v2 / EA4500 (Viper)
119 DEVICE_PACKAGES := kmod-mwl8k wpad-basic kmod-gpio-button-hotplug
120 KERNEL_SIZE := 2688k
121 KERNEL_IN_UBI :=
122 UBINIZE_OPTS := -E 5
123 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
124 BOARD_NAME := linksys-viper
125 endef
126 TARGET_DEVICES += linksys_viper
127
128 define Device/raidsonic_ib-nas62x0
129 DEVICE_VENDOR := RaidSonic
130 DEVICE_MODEL := ICY BOX IB-NAS62x0
131 BOARD_NAME := ib62x0
132 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
133 endef
134 TARGET_DEVICES += raidsonic_ib-nas62x0
135
136 define Device/seagate_dockstar
137 DEVICE_VENDOR := Seagate
138 DEVICE_MODEL := FreeAgent Dockstar
139 BOARD_NAME := dockstar
140 endef
141 TARGET_DEVICES += seagate_dockstar
142
143 define Device/seagate_goflexnet
144 DEVICE_VENDOR := Seagate
145 DEVICE_MODEL := GoFlexNet
146 BOARD_NAME := goflexnet
147 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
148 endef
149 TARGET_DEVICES += seagate_goflexnet
150
151 define Device/seagate_goflexhome
152 DEVICE_VENDOR := Seagate
153 DEVICE_MODEL := GoFlexHome
154 BOARD_NAME := goflexhome
155 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
156 endef
157 TARGET_DEVICES += seagate_goflexhome
158
159 define Device/zyxel_nsa310b
160 DEVICE_VENDOR := ZyXEL
161 DEVICE_MODEL := NSA310b
162 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-r8169 kmod-fs-ext4 \
163 kmod-gpio-button-hotplug kmod-hwmon-lm85
164 BOARD_NAME := nsa310b
165 endef
166 TARGET_DEVICES += zyxel_nsa310b
167
168 define Device/zyxel_nsa310s
169 DEVICE_VENDOR := ZyXEL
170 DEVICE_MODEL := NSA310S
171 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-gpio-button-hotplug
172 DEVICE_DTS := kirkwood-nsa310s
173 endef
174 TARGET_DEVICES += zyxel_nsa310s
175
176 define Device/zyxel_nsa325
177 DEVICE_VENDOR := ZyXEL
178 DEVICE_MODEL := NSA325
179 DEVICE_VARIANT := v1/v2
180 DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
181 kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
182 BOARD_NAME := nsa325
183 endef
184 TARGET_DEVICES += zyxel_nsa325
185
186 $(eval $(call BuildImage))