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 <lynxis@fe80.eu> SVN-Revision: 45980
This commit is contained in:
parent
a417bf9f43
commit
61a0b05dbf
@ -304,6 +304,11 @@ define Build/append-rootfs
|
|||||||
dd if=$(word 2,$^) $(if $(1),bs=$(1) conv=sync) >> $@
|
dd if=$(word 2,$^) $(if $(1),bs=$(1) conv=sync) >> $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/pad-to
|
||||||
|
dd if=$@ of=$@.new bs=$(1) conv=sync
|
||||||
|
mv $@.new $@
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/pad-rootfs
|
define Build/pad-rootfs
|
||||||
$(call prepare_generic_squashfs,$@ $(1))
|
$(call prepare_generic_squashfs,$@ $(1))
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user