Changeset 30696


Ignore:
Timestamp:
2012-02-23T20:58:02+01:00 (6 years ago)
Author:
juhosg
Message:

ramips: image: add MkImageLzma wrapper

File:
1 edited

Legend:

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

    r30695 r30696  
    4747endef 
    4848 
     49define MkImageLzma 
     50        $(call PatchKernelLzma,$(1),$(2)) 
     51        $(call MkImage,lzma,$(KDIR)/vmlinux-$(1).bin.lzma,$(KDIR)/vmlinux-$(1).uImage) 
     52endef 
     53 
    4954define Image/BuildKernel 
    5055        cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(VMLINUX).elf 
     
    5762 
    5863define BuildFirmware/Generic 
    59         $(call PatchKernelLzma,$(2),$(3) $($(4))) 
    60         $(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage") 
     64        $(call MkImageLzma,$(2),$(3) $($(4))) 
    6165        if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \ 
    6266                echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \ 
     
    7276 
    7377define BuildFirmware/Generic/initramfs 
    74         $(call PatchKernelLzma,$(2),$(3) $($(4))) 
    75         $(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage") 
     78        $(call MkImageLzma,$(2),$(3) $($(4))) 
    7679        $(CP) $(KDIR)/vmlinux-$(2).uImage $(call imgname,$(1),$(2))-uImage.bin 
    7780endef 
    7881 
    7982define BuildFirmware/WL341V3 
    80         $(call PatchKernelLzma,$(2),$(3) $($(4))) 
    81         $(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage") 
     83        $(call MkImageLzma,$(2),$(3) $($(4))) 
    8284        if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \ 
    8385                echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \ 
     
    100102 
    101103define BuildFirmware/Buffalo 
    102         $(call PatchKernelLzma,$(2),board=$(3) $($(4))) 
    103         $(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage") 
     104        $(call MkImageLzma,$(2),board=$(3) $($(4))) 
    104105        if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \ 
    105106                echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \ 
Note: See TracChangeset for help on using the changeset viewer.