mkbrnimg -s $(SIGNATURE) -m $(MAGIC) -p $(CRC32_POLY) -o $@ $(word 1,$^) $(word 2,$^)
endef
+define Build/fullimage
+ mkimage -A mips -O linux -C lzma -T filesystem -a 0x00 \
+ -e 0x00 -n 'LEDE RootFS' \
+ -d $(word 2,$^) $(word 2,$^).new
+
+ cat $(word 1,$^) $(word 2,$^).new > $@.tmp
+
+ mkimage -A mips -O linux -T multi -a 0x00 -C none \
+ -e 0x00 -n 'OpenWrt fullimage' \
+ -d $@.tmp $@
+
+ rm $(word 2,$^).new
+ rm $@.tmp
+endef
+
# Shared device definition: applies to every defined device
define Device/Default
PROFILES = Default $$(DEVICE_PROFILE)
endef
DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY
+define Device/lantiqFullImage
+ KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-offset 4 0
+ IMAGES := sysupgrade.bin fullimage.img
+ IMAGE/fullimage.img := fullimage | check-size $$$$(IMAGE_SIZE)
+endef
+
ifeq ($(SUBTARGET),xway_legacy)
define Device/ARV4520PW
LEGACY_DEVICES += BTHOMEHUBV5A
define Device/EASY80920NAND
+ $(Device/lantiqFullImage)
DEVICE_PROFILE := EASY80920NAND
IMAGE_SIZE := 64512k
DEVICE_TITLE := Lantiq VR9 - EASY80920NAND