Changeset 33143 for trunk


Ignore:
Timestamp:
2012-08-12T14:48:26+02:00 (4 years ago)
Author:
juhosg
Message:

ramips: provide means to specify custom "image name" for uImages, use for DIR-620

D-Link's DIR-620 allows to flash a uImage directly from its web-interface but
for that the image name should be set to DIR_620.

Signed-off-by: Paul Fertser <fercerpav@…>

File:
1 edited

Legend:

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

    r33142 r33143  
    5050 
    5151define MkImage 
     52        $(eval imagename=$(if $(4),$(4),MIPS OpenWrt Linux-$(LINUX_VERSION))) 
    5253        mkimage -A mips -O linux -T kernel -C $(1) $(call kernel_entry)\ 
    53                 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ 
     54                -n "$(imagename)" \ 
    5455                -d $(2) $(3) 
    5556endef 
     
    5758define MkImageLzma 
    5859        $(call PatchKernelLzma,$(1),$(2)) 
    59         $(call MkImage,lzma,$(KDIR)/vmlinux-$(1).bin.lzma,$(KDIR)/vmlinux-$(1).uImage) 
     60        $(call MkImage,lzma,$(KDIR)/vmlinux-$(1).bin.lzma,$(KDIR)/vmlinux-$(1).uImage,$(3)) 
    6061endef 
    6162 
     
    9697 
    9798define BuildFirmware/Generic 
    98         $(call MkImageLzma,$(2),$(3)) 
     99        $(call MkImageLzma,$(2),$(3),$(6)) 
    99100        $(call Sysupgrade/KRuImage,$(1),$(2),$(4),$(5)) 
    100101endef 
     
    201202rootfs_size_dir620a1=7143424 
    202203define BuildFirmware/DIR620A1 
    203         $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/phys,$(mtdlayout_dir620a1)),$(kernel_size_dir620a1),$(rootfs_size_dir620a1)) 
     204        $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/phys,$(mtdlayout_dir620a1)),$(kernel_size_dir620a1),$(rootfs_size_dir620a1),DIR_620) 
    204205endef 
    205206 
Note: See TracChangeset for help on using the changeset viewer.