Signed-off-by: Jonas Gorski <[email protected]>
---
 include/image.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/image.mk b/include/image.mk
index 73fc805..fb89ed1 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -345,6 +345,16 @@ define Build/append-rootfs
        dd if=$(word 2,$^) $(if $(1),bs=$(1) conv=sync) >> $@
 endef
 
+define Build/append-ubi
+       sh $(TOPDIR)/scripts/ubinize-image.sh \
+               $(if $(KERNEL_IN_UBI),--kernel $(word 1,$^)) \
+               $(word 2,$^) \
+               [email protected] \
+               -p $(BLOCKSIZE) -m $(PAGESIZE) -E 5
+       cat [email protected] >> $@
+       rm [email protected]
+endef
+
 define Build/pad-to
        dd if=$@ [email protected] bs=$(1) conv=sync
        mv [email protected] $@
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to