endef
define Image/Build/PB92
- $(call PatchKernelGzip,$(2),$(3))
- if [ `stat -c%s $(KDIR)/root.$(1)` -gt 2818048 ]; then \
+ $(call PatchKernelLzma,$(2),$(3))
+ if [ `stat -c%s $(KDIR)/vmlinux-$(2).bin.lzma` -gt 917504 ]; then \
+ echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
+ elif [ `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 \
+ mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
0x80060000 \
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
- -d $(KDIR)/vmlinux-$(2).bin.gz \
+ -d $(KDIR)/vmlinux-$(2).bin.lzma \
$(KDIR)/vmlinux-$(2).uImage; \
dd if=$(KDIR)/vmlinux-$(2).uImage \
of=$(call imgname,kernel,$(2)).bin bs=64k conv=sync; \
-d $(KDIR)/vmlinux-$(2).bin.gz $(KDIR)/vmlinux-$(2).uImage; \
( \
dd if=$(KDIR)/vmlinux-$(2).uImage bs=1408k conv=sync; \
- dd if=$(KDIR)/root.$(1) bs=6208k conv=sync; \
- ) > $(call imgname,$(1),$(2)).bin; \
+ dd if=$(KDIR)/root.$(1); \
+ ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
$(STAGING_DIR_HOST)/bin/mkplanexfw \
-B $(2) \
-v 2.00.00 \
- -i $(call imgname,$(1),$(2)).bin \
- -o $(call imgname,$(1),$(2)).webui; \
+ -i $(call imgname,$(1),$(2))-sysupgrade.bin \
+ -o $(call imgname,$(1),$(2))-factory.bin; \
fi; fi
endef
$(call Image/Build/Profile/WZRHPG300NH,$(1))
endef
+define Image/Build/Profile/Minimal
+ $(call Image/Build/Profile/Default,$(1))
+endef
+
define Image/Build/Profile/Madwifi
$(call Image/Build/Profile/UBNTRS,$(1))
$(call Image/Build/Profile/UBNTRSPRO,$(1))