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