x86: use qemu-image command from image-commands.mk
The `qemu-image` command converts images to the specified type and
reduces redundant code.
Adaption from Alexander Couzens <lynxis@fe80.eu> work[0].
[0]: https://git.openwrt.org/?p=openwrt/staging/lynxis.git;a=blob;f=target/linux/x86/image/Makefile;h=83b8140b7aefbe708fd09c9c61827e7e39bda8b4;hb=416cccf398e9589e3de386e05b61b1c46cace20d#l51
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 33cc7e763b)
This commit is contained in:
parent
a1dc0bafa9
commit
47bbca5ee3
@ -420,3 +420,10 @@ define Build/append-metadata
|
||||
fwtool -S "$@.ucert" "$@" ;\
|
||||
}
|
||||
endef
|
||||
|
||||
# Convert a raw image into a $1 type image.
|
||||
# E.g. | qemu-image vdi
|
||||
define Build/qemu-image
|
||||
qemu-img convert -f raw -O $1 $@ $@.new
|
||||
@mv $@.new $@
|
||||
endef
|
||||
|
||||
Loading…
Reference in New Issue
Block a user