Author: jogo Date: 2015-09-04 16:44:10 +0200 (Fri, 04 Sep 2015) New Revision: 46783
Modified: trunk/include/image.mk Log: image: add a build step for building and appending an ubinized rootfs Signed-off-by: Jonas Gorski <[email protected]> Modified: trunk/include/image.mk =================================================================== --- trunk/include/image.mk 2015-09-04 14:44:04 UTC (rev 46782) +++ trunk/include/image.mk 2015-09-04 14:44:10 UTC (rev 46783) @@ -345,6 +345,16 @@ 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] $@ _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
