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