kirkwood: Fix FS#505 - Can't install LEDE on Linksys EA3500
[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/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_TITLE := Cisco Systems ON100
32 DEVICE_DTS := kirkwood-on100
33 DEVICE_PACKAGES := kmod-i2c-mv64xxx
34 KERNEL_SIZE := 5376k
35 KERNEL_IN_UBI :=
36 UBINIZE_OPTS := -E 5
37 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
38 BOARD_NAME := on100
39 endef
40 TARGET_DEVICES += cisco_on100
41
42 define Device/cloudengines_pogoe02
43 DEVICE_TITLE := Cloud Engines Pogoplug E02
44 DEVICE_DTS := kirkwood-pogo_e02
45 BOARD_NAME := pogo_e02
46 SUPPORTED_DEVICES += pogo_e02
47 endef
48 TARGET_DEVICES += cloudengines_pogoe02
49
50 define Device/cloudengines_pogoplugv4
51 DEVICE_TITLE := Cloud Engines Pogoplug V4
52 DEVICE_DTS := kirkwood-pogoplug-series-4
53 DEVICE_PACKAGES := kmod-usb3
54 endef
55 TARGET_DEVICES += cloudengines_pogoplugv4
56
57 define Device/iom_iconnect-1.1
58 DEVICE_TITLE := Iomega Iconnect
59 DEVICE_DTS := kirkwood-iconnect
60 BOARD_NAME := iconnect
61 SUPPORTED_DEVICES += iconnect
62 endef
63 TARGET_DEVICES += iom_iconnect-1.1
64
65 define Device/iom_ix2_200
66 DEVICE_TITLE := Iomega StorCenter ix2-200
67 DEVICE_DTS := kirkwood-iomega_ix2_200
68 DEVICE_PACKAGES += kmod-gpio-button-hotplug kmod-i2c-mv64xxx kmod-hwmon-lm63
69 DEVICE_TYPE:=nas
70 PAGESIZE := 512
71 SUBPAGESIZE := 256
72 BLOCKSIZE := 16KiB
73 KERNEL_SIZE := 3072k
74 KERNEL_IN_UBI :=
75 UBINIZE_OPTS := -E 5
76 IMAGE_SIZE := 32505856
77 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
78 endef
79 TARGET_DEVICES += iom_ix2_200
80
81 define Device/linksys_audi
82 DEVICE_TITLE := Linksys EA3500 (Audi)
83 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
84 DEVICE_DTS := kirkwood-linksys-audi
85 PAGESIZE := 512
86 SUBPAGESIZE := 256
87 BLOCKSIZE := 16KiB
88 KERNEL_SIZE := 2624k
89 KERNEL_IN_UBI :=
90 UBINIZE_OPTS := -E 5
91 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
92 BOARD_NAME := linksys-audi
93 SUPPORTED_DEVICES += linksys-audi
94 endef
95 TARGET_DEVICES += linksys_audi
96
97 define Device/linksys_viper
98 DEVICE_TITLE := Linksys E4200v2 / EA4500 (Viper)
99 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
100 DEVICE_DTS := kirkwood-linksys-viper
101 KERNEL_SIZE := 2688k
102 KERNEL_IN_UBI :=
103 UBINIZE_OPTS := -E 5
104 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
105 BOARD_NAME := linksys-viper
106 SUPPORTED_DEVICES += linksys-viper
107 endef
108 TARGET_DEVICES += linksys_viper
109
110 define Device/raidsonic_ib-nas62x0
111 DEVICE_TITLE := RaidSonic ICY BOX IB-NAS62x0
112 DEVICE_DTS := kirkwood-ib62x0
113 BOARD_NAME := ib62x0
114 SUPPORTED_DEVICES += ib62x0
115 endef
116 TARGET_DEVICES += raidsonic_ib-nas62x0
117
118 define Device/seagate_dockstar
119 DEVICE_DTS := kirkwood-dockstar
120 DEVICE_TITLE := Seagate FreeAgent Dockstar
121 BOARD_NAME := dockstar
122 SUPPORTED_DEVICES += dockstar
123 endef
124 TARGET_DEVICES += seagate_dockstar
125
126 define Device/seagate_goflexnet
127 DEVICE_TITLE := Seagate GoFlexNet
128 DEVICE_DTS := kirkwood-goflexnet
129 BOARD_NAME := goflexnet
130 SUPPORTED_DEVICES += goflexnet
131 endef
132 TARGET_DEVICES += seagate_goflexnet
133
134 define Device/seagate_goflexhome
135 DEVICE_TITLE := Seagate GoFlexHome
136 DEVICE_DTS := kirkwood-goflexhome
137 BOARD_NAME := goflexhome
138 SUPPORTED_DEVICES += goflexhome
139 endef
140 TARGET_DEVICES += seagate_goflexhome
141
142 define Device/zyxel_nsa310b
143 DEVICE_TITLE := ZyXEL NSA310b
144 DEVICE_DTS := kirkwood-nsa310b
145 DEVICE_PACKAGES := kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
146 BOARD_NAME := nsa310b
147 endef
148 TARGET_DEVICES += zyxel_nsa310b
149
150 define Device/zyxel_nsa325
151 DEVICE_TITLE := ZyXEL NSA325 (v1 and v2)
152 DEVICE_DTS := kirkwood-nsa325
153 DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
154 BOARD_NAME := nsa325
155 endef
156 TARGET_DEVICES += zyxel_nsa325
157
158 $(eval $(call BuildImage))