image: remove padding parameter from append-kernel/append-rootfs

Using pad-to instead of passing the optional padding to append-kernel
or append-rootfs. It could be that the value of a variable is passed.
In case the variable is empty no error is thrown.

Furthermore the purpose of the extra parameter is hard to get without
reading the code.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin
2016-09-11 19:05:20 +02:00
parent 14b40d61e1
commit 61c2a7339a
6 changed files with 15 additions and 15 deletions

View File

@@ -103,11 +103,11 @@ define Build/patch-cmdline
endef
define Build/append-kernel
dd if=$(IMAGE_KERNEL) $(if $(1),bs=$(1) conv=sync) >> $@
dd if=$(IMAGE_KERNEL) >> $@
endef
define Build/append-rootfs
dd if=$(IMAGE_ROOTFS) $(if $(1),bs=$(1) conv=sync) >> $@
dd if=$(IMAGE_ROOTFS) >> $@
endef
define Build/append-ubi