From: Felix Fietkau Date: Mon, 15 Jun 2015 07:45:36 +0000 (+0000) Subject: image.mk: add Build step pad-to X-Git-Tag: reboot~2778 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61a0b05dbf0d163f6659f68a65b2b6a2aa3dbb26;p=oweals%2Fopenwrt.git image.mk: add Build step pad-to pad-to can be used in a pipe to pad the image to a specific chunk-size. Signed-off-by: Alexander Couzens SVN-Revision: 45980 --- diff --git a/include/image.mk b/include/image.mk index 287c679cfd..814e7dc5d1 100644 --- a/include/image.mk +++ b/include/image.mk @@ -304,6 +304,11 @@ define Build/append-rootfs dd if=$(word 2,$^) $(if $(1),bs=$(1) conv=sync) >> $@ endef +define Build/pad-to + dd if=$@ of=$@.new bs=$(1) conv=sync + mv $@.new $@ +endef + define Build/pad-rootfs $(call prepare_generic_squashfs,$@ $(1)) endef