rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / target / linux / ramips / image / rt288x.mk
1 #
2 # RT288X Profiles
3 #
4
5 # Airlink101 AR670W -- LZMA without uImage header
6 define BuildFirmware/AR670W/squashfs
7 $(call PatchKernelLzmaDtb,$(2),$(3),$(5))
8
9 $(eval output_name=$(IMG_PREFIX)-$(2)-$(1)-$(if $(4),$(4),sysupgrade).bin)
10 $(eval factory_name=$(IMG_PREFIX)-$(2)-$(1)-factory.bin)
11
12 ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=65536 \
13 conv=sync; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/$(output_name)
14
15 $(call prepare_generic_squashfs,$(KDIR)/$(output_name))
16
17 if [ `stat -c%s "$(KDIR)/$(output_name)"` \
18 -gt $(ralink_default_fw_size_4M) ]; then \
19 echo "Warning: $(KDIR)/$(output_name) is too big" >&2; \
20 else \
21 mkwrgimg -i $(KDIR)/$(output_name) \
22 -d "/dev/mtdblock/2" \
23 -s "wrgn16a_airlink_ar670w" \
24 -o $(BIN_DIR)/$(factory_name); \
25 $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name); \
26 fi
27 endef
28
29 define BuildFirmware/Gemtek/squashfs
30 $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
31 if [ -e "$(call sysupname,$(1),$(2))" ]; then \
32 mkheader_gemtek "$(call sysupname,$(1),$(2))" \
33 "$(call imgname,$(1),$(2))-factory.bin" $(2) || \
34 rm -f "$(call imgname,$(1),$(2))-factory.bin"; \
35 fi
36 endef
37 BuildFirmware/Gemtek/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
38
39
40 Image/Build/Profile/AR670W=$(call BuildFirmware/AR670W/$(1),$(1),ar670w,AR670W)
41 Image/Build/Profile/AR725W=$(call BuildFirmware/Gemtek/$(1),$(1),ar725w,AR725W)
42 # 0x790000
43 belkin_f5d8235v1_mtd_size=7929856
44 Image/Build/Profile/F5D8235V1=$(call BuildFirmware/CustomFlash/$(1),$(1),f5d8235v1,F5D8235_V1,$(belkin_f5d8235v1_mtd_size))
45 Image/Build/Profile/RTN15=$(call BuildFirmware/Default4M/$(1),$(1),rt-n15,RT-N15)
46 Image/Build/Profile/V11STFE=$(call BuildFirmware/Default4M/$(1),$(1),v11st-fe,V11STFE)
47 Image/Build/Profile/WLITX4AG300N=$(call BuildFirmware/Default4M/$(1),$(1),wli-tx4-ag300n,WLI-TX4-AG300N)
48 Image/Build/Profile/WZRAGL300NH=$(call BuildFirmware/Default4M/$(1),$(1),wzr-agl300nh,WZR-AGL300NH)
49
50
51 define Image/Build/Profile/Default
52 $(call Image/Build/Profile/AR670W,$(1))
53 $(call Image/Build/Profile/AR725W,$(1))
54 $(call Image/Build/Profile/F5D8235V1,$(1))
55 $(call Image/Build/Profile/RTN15,$(1))
56 $(call Image/Build/Profile/V11STFE,$(1))
57 $(call Image/Build/Profile/WLITX4AG300N,$(1))
58 $(call Image/Build/Profile/WZRAGL300NH,$(1))
59 endef