Browse Source

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
dfbbc16ae3
2 changed files with 6 additions and 0 deletions
  1. 1
    0
      src/Makefile
  2. 5
    0
      src/arch/x86/Makefile.pcbios

+ 1
- 0
src/Makefile View File

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

+ 5
- 0
src/arch/x86/Makefile.pcbios View File

@@ -120,6 +120,11 @@ NON_AUTO_MEDIA	+= usb
120 120
 	$(QM)$(ECHO) "  [FINISH] $@"
121 121
 	$(Q)cat $^ > $@
122 122
 
123
+NON_AUTO_MEDIA	+= vhd
124
+%vhd: %usb
125
+	$(QM)$(ECHO) "  [FINISH] $@"
126
+	$(Q)$(QEMUIMG) convert -f raw -O vpc $< $@
127
+
123 128
 # Padded floppy image (e.g. for iLO)
124 129
 NON_AUTO_MEDIA += pdsk
125 130
 %pdsk : %dsk

Loading…
Cancel
Save