image.mk: add Build step combined-image
authorFelix Fietkau <nbd@openwrt.org>
Mon, 15 Jun 2015 07:45:27 +0000 (07:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 15 Jun 2015 07:45:27 +0000 (07:45 +0000)
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
SVN-Revision: 45979

include/image.mk

index 020418d..287c679 100644 (file)
@@ -326,6 +326,13 @@ define Build/check-size
        }
 endef
 
+define Build/combined-image
+       -sh $(TOPDIR)/scripts/combined-image.sh \
+               "$(word 1,$^)" \
+               "$@" \
+               "$@.new"
+       @mv $@.new $@
+endef
 
 define Device/Init
   PROFILES := $(PROFILE)