Changeset 29900


Ignore:
Timestamp:
2012-01-24T21:12:10+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: use the lzma loader on the Planex boards

File:
1 edited

Legend:

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

    r29899 r29900  
    8686                ( dd if=$(1) bs=$(2) conv=sync; dd if=$(3) ) > $(5); \ 
    8787        fi; fi 
     88endef 
     89 
     90define Sysupgrade/KR 
     91        $(call CatFiles,$(2),$(3),$(KDIR)/root.$(1),$(4),$(call sysupname,$(1),$(5))) 
    8892endef 
    8993 
     
    292296endef 
    293297 
    294 planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),6336k(rootfs),128k(art)ro,7744k@0x50000(firmware) 
     298planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,960k(kernel),6784k(rootfs),128k(art)ro,7744k@0x50000(firmware) 
     299define Image/Build/Planex/loader 
     300        $(call Image/BuildLoaderAlone,$(1),gz,$(2) $(planex_mtdlayout),0x52000,0) 
     301endef 
     302 
    295303define Image/Build/Planex 
    296         $(call MkuImageGzip,$(2),$(3) $(planex_mtdlayout)) 
    297         $(call Sysupgrade/KRuImage,$(1),$(2),1441792,6356992) 
     304        $(call MkuImage,gzip,,$(KDIR)/loader-$(2).gz,$(KDIR_TMP)/vmlinux-$(2).uImage) 
     305        $(call MkuImageOKLI,$(2)) 
     306        ( \ 
     307                dd if=$(KDIR_TMP)/vmlinux-$(2).uImage bs=8k count=1 conv=sync; \ 
     308                dd if=$(KDIR_TMP)/vmlinux-$(2).okli; \ 
     309        ) > $(KDIR_TMP)/kernel-$(2).bin 
     310        $(call Sysupgrade/KR,$(1),$(KDIR_TMP)/kernel-$(2).bin,983040,6815744,$(2)) 
    298311        if [ -e "$(call sysupname,$(1),$(2))" ]; then \ 
    299312                $(STAGING_DIR_HOST)/bin/mkplanexfw \ 
     
    569582define Image/Build/Template/squashfs-only/squashfs 
    570583        $(call Image/Build/$(1),squashfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8)) 
     584endef 
     585 
     586define Image/Build/Template/64k/loader 
     587        $(call Image/Build/$(1)/loader,$(2),$(3),$(4),$(5),$(6),$(7),$(8)) 
    571588endef 
    572589 
Note: See TracChangeset for help on using the changeset viewer.