build: image: add pad-to and pad-rootfs-squashfs helpers

For better reusability.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
Petr Štetiar
2019-03-28 14:21:18 +00:00
parent 9c8e0b0e8a
commit 97833a57ef
2 changed files with 10 additions and 2 deletions

View File

@@ -230,8 +230,7 @@ define Build/append-uboot
endef
define Build/pad-to
dd if=$@ of=$@.new bs=$(1) conv=sync
mv $@.new $@
$(call Image/pad-to,$@,$(1))
endef
define Build/pad-extra