summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown2017-01-22 12:22:11 +0100
committerMichael Brown2017-01-22 12:22:11 +0100
commitdfbbc16ae392e8f4ab62e15a99cdfb32a06af557 (patch)
treeeabf893f5d7b1423cf4405903916d5a9ec6b1079 /src/arch
parent[ipv4] Accept unicast packets for the local network broadcast address (diff)
downloadipxe-dfbbc16ae392e8f4ab62e15a99cdfb32a06af557.tar.gz
ipxe-dfbbc16ae392e8f4ab62e15a99cdfb32a06af557.tar.xz
ipxe-dfbbc16ae392e8f4ab62e15a99cdfb32a06af557.zip
[build] Add %.vhd target for building VM bootable disk images
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/Makefile.pcbios5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.pcbios b/src/arch/x86/Makefile.pcbios
index f8c22535..df08e018 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