kirkwood: add ZyXEL NSA325 device
[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 NAND_BLOCKSIZE := 2048-128k
9
10 include $(TOPDIR)/rules.mk
11 include $(INCLUDE_DIR)/image.mk
12
13 KERNEL_LOADADDR:=0x8000
14 TARGET_DEVICES = linksys-audi linksys-viper dockstar goflexnet goflexhome iconnect pogo_e02 ib62x0 nsa310b nsa325
15
16 UBI_OPTS := -m 2048 -p 128KiB -s 512
17 UBIFS_OPTS := -m 2048 -e 126KiB -c 4096
18
19 define Device/Default
20 PROFILES := Default
21 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
22 KERNEL := kernel-bin | append-dtb | uImage none
23 KERNEL_NAME := zImage
24 KERNEL_SUFFIX := -uImage
25 KERNEL_INSTALL := 1
26
27 PAGESIZE := 2048
28 SUBPAGESIZE := 512
29 BLOCKSIZE := 128k
30 IMAGES := sysupgrade.tar
31 IMAGE/sysupgrade.tar := sysupgrade-tar
32 endef
33
34 define Device/dockstar
35 DEVICE_DTS := kirkwood-dockstar
36 FILESYSTEMS := squashfs
37 DEVICE_TITLE := Seagate FreeAgent Dockstar
38 IMAGES += factory.bin
39 IMAGE/factory.bin := append-ubi
40 KERNEL_IN_UBI := 1
41 endef
42
43 define Device/goflexnet
44 $(Device/dockstar)
45 DEVICE_TITLE := Seagate GoFlexNet
46 DEVICE_DTS := kirkwood-goflexnet
47 endef
48
49 define Device/goflexhome
50 $(Device/dockstar)
51 DEVICE_TITLE := Seagate GoFlexHome
52 DEVICE_DTS := kirkwood-goflexhome
53 endef
54
55 define Device/linksys-audi
56 DEVICE_TITLE := Linksys EA3500 (Audi)
57 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
58 DEVICE_DTS := kirkwood-linksys-audi
59 KERNEL_SIZE := 2624k
60 FILESYSTEMS := squashfs
61 IMAGES += factory.bin
62 UBINIZE_OPTS := -E 5
63 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
64 endef
65
66 define Device/linksys-viper
67 DEVICE_TITLE := Linksys E4200v2 / EA4500 (Viper)
68 DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
69 DEVICE_DTS := kirkwood-linksys-viper
70 KERNEL_SIZE := 2688k
71 FILESYSTEMS := squashfs
72 IMAGES += factory.bin
73 UBINIZE_OPTS := -E 5
74 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
75 endef
76
77 define Device/iconnect
78 $(Device/dockstar)
79 DEVICE_TITLE := Iomega Iconnect
80 DEVICE_DTS := kirkwood-iconnect
81 endef
82
83 define Device/nsa310b
84 $(Device/dockstar)
85 DEVICE_TITLE := ZyXEL NSA310b
86 DEVICE_DTS := kirkwood-nsa310b
87 DEVICE_PACKAGES := kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
88 endef
89
90 define Device/nsa325
91 $(Device/dockstar)
92 DEVICE_TITLE := ZyXEL NSA325 (v1 and v2)
93 DEVICE_DTS := kirkwood-nsa325
94 DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
95 endef
96
97 define Device/pogo_e02
98 $(Device/dockstar)
99 DEVICE_TITLE := Cloud Engines Pogoplug E02
100 DEVICE_DTS := kirkwood-pogo_e02
101 endef
102
103 define Device/ib62x0
104 $(Device/dockstar)
105 DEVICE_TITLE := RaidSonic ICY BOX IB-NAS62x0
106 DEVICE_DTS := kirkwood-ib62x0
107 endef
108
109 $(eval $(call BuildImage))