From 7c1332d95fbaea2e0a5029947a2b8d3d43c171b4 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 29 Dec 2018 19:25:00 +0100 Subject: ramips: consolidate seama image build code Create a common template which has the required image build code defined. Add some new variables to pass individual parts to the seama recipes. Signed-off-by: Mathias Kresin --- target/linux/ramips/image/rt3883.mk | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'target/linux/ramips/image/rt3883.mk') diff --git a/target/linux/ramips/image/rt3883.mk b/target/linux/ramips/image/rt3883.mk index f90fc6154f..abee533d01 100644 --- a/target/linux/ramips/image/rt3883.mk +++ b/target/linux/ramips/image/rt3883.mk @@ -18,20 +18,11 @@ endef TARGET_DEVICES += br-6475nd define Device/cy-swr1100 + $(Device/seama) DTS := CY-SWR1100 BLOCKSIZE := 64k KERNEL := $(KERNEL_DTB) - IMAGES += factory.bin - IMAGE/sysupgrade.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \ - seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ - pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \ - append-rootfs | pad-rootfs -x 64 | \ - seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ - seama-seal -m "signature=wrgnd10_samsung_ss815" | \ - check-size $$$$(IMAGE_SIZE) + SEAMA_SIGNATURE := wrgnd10_samsung_ss815 DEVICE_TITLE := Samsung CY-SWR1100 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig endef @@ -39,20 +30,11 @@ TARGET_DEVICES += cy-swr1100 define Device/dir-645 + $(Device/seama) DTS := DIR-645 BLOCKSIZE := 4k KERNEL := $(KERNEL_DTB) - IMAGES += factory.bin - IMAGE/sysupgrade.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \ - seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ - pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \ - append-rootfs | pad-rootfs -x 64 | \ - seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ - seama-seal -m "signature=wrgn39_dlob.hans_dir645" | \ - check-size $$$$(IMAGE_SIZE) + SEAMA_SIGNATURE := wrgn39_dlob.hans_dir645 DEVICE_TITLE := D-Link DIR-645 DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig endef -- cgit v1.2.3