2 # Copyright (C) 2009-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/image.mk
11 KERNEL_LOADADDR
:=0x8000
15 KERNEL_DEPENDS
= $$(wildcard $(DTS_DIR
)/$$(DEVICE_DTS
).dts
)
16 KERNEL
:= kernel-bin | append-dtb | uImage none
18 KERNEL_SUFFIX
:= -uImage
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))
30 define Device
/cisco_on100
31 DEVICE_TITLE
:= Cisco Systems ON100
32 DEVICE_DTS
:= kirkwood-on100
33 DEVICE_PACKAGES
:= kmod-i2c-mv64xxx
37 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
40 TARGET_DEVICES
+= cisco_on100
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
48 TARGET_DEVICES
+= cloudengines_pogoe02
50 define Device
/cloudengines_pogoplugv4
51 DEVICE_TITLE
:= Cloud Engines Pogoplug V4
52 DEVICE_DTS
:= kirkwood-pogoplug-series-4
53 DEVICE_PACKAGES
:= kmod-usb3
55 TARGET_DEVICES
+= cloudengines_pogoplugv4
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
63 TARGET_DEVICES
+= iom_iconnect-1.1
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
76 IMAGE_SIZE
:= 32505856
77 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | check-size
$$$$(IMAGE_SIZE
)
79 TARGET_DEVICES
+= iom_ix2_200
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
88 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
89 BOARD_NAME
:= linksys-audi
90 SUPPORTED_DEVICES
+= linksys-audi
92 TARGET_DEVICES
+= linksys_audi
94 define Device
/linksys_viper
95 DEVICE_TITLE
:= Linksys E4200v2
/ EA4500
(Viper
)
96 DEVICE_PACKAGES
:= kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
97 DEVICE_DTS
:= kirkwood-linksys-viper
101 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
102 BOARD_NAME
:= linksys-viper
103 SUPPORTED_DEVICES
+= linksys-viper
105 TARGET_DEVICES
+= linksys_viper
107 define Device
/raidsonic_ib-nas62x0
108 DEVICE_TITLE
:= RaidSonic ICY BOX IB-NAS62x0
109 DEVICE_DTS
:= kirkwood-ib62x0
111 SUPPORTED_DEVICES
+= ib62x0
113 TARGET_DEVICES
+= raidsonic_ib-nas62x0
115 define Device
/seagate_dockstar
116 DEVICE_DTS
:= kirkwood-dockstar
117 DEVICE_TITLE
:= Seagate FreeAgent Dockstar
118 BOARD_NAME
:= dockstar
119 SUPPORTED_DEVICES
+= dockstar
121 TARGET_DEVICES
+= seagate_dockstar
123 define Device
/seagate_goflexnet
124 DEVICE_TITLE
:= Seagate GoFlexNet
125 DEVICE_DTS
:= kirkwood-goflexnet
126 BOARD_NAME
:= goflexnet
127 SUPPORTED_DEVICES
+= goflexnet
129 TARGET_DEVICES
+= seagate_goflexnet
131 define Device
/seagate_goflexhome
132 DEVICE_TITLE
:= Seagate GoFlexHome
133 DEVICE_DTS
:= kirkwood-goflexhome
134 BOARD_NAME
:= goflexhome
135 SUPPORTED_DEVICES
+= goflexhome
137 TARGET_DEVICES
+= seagate_goflexhome
139 define Device
/zyxel_nsa310b
140 DEVICE_TITLE
:= ZyXEL NSA310b
141 DEVICE_DTS
:= kirkwood-nsa310b
142 DEVICE_PACKAGES
:= kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
143 BOARD_NAME
:= nsa310b
145 TARGET_DEVICES
+= zyxel_nsa310b
147 define Device
/zyxel_nsa325
148 DEVICE_TITLE
:= ZyXEL NSA325
(v1 and v2
)
149 DEVICE_DTS
:= kirkwood-nsa325
150 DEVICE_PACKAGES
:= kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
153 TARGET_DEVICES
+= zyxel_nsa325
155 $(eval
$(call BuildImage
))