ar71xx: create separated and smaller sysupgrade files for the DIR-615 and similar...
authorGabor Juhos <juhosg@openwrt.org>
Mon, 15 Mar 2010 11:03:38 +0000 (11:03 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 15 Mar 2010 11:03:38 +0000 (11:03 +0000)
SVN-Revision: 20230

target/linux/ar71xx/image/Makefile

index 81ea68fe42aebe3f6a757a64528cb13283b5b7ef..c5d79935bfe464866c133fb67e7c1577857955fd 100644 (file)
@@ -141,11 +141,15 @@ define Image/Build/Cameo
                        0x80060000 \
                        -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
                        -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \
+               ( \
+                       dd if=$(KDIR)/vmlinux-$(2).uImage bs=896k conv=sync; \
+                       dd if=$(KDIR)/root.$(1) \
+               ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
                ( \
                        dd if=$(KDIR)/vmlinux-$(2).uImage bs=896k conv=sync; \
                        dd if=$(KDIR)/root.$(1) bs=2880k conv=sync; \
                        echo -n $(4); \
-               ) > $(call imgname,$(1),$(2)).uni; \
+               ) > $(call imgname,$(1),$(2))-factory.bin; \
        fi; fi
 endef
 
@@ -161,11 +165,15 @@ define Image/Build/Cameo7240
                        0x80060000 \
                        -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
                        -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \
+               ( \
+                       dd if=$(KDIR)/vmlinux-$(2).uImage bs=896k conv=sync; \
+                       dd if=$(KDIR)/root.$(1) \
+               ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
                ( \
                        dd if=$(KDIR)/vmlinux-$(2).uImage bs=896k conv=sync; \
                        dd if=$(KDIR)/root.$(1) bs=2752k conv=sync; \
                        echo -n $(4); \
-               ) > $(call imgname,$(1),$(2))-universal.bin; \
+               ) > $(call imgname,$(1),$(2))-factory.bin; \
        fi; fi
 endef