kirkwood: split up DEVICE_TITLE
[openwrt/staging/stintel.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/Default
14 PROFILES := Default
15 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
16 KERNEL := kernel-bin | append-dtb | uImage none
17 KERNEL_NAME := zImage
18 KERNEL_SUFFIX := -uImage
19 KERNEL_IN_UBI := 1
20
21 PAGESIZE := 2048
22 SUBPAGESIZE := 512
23 BLOCKSIZE := 128k
24 IMAGES := sysupgrade.bin factory.bin
25 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
26 IMAGE/factory.bin := append-ubi
27 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
28 endef
29
30 define Device/cisco_on100
31 DEVICE_VENDOR := Cisco Systems
32 DEVICE_MODEL := ON100
33 DEVICE_DTS := kirkwood-on100
34 DEVICE_PACKAGES := kmod-i2c-mv64xxx
35 KERNEL_SIZE := 5376k
36 KERNEL_IN_UBI :=
37 UBINIZE_OPTS := -E 5
38 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
39 BOARD_NAME := on100
40 endef
41 TARGET_DEVICES += cisco_on100
42
43 define Device/cloudengines_pogoe02
44 DEVICE_VENDOR := Cloud Engines
45 DEVICE_MODEL := Pogoplug E02
46 DEVICE_DTS := kirkwood-pogo_e02
47 BOARD_NAME := pogo_e02
48 SUPPORTED_DEVICES += pogo_e02
49 endef
50 TARGET_DEVICES += cloudengines_pogoe02
51
52 define Device/cloudengines_pogoplugv4
53 DEVICE_VENDOR := Cloud Engines
54 DEVICE_MODEL := Pogoplug V4
55 DEVICE_DTS := kirkwood-pogoplug-series-4
56 DEVICE_PACKAGES := kmod-usb3
57 endef
58 TARGET_DEVICES += cloudengines_pogoplugv4
59
60 define Device/iom_iconnect-1.1
61 DEVICE_VENDOR := Iomega
62 DEVICE_MODEL := Iconnect
63 DEVICE_DTS := kirkwood-iconnect
64 BOARD_NAME := iconnect
65 SUPPORTED_DEVICES += iconnect
66 endef
67 TARGET_DEVICES += iom_iconnect-1.1
68
69 define Device/iom_ix2_200
70 DEVICE_VENDOR := Iomega
71 DEVICE_MODEL := StorCenter ix2-200
72 DEVICE_DTS := kirkwood-iomega_ix2_200
73 DEVICE_PACKAGES += kmod-gpio-button-hotplug kmod-i2c-mv64xxx kmod-hwmon-lm63
74 DEVICE_TYPE:=nas
75 PAGESIZE := 512
76 SUBPAGESIZE := 256
77 BLOCKSIZE := 16KiB
78 KERNEL_SIZE := 3072k
79 KERNEL_IN_UBI :=
80 UBINIZE_OPTS := -E 5
81 IMAGE_SIZE := 32505856
82 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
83 endef
84 TARGET_DEVICES += iom_ix2_200
85
86 define Device/linksys_audi
87 DEVICE_VENDOR := Linksys
88 DEVICE_MODEL := EA3500 (Audi)
89 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
90 DEVICE_DTS := kirkwood-linksys-audi
91 KERNEL_SIZE := 2624k
92 KERNEL_IN_UBI :=
93 UBINIZE_OPTS := -E 5
94 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
95 BOARD_NAME := linksys-audi
96 SUPPORTED_DEVICES += linksys-audi
97 endef
98 TARGET_DEVICES += linksys_audi
99
100 define Device/linksys_viper
101 DEVICE_VENDOR := Linksys
102 DEVICE_MODEL := E4200v2 / EA4500 (Viper)
103 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
104 DEVICE_DTS := kirkwood-linksys-viper
105 KERNEL_SIZE := 2688k
106 KERNEL_IN_UBI :=
107 UBINIZE_OPTS := -E 5
108 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
109 BOARD_NAME := linksys-viper
110 SUPPORTED_DEVICES += linksys-viper
111 endef
112 TARGET_DEVICES += linksys_viper
113
114 define Device/raidsonic_ib-nas62x0
115 DEVICE_VENDOR := RaidSonic
116 DEVICE_MODEL := ICY BOX IB-NAS62x0
117 DEVICE_DTS := kirkwood-ib62x0
118 BOARD_NAME := ib62x0
119 SUPPORTED_DEVICES += ib62x0
120 endef
121 TARGET_DEVICES += raidsonic_ib-nas62x0
122
123 define Device/seagate_dockstar
124 DEVICE_VENDOR := Seagate
125 DEVICE_MODEL := FreeAgent Dockstar
126 DEVICE_DTS := kirkwood-dockstar
127 BOARD_NAME := dockstar
128 SUPPORTED_DEVICES += dockstar
129 endef
130 TARGET_DEVICES += seagate_dockstar
131
132 define Device/seagate_goflexnet
133 DEVICE_VENDOR := Seagate
134 DEVICE_MODEL := GoFlexNet
135 DEVICE_DTS := kirkwood-goflexnet
136 BOARD_NAME := goflexnet
137 SUPPORTED_DEVICES += goflexnet
138 endef
139 TARGET_DEVICES += seagate_goflexnet
140
141 define Device/seagate_goflexhome
142 DEVICE_VENDOR := Seagate
143 DEVICE_MODEL := GoFlexHome
144 DEVICE_DTS := kirkwood-goflexhome
145 BOARD_NAME := goflexhome
146 SUPPORTED_DEVICES += goflexhome
147 endef
148 TARGET_DEVICES += seagate_goflexhome
149
150 define Device/zyxel_nsa310b
151 DEVICE_VENDOR := ZyXEL
152 DEVICE_MODEL := NSA310b
153 DEVICE_DTS := kirkwood-nsa310b
154 DEVICE_PACKAGES := kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
155 BOARD_NAME := nsa310b
156 endef
157 TARGET_DEVICES += zyxel_nsa310b
158
159 define Device/zyxel_nsa325
160 DEVICE_VENDOR := ZyXEL
161 DEVICE_MODEL := NSA325
162 DEVICE_VARIANT := v1/v2
163 DEVICE_DTS := kirkwood-nsa325
164 DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
165 BOARD_NAME := nsa325
166 endef
167 TARGET_DEVICES += zyxel_nsa325
168
169 $(eval $(call BuildImage))