david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[build] Add %.vhd target for building VM bootable disk images

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-01-22 11:22:11 +00:00
parent 43b2d8eafb
commit dfbbc16ae3
2 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,7 @@ EINFO := ./util/einfo
GENKEYMAP := ./util/genkeymap.pl
DOXYGEN := doxygen
LCAB := lcab
QEMUIMG := qemu-img
###############################################################################
#

View 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