1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 20:53:22 +02:00

ar71xx: use the lzma kernel and a proper size limit for pb92

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21405 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2010-05-08 20:06:44 +00:00
parent 54b0976846
commit d04eedfa0d

View File

@ -212,14 +212,16 @@ define Image/Build/AP83
endef endef
define Image/Build/PB92 define Image/Build/PB92
$(call PatchKernelGzip,$(2),$(3)) $(call PatchKernelLzma,$(2),$(3))
if [ `stat -c%s $(KDIR)/root.$(1)` -gt 2818048 ]; then \ 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"; \ echo "Warning: $(KDIR)/root.$(1) is too big"; \
else \ 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 \ 0x80060000 \
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
-d $(KDIR)/vmlinux-$(2).bin.gz \ -d $(KDIR)/vmlinux-$(2).bin.lzma \
$(KDIR)/vmlinux-$(2).uImage; \ $(KDIR)/vmlinux-$(2).uImage; \
dd if=$(KDIR)/vmlinux-$(2).uImage \ dd if=$(KDIR)/vmlinux-$(2).uImage \
of=$(call imgname,kernel,$(2)).bin bs=64k conv=sync; \ of=$(call imgname,kernel,$(2)).bin bs=64k conv=sync; \