Changeset 45732


Ignore:
Timestamp:
2015-05-23T17:28:20+02:00 (3 years ago)
Author:
blogic
Message:

octeon: build squashfs image for UBNT ERLITE

Signed-off-by: Stijn Tintel <stijn@…>

File:
1 edited

Legend:

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

    r44902 r45732  
    2121 
    2222ER_CMDLINE:=-mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro block2mtd.block2mtd=/dev/mmcblk0p2,65536,rootfs,5 root=/dev/mtdblock3 rootfstype=squashfs rootwait 
     23ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom) block2mtd.block2mtd=/dev/sda2,65536,rootfs,5 root=/dev/mtdblock3 rootfstype=squashfs rootwait 
    2324 
    2425define Image/BuildKernel 
    2526        $(call Image/BuildKernel/Template,generic,) 
    2627        $(call Image/BuildKernel/Template,er,$(ER_CMDLINE)) 
     28        $(call Image/BuildKernel/Template,erlite,$(ERLITE_CMDLINE)) 
    2729endef 
    2830 
     
    3032        $(call Image/BuildKernel/Initramfs/Template,generic,) 
    3133        $(call Image/BuildKernel/Initramfs/Template,er,$(ER_CMDLINE)) 
     34        $(call Image/BuildKernel/Initramfs/Template,erlite,$(ERLITE_CMDLINE)) 
    3235endef 
    3336 
    3437define Image/Build/sysupgrade 
    3538        mkdir -p $(KDIR)/sysupgrade-$(1)/ 
    36         echo "BOARD=er" > $(KDIR)/sysupgrade-$(1)/CONTROL 
     39        echo "BOARD=$(1)" > $(KDIR)/sysupgrade-$(1)/CONTROL 
    3740        $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(2)-vmlinux.64 $(KDIR)/sysupgrade-$(1)/kernel 
    3841        $(CP) $(KDIR)/root.$(3) $(KDIR)/sysupgrade-$(1)/root 
    3942        (cd $(KDIR); $(TAR) cvf \ 
    40                 $(BIN_DIR)/$(IMG_PREFIX)-$(1)-sysupgrade.tar sysupgrade-$(1)) 
     43                $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(3)-sysupgrade.tar sysupgrade-$(1)) 
    4144endef 
    4245 
     
    4851        $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) 
    4952        $(call Image/Build/sysupgrade,er,er,squashfs) 
     53        $(call Image/Build/sysupgrade,erlite,erlite,squashfs) 
    5054endef 
    5155 
Note: See TracChangeset for help on using the changeset viewer.