x86: use qemu-image command from image-commands.mk
authorPaul Spooren <mail@aparcar.org>
Fri, 20 Mar 2020 10:10:57 +0000 (00:10 -1000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 21 Mar 2020 10:36:00 +0000 (10:36 +0000)
commit33cc7e763b1223585d38d3a6f87f48f7e54ff4e8
tree8cfbda9c6dfc7df69c572dcbc2f17f611fddef14
parentb2207e267b5971fbd92a7a9edd5ecdcd0d362603
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>
include/image-commands.mk
target/linux/x86/image/Makefile