]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Add %.vhd target for building VM bootable disk images
authorMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2017 11:22:11 +0000 (11:22 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2017 11:22:11 +0000 (11:22 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile
src/arch/x86/Makefile.pcbios

index 582ffe81c9c69127ac53c4adc4b0ca236974780e..1a81e915284ba8a4efa78d0ffc2a9d4248fed23f 100644 (file)
@@ -53,6 +53,7 @@ EINFO         := ./util/einfo
 GENKEYMAP      := ./util/genkeymap.pl
 DOXYGEN                := doxygen
 LCAB           := lcab
+QEMUIMG                := qemu-img
 
 ###############################################################################
 #
index f8c2253520deaf88a6ba42d049cb1a0719951c5e..df08e018205714e187f3a878a44711f8985977e7 100644 (file)
@@ -120,6 +120,11 @@ NON_AUTO_MEDIA     += usb
        $(QM)$(ECHO) "  [FINISH] $@"
        $(Q)cat $^ > $@
 
+NON_AUTO_MEDIA += vhd
+%vhd: %usb
+       $(QM)$(ECHO) "  [FINISH] $@"
+       $(Q)$(QEMUIMG) convert -f raw -O vpc $< $@
+
 # Padded floppy image (e.g. for iLO)
 NON_AUTO_MEDIA += pdsk
 %pdsk : %dsk