From: Michael Brown Date: Sun, 22 Jan 2017 11:22:11 +0000 (+0000) Subject: [build] Add %.vhd target for building VM bootable disk images X-Git-Tag: v1.20.1~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfbbc16ae392e8f4ab62e15a99cdfb32a06af557;p=thirdparty%2Fipxe.git [build] Add %.vhd target for building VM bootable disk images Signed-off-by: Michael Brown --- diff --git a/src/Makefile b/src/Makefile index 582ffe81c..1a81e9152 100644 --- a/src/Makefile +++ b/src/Makefile @@ -53,6 +53,7 @@ EINFO := ./util/einfo GENKEYMAP := ./util/genkeymap.pl DOXYGEN := doxygen LCAB := lcab +QEMUIMG := qemu-img ############################################################################### # diff --git a/src/arch/x86/Makefile.pcbios b/src/arch/x86/Makefile.pcbios index f8c225352..df08e0182 100644 --- a/src/arch/x86/Makefile.pcbios +++ b/src/arch/x86/Makefile.pcbios @@ -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