ar71xx: add images for pb92 - no kernel size check yet, lzma images did not yet work...
[openwrt.git] / target / linux / ar71xx / image / Makefile
index 81ea68f..e57808e 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
 
@@ -192,6 +200,27 @@ define Image/Build/AP83
        fi; fi
 endef
 
+define Image/Build/PB92
+       $(call PatchKernelGzip,$(2),$(3))
+       if [ `stat -c%s $(KDIR)/root.$(1)` -gt 2818048 ]; then \
+               echo "Warning: $(KDIR)/root.$(1) is too big"; \
+       else \
+               mkimage -A mips -O linux -T kernel -a 0x80060000 -C gzip -e \
+                       0x80060000 \
+                       -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
+                       -d $(KDIR)/vmlinux-$(2).bin.gz \
+                       $(KDIR)/vmlinux-$(2).uImage; \
+               dd if=$(KDIR)/vmlinux-$(2).uImage \
+                       of=$(call imgname,kernel,$(2)).bin bs=64k conv=sync; \
+               dd if=$(KDIR)/root.$(1) \
+                       of=$(call imgname,$(1),$(2)-rootfs).bin bs=128k conv=sync; \
+               ( \
+                       dd if=$(KDIR)/vmlinux-$(2).uImage bs=896k conv=sync; \
+                       dd if=$(KDIR)/root.$(1); \
+               ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
+       fi
+endef
+
 define Image/Build/PB4X
        $(call PatchKernelLzma,$(2),$(3))
        dd if=$(KDIR)/vmlinux-$(2).bin.lzma \
@@ -281,7 +310,7 @@ endef
 define Image/Build/TPLINK/initramfs
        $(call PatchKernelGzip,$(2),$(3))
        -$(STAGING_DIR_HOST)/bin/mktplinkfw -c \
-               -B $(4) -N OpenWrt -V $(REVISION)\
+               -B $(4) -N OpenWrt -V $(REVISION) -s \
                -k $(KDIR)/vmlinux-$(2).bin.gz \
                -o $(call imgname,$(1),$(2))-uImage.bin
 endef
@@ -396,6 +425,10 @@ define Image/Build/Profile/PB44
        $(call Image/Build/Template/$(fs_64k)/$(1),PB4X,pb44,board=PB44)
 endef
 
+define Image/Build/Profile/PB92
+       $(call Image/Build/Template/$(fs_64k)/$(1),PB92,pb92,board=PB92)
+endef
+
 define Image/Build/Profile/WP543
        $(call Image/Build/Template/$(fs_64k)/$(1),MyLoader,wp543,0x200000,2M)
        $(call Image/Build/Template/$(fs_64k)/$(1),MyLoader,wp543,0x400000,4M)
@@ -528,6 +561,7 @@ define Image/Build/Profile/Default
        $(call Image/Build/Profile/MZKW300NH,$(1))
        $(call Image/Build/Profile/PB42,$(1))
        $(call Image/Build/Profile/PB44,$(1))
+       $(call Image/Build/Profile/PB92,$(1))
        $(call Image/Build/Profile/TEW632BRP,$(1))
        $(call Image/Build/Profile/TEW652BRP,$(1))
        $(call Image/Build/Profile/TLWR741NDV1,$(1))
This page took 0.028345 seconds and 4 git commands to generate.