image: add support for overriding kernel/rootfs images in sysupgrade-tar template

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2016-07-30 13:47:36 +02:00
parent 77b16bacb1
commit 84718d8736
2 changed files with 3 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ endef
define Build/sysupgrade-tar
sh $(TOPDIR)/scripts/sysupgrade-tar.sh \
--board $(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)) \
--kernel $(word 1,$^) \
--rootfs $(word 2,$^) \
--kernel $(call param_get_default,kernel,$(1),$(word 1,$^)) \
--rootfs $(call param_get_default,rootfs,$(1),$(word 2,$^)) \
$@
endef