-DEVICE_VARS += DAP_SIGNATURE NETGEAR_BOARD_ID NETGEAR_HW_ID NETGEAR_KERNEL_MAGIC ROOTFS_SIZE SEAMA_SIGNATURE
+DEVICE_VARS += DAP_SIGNATURE NETGEAR_BOARD_ID NETGEAR_HW_ID NETGEAR_KERNEL_MAGIC ROOTFS_SIZE
+DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
define Build/alfa-network-rootfs-header
mkimage \
endef
define Build/seama
- $(STAGING_DIR_HOST)/bin/seama -i $@ $(if $(1),$(1),-m "dev=/dev/mtdblock/1" -m "type=firmware")
+ $(STAGING_DIR_HOST)/bin/seama -i $@ \
+ -m "dev=/dev/mtdblock/$(SEAMA_MTDBLOCK)" -m "type=firmware"
mv $@.seama $@
endef
define Build/seama-seal
- $(call Build/seama,-s $@.seama $(1))
+ $(STAGING_DIR_HOST)/bin/seama -i $@ -s $@.seama \
+ -m "signature=$(SEAMA_SIGNATURE)"
endef
define Build/teltonika-fw-fake-checksum
KERNEL := kernel-bin | patch-cmdline | relocate-kernel | lzma
KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | seama
KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX).seama
+ SEAMA_MTDBLOCK := 1
IMAGES := sysupgrade.bin factory.bin
# 64 bytes offset:
check-size $$$$(IMAGE_SIZE)
IMAGE/factory.bin := \
$$(IMAGE/default) | seama | pad-rootfs | \
- seama-seal -m "signature=$$$$(SEAMA_SIGNATURE)" | \
- check-size $$$$(IMAGE_SIZE)
+ seama-seal | check-size $$$$(IMAGE_SIZE)
SEAMA_SIGNATURE :=
endef