ar71xx: use MkImageLzma template for Ubiquiti XM devices
authorGabor Juhos <juhosg@openwrt.org>
Wed, 25 Nov 2009 09:51:33 +0000 (09:51 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 25 Nov 2009 09:51:33 +0000 (09:51 +0000)
SVN-Revision: 18534

target/linux/ar71xx/image/Makefile

index b61524ecdb778b93683558070938dc1157aebe9e..db57ed4e83d44ca3f7301e130b51e2f21873defa 100644 (file)
@@ -141,11 +141,7 @@ endef
 ubntxm_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1024k(kernel),6528k(rootfs),256k(cfg)ro,64k(EEPROM)ro,7552k@0x50000(firmware)
 define Image/Build/UBNTXM
        $(call PatchKernelLzma,$(2),$(3) $(ubntxm_mtdlayout))
-       mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
-               0x80060000 \
-               -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
-               -d $(KDIR)/vmlinux-$(2).bin.lzma \
-               $(KDIR)/vmlinux-$(2).uImage.bin
+       $(call MkImageLzma,$(KDIR)/vmlinux-$(2).bin.lzma,$(KDIR)/vmlinux-$(2).uImage.bin)
        dd if=$(KDIR)/vmlinux-$(2).uImage.bin of=$(KDIR)/vmlinux-$(2).uImage bs=1024k conv=sync
        -$(STAGING_DIR_HOST)/bin/mkfwimage \
                -B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \