build: move lzma2eva build step to image-commands.mk

Move it to image-commands.mk so that it can used by other targets with
eva based boards as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin 2017-03-25 19:18:37 +01:00
parent d165f1f3bc
commit 8e0d7d6574
2 changed files with 9 additions and 3 deletions

View file

@ -44,6 +44,11 @@ define Build/buffalo-dhp-image
mv $@.new $@ mv $@.new $@
endef endef
define Build/eva-image
$(STAGING_DIR_HOST)/bin/lzma2eva $(KERNEL_LOADADDR) $(KERNEL_LOADADDR) $@ $@.new
mv $@.new $@
endef
define Build/netgear-chk define Build/netgear-chk
$(STAGING_DIR_HOST)/bin/mkchkimg \ $(STAGING_DIR_HOST)/bin/mkchkimg \
-o $@.new \ -o $@.new \

View file

@ -20,9 +20,8 @@ else
UBIFS_OPTS := -m 2048 -e 126KiB -c 4096 UBIFS_OPTS := -m 2048 -e 126KiB -c 4096
endif endif
define Build/eva-image define Build/append-avm-fakeroot
lzma2eva $(KERNEL_LOADADDR) $(KERNEL_LOADADDR) $@ $@.new cat ./eva.dummy.squashfs >> $@
( dd if=$@.new bs=64k conv=sync; cat ./eva.dummy.squashfs; ) > $@
endef endef
define Build/dgn3500-sercom-footer define Build/dgn3500-sercom-footer
@ -104,6 +103,8 @@ endef
define Device/AVM define Device/AVM
KERNEL := kernel-bin | append-dtb | lzma | eva-image KERNEL := kernel-bin | append-dtb | lzma | eva-image
IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-avm-fakeroot | \
append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
endef endef
ifeq ($(SUBTARGET),ase) ifeq ($(SUBTARGET),ase)