ramips: use lower case names for TEW-69xGR images
[openwrt/staging/yousong.git] / target / linux / ramips / image / rt3883.mk
1 #
2 # RT3662/RT3883 Profiles
3 #
4
5 define Device/tew-691gr
6 DTS := TEW-691GR
7 IMAGES += factory.bin
8 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | umedia-header 0x026910
9 DEVICE_TITLE := TRENDnet TEW-691GR
10 DEVICE_PACKAGES := swconfig
11 endef
12 TARGET_DEVICES += tew-691gr
13
14
15 define Device/tew-692gr
16 DTS := TEW-692GR
17 IMAGES += factory.bin
18 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | umedia-header 0x026920
19 DEVICE_TITLE := TRENDnet TEW-692GR
20 DEVICE_PACKAGES := swconfig
21 endef
22 TARGET_DEVICES += tew-692gr
23
24
25 # $(1) = squashfs/initramfs
26 # $(2) = lowercase board name
27 # $(3) = dts file
28 # $(4) = kernel size
29 # $(5) = rootfs size
30 # $(6) = signature
31 # $(7) = model
32 # $(8) = flash address
33 # $(9) = start address
34 define BuildFirmware/EdimaxCombined/squashfs
35 $(call PatchKernelLzmaDtb,$(2),$(3))
36 $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma,$(KDIR)/vmlinux-$(2).bin.uImage)
37 if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.uImage"` -gt `expr $(4) - 20` ]; then \
38 echo "Warning: $(KDIR)/vmlinux-$(2).bin.uImage is too big" >&2; \
39 exit 1; \
40 else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \
41 echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \
42 exit 1; \
43 else \
44 ( dd if=$(KDIR)/vmlinux-$(2).bin.uImage bs=`expr $(4) - 20` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.uImage.combined ; \
45 fi ; fi
46 mkedimaximg -i "$(KDIR)/vmlinux-$(2).bin.uImage.combined" \
47 -o $(call imgname,$(1),$(2)).bin \
48 -s $(6) -m $(7) -f $(8) -S $(9)
49 endef
50
51 define BuildFirmware/RTN56U/squashfs
52 $(call BuildFirmware/Default8M/$(1),$(1),rt-n56u,RT-N56U)
53 -mkrtn56uimg -s $(call sysupname,$(1),rt-n56u)
54 -cp $(call sysupname,$(1),rt-n56u) $(call imgname,$(1),rt-n56u)-factory.bin
55 -mkrtn56uimg -f $(call imgname,$(1),rt-n56u)-factory.bin
56 endef
57
58
59 Image/Build/Profile/CYSWR1100=$(call BuildFirmware/Seama/$(1),$(1),cy-swr1100,CY-SWR1100,wrgnd10_samsung_ss815,$(ralink_default_fw_size_8M))
60 Image/Build/Profile/DIR645=$(call BuildFirmware/Seama/$(1),$(1),dir-645,DIR-645,wrgn39_dlob.hans_dir645,$(ralink_default_fw_size_8M))
61 hpm_mtd_size=16449536
62 Image/Build/Profile/HPM=$(call BuildFirmware/CustomFlash/$(1),$(1),hpm,HPM,$(hpm_mtd_size))
63 Image/Build/Profile/RTN56U=$(call BuildFirmware/RTN56U/$(1),$(1),rt-n56u,RT-N56U)
64 kernel_size_BR6475ND:=2097152
65 rootfs_size_BR6475ND:=5832704
66 Image/Build/Profile/BR6475ND=$(call BuildFirmware/EdimaxCombined/$(1),$(1),br-6475nd,BR-6475ND,$(kernel_size_BR6475ND),$(rootfs_size_BR6475ND),CSYS,RN54,0x70000,0x01100000)
67
68
69 define LegacyDevice/CYSWR1100
70 DEVICE_TITLE := Samsung CY-SWR1100
71 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
72 endef
73 LEGACY_DEVICES += CYSWR1100
74
75
76 define LegacyDevice/DIR645
77 DEVICE_TITLE := D-Link DIR-645
78 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
79 endef
80 LEGACY_DEVICES += DIR645
81
82
83 define LegacyDevice/HPM
84 DEVICE_TITLE := Omnima HPM
85 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2
86 endef
87 LEGACY_DEVICES += HPM
88
89
90 define LegacyDevice/RTN56U
91 DEVICE_TITLE := Asus RT-N56U
92 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig
93 endef
94 LEGACY_DEVICES += RTN56U
95
96
97 define LegacyDevice/BR6475ND
98 DEVICE_TITLE := Edimax BR-6475nD
99 DEVICE_PACKAGES := swconfig
100 endef
101 LEGACY_DEVICES += BR6475ND