20b368f70924225c185efdf9b6e98eb99ec5f174
[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 := $(1)
28 endef
29
30 define Device/dockstar
31 DEVICE_DTS := kirkwood-dockstar
32 DEVICE_TITLE := Seagate FreeAgent Dockstar
33 SUPPORTED_DEVICES += seagate,dockstar
34 endef
35 TARGET_DEVICES += dockstar
36
37 define Device/goflexnet
38 DEVICE_TITLE := Seagate GoFlexNet
39 DEVICE_DTS := kirkwood-goflexnet
40 SUPPORTED_DEVICES += seagate,goflexnet
41 endef
42 TARGET_DEVICES += goflexnet
43
44 define Device/goflexhome
45 DEVICE_TITLE := Seagate GoFlexHome
46 DEVICE_DTS := kirkwood-goflexhome
47 SUPPORTED_DEVICES += seagate,goflexhome
48 endef
49 TARGET_DEVICES += goflexhome
50
51 define Device/linksys-audi
52 DEVICE_TITLE := Linksys EA3500 (Audi)
53 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
54 DEVICE_DTS := kirkwood-linksys-audi
55 KERNEL_SIZE := 2624k
56 KERNEL_IN_UBI := 0
57 UBINIZE_OPTS := -E 5
58 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
59 SUPPORTED_DEVICES += linksys,audi
60 endef
61 TARGET_DEVICES += linksys-audi
62
63 define Device/linksys-viper
64 DEVICE_TITLE := Linksys E4200v2 / EA4500 (Viper)
65 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
66 DEVICE_DTS := kirkwood-linksys-viper
67 KERNEL_SIZE := 2688k
68 KERNEL_IN_UBI := 0
69 UBINIZE_OPTS := -E 5
70 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
71 SUPPORTED_DEVICES += linksys,viper
72 endef
73 TARGET_DEVICES += linksys-viper
74
75 define Device/iconnect
76 DEVICE_TITLE := Iomega Iconnect
77 DEVICE_DTS := kirkwood-iconnect
78 SUPPORTED_DEVICES += iom,iconnect-1.1
79 endef
80 TARGET_DEVICES += iconnect
81
82 define Device/nsa310b
83 DEVICE_TITLE := ZyXEL NSA310b
84 DEVICE_DTS := kirkwood-nsa310b
85 DEVICE_PACKAGES := kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
86 SUPPORTED_DEVICES += zyxel,nsa310b
87 endef
88 TARGET_DEVICES += nsa310b
89
90 define Device/nsa325
91 DEVICE_TITLE := ZyXEL NSA325 (v1 and v2)
92 DEVICE_DTS := kirkwood-nsa325
93 DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
94 SUPPORTED_DEVICES += zyxel,nsa325
95 endef
96 TARGET_DEVICES += nsa325
97
98 define Device/on100
99 DEVICE_TITLE := Cisco Systems ON100
100 DEVICE_DTS := kirkwood-on100
101 DEVICE_PACKAGES := kmod-i2c-mv64xxx
102 KERNEL_SIZE := 5376k
103 KERNEL_IN_UBI := 0
104 UBINIZE_OPTS := -E 5
105 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
106 SUPPORTED_DEVICES := cisco,on100
107 endef
108 TARGET_DEVICES += on100
109
110 define Device/pogo_e02
111 DEVICE_TITLE := Cloud Engines Pogoplug E02
112 DEVICE_DTS := kirkwood-pogo_e02
113 SUPPORTED_DEVICES += cloudengines,pogoe02
114 endef
115 TARGET_DEVICES += pogo_e02
116
117 define Device/ib62x0
118 DEVICE_TITLE := RaidSonic ICY BOX IB-NAS62x0
119 DEVICE_DTS := kirkwood-ib62x0
120 SUPPORTED_DEVICES += raidsonic,ib-nas62x0
121 endef
122 TARGET_DEVICES += ib62x0
123
124 $(eval $(call BuildImage))