0335f0795cac528883d679468c14781371ffadb9
[oweals/openwrt.git] / target / linux / ramips / image / rt3883.mk
1 #
2 # RT3662/RT3883 Profiles
3 #
4 define Build/mkrtn56uimg
5         $(STAGING_DIR_HOST)/bin/mkrtn56uimg $(1) $@
6 endef
7
8 define Device/br-6475nd
9   DTS := BR-6475ND
10   BLOCKSIZE := 64k
11   IMAGE_SIZE := 7744k
12   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
13         edimax-header -s CSYS -m RN54 -f 0x70000 -S 0x01100000 | pad-rootfs | \
14         append-metadata | check-size $$$$(IMAGE_SIZE)
15   DEVICE_TITLE := Edimax BR-6475nD
16   DEVICE_PACKAGES := swconfig
17 endef
18 TARGET_DEVICES += br-6475nd
19
20 define Device/cy-swr1100
21   DTS := CY-SWR1100
22   BLOCKSIZE := 64k
23   KERNEL := $(KERNEL_DTB)
24   IMAGES += factory.bin
25   IMAGE/sysupgrade.bin := \
26         append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
27         seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
28         pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
29   IMAGE/factory.bin := \
30         append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
31         append-rootfs | pad-rootfs -x 64 | \
32         seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
33         seama-seal -m "signature=wrgnd10_samsung_ss815" | \
34         check-size $$$$(IMAGE_SIZE)
35   DEVICE_TITLE := Samsung CY-SWR1100
36   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 | \
37         kmod-usb-ledtrig-usbport swconfig
38 endef
39 TARGET_DEVICES += cy-swr1100
40
41
42 define Device/dir-645
43   DTS := DIR-645
44   BLOCKSIZE := 4k
45   KERNEL := $(KERNEL_DTB)
46   IMAGES += factory.bin
47   IMAGE/sysupgrade.bin := \
48         append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
49         seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
50         pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
51   IMAGE/factory.bin := \
52         append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
53         append-rootfs | pad-rootfs -x 64 | \
54         seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
55         seama-seal -m "signature=wrgn39_dlob.hans_dir645" | \
56         check-size $$$$(IMAGE_SIZE)
57   DEVICE_TITLE := D-Link DIR-645
58   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
59 endef
60 TARGET_DEVICES += dir-645
61
62
63 define Device/hpm
64   DTS := HPM
65   BLOCKSIZE := 64k
66   IMAGE_SIZE := 16064k
67   DEVICE_TITLE := Omnima HPM
68   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
69 endef
70 TARGET_DEVICES += hpm
71
72
73 define Device/rt-n56u
74   DTS := RT-N56U
75   BLOCKSIZE := 64k
76   IMAGE/sysupgrade.bin += | mkrtn56uimg -s
77   DEVICE_TITLE := Asus RT-N56U
78   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
79 endef
80 TARGET_DEVICES += rt-n56u
81
82
83 define Device/tew-691gr
84   DTS := TEW-691GR
85   BLOCKSIZE := 64k
86   IMAGES += factory.bin
87   IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
88         umedia-header 0x026910
89   DEVICE_TITLE := TRENDnet TEW-691GR
90   DEVICE_PACKAGES := swconfig
91 endef
92 TARGET_DEVICES += tew-691gr
93
94
95 define Device/tew-692gr
96   DTS := TEW-692GR
97   BLOCKSIZE := 64k
98   IMAGES += factory.bin
99   IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
100         umedia-header 0x026920
101   DEVICE_TITLE := TRENDnet TEW-692GR
102   DEVICE_PACKAGES := swconfig
103 endef
104 TARGET_DEVICES += tew-692gr
105
106
107 define Device/wlr-6000
108   DTS := WLR-6000
109   BLOCKSIZE := 4k
110   IMAGE_SIZE := 7244k
111   IMAGES += factory.dlf
112   IMAGE/factory.dlf := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
113         senao-header -r 0x0202 -p 0x41 -t 2
114   DEVICE_TITLE := Sitecom WLR-6000
115   DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
116 endef
117 TARGET_DEVICES += wlr-6000
118
119
120 define Device/wmdr-143n
121   DTS := WMDR-143N
122   BLOCKSIZE := 64k
123   DEVICE_TITLE := Loewe WMDR-143N
124 endef
125 TARGET_DEVICES += wmdr-143n