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 8 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
 GENKEYMAP	:= ./util/genkeymap.pl
53
 GENKEYMAP	:= ./util/genkeymap.pl
54
 DOXYGEN		:= doxygen
54
 DOXYGEN		:= doxygen
55
 LCAB		:= lcab
55
 LCAB		:= lcab
56
+QEMUIMG		:= qemu-img
56
 
57
 
57
 ###############################################################################
58
 ###############################################################################
58
 #
59
 #

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

120
 	$(QM)$(ECHO) "  [FINISH] $@"
120
 	$(QM)$(ECHO) "  [FINISH] $@"
121
 	$(Q)cat $^ > $@
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
 # Padded floppy image (e.g. for iLO)
128
 # Padded floppy image (e.g. for iLO)
124
 NON_AUTO_MEDIA += pdsk
129
 NON_AUTO_MEDIA += pdsk
125
 %pdsk : %dsk
130
 %pdsk : %dsk

Loading…
Cancel
Save