Changeset 27388


Ignore:
Timestamp:
2011-07-03T17:01:55+02:00 (7 years ago)
Author:
juhosg
Message:

ramips: check the size of the uImage in image generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/image/Makefile

    r27387 r27388  
    5555define BuildFirmware/Generic 
    5656        $(call PatchKernelLzma,$(2),$(3) $($(4))) 
    57         if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt $(5) ]; then \ 
    58                 echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \ 
     57        $(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage") 
     58        if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \ 
     59                echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \ 
    5960        else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \ 
    6061                echo "Warning: $(KDIR)/root.$(1) is too big"; \ 
    6162        else \ 
    62                 mkimage -A mips -O linux -T kernel -C lzma \ 
    63                         $(call kernel_entry) \ 
    64                         -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ 
    65                         -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \ 
    6663                ( \ 
    6764                        dd if=$(KDIR)/vmlinux-$(2).uImage bs=$(5) conv=sync; \ 
Note: See TracChangeset for help on using the changeset viewer.