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