-define BuildFirmware/DCS930/squashfs
- $(call BuildFirmware/Default4M/squashfs,squashfs,$(2),$(3))
- dd if=$(KDIR)/vmlinux-$(2).bin.lzma of=$(KDIR)/image.$(2).combined bs=1048512 count=1 conv=sync
- cat $(KDIR)/root.squashfs >> $(KDIR)/image.$(2).combined
- $(call MkImage,lzma,$(KDIR)/image.$(2).combined,$(KDIR)/image.$(2))
- $(call prepare_generic_squashfs,$(KDIR)/image.$(2))
- if [ `stat -c%s "$(KDIR)/image.$(2)"` -gt $(ralink_default_fw_size_4M) ]; then \
- echo "Warning: $(KDIR)/image.$(2) is too big" >&2; \
- else \
- dd if=$(KDIR)/image.$(2) of=$(KDIR)/dcs.tmp bs=64K count=5 conv=sync ;\
- cat $(KDIR)/image.$(2) >> $(KDIR)/dcs.tmp ; \
- dd if=$(KDIR)/dcs.tmp of=$(call imgname,$(1),$(2))-factory.bin bs=4096k count=1 conv=sync ;\
- $(STAGING_DIR_HOST)/bin/mkdcs932 $(call imgname,$(1),$(2))-factory.bin ; \
- fi
-endef
-BuildFirmware/DCS930/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
-