aboutsummaryrefslogtreecommitdiff
path: root/src/arch/i386/Makefile.pcbios
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-04-16 03:15:08 +0100
committerMichael Brown <mcb30@etherboot.org>2009-04-16 03:15:08 +0100
commit7741546a406217827c3d4a8d72aaa322b2565c35 (patch)
treea871a7879a035e76ae17cc096dc5317e4d8f400c /src/arch/i386/Makefile.pcbios
parentb363d19a164c0741623182e327367d3f323c6cf8 (diff)
downloadipxe-7741546a406217827c3d4a8d72aaa322b2565c35.zip
ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.gz
ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.bz2
[build] Pad .rom, .dsk, and .hd images to 512-byte boundaries
QEMU will silently round down a disk or ROM image file to the nearest 512 bytes. Fix by always padding .rom, .dsk and .hd images to the nearest 512-byte boundary. Originally-fixed-by: Stefan Hajnoczi <stefanha@gmail.com>
Diffstat (limited to 'src/arch/i386/Makefile.pcbios')
-rw-r--r--src/arch/i386/Makefile.pcbios6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/i386/Makefile.pcbios b/src/arch/i386/Makefile.pcbios
index 64b3dac..7aa0afd 100644
--- a/src/arch/i386/Makefile.pcbios
+++ b/src/arch/i386/Makefile.pcbios
@@ -27,6 +27,12 @@ MEDIA += raw
MEDIA += com
MEDIA += exe
+# Padding rules
+#
+PAD_rom = $(PADIMG) --blksize=512 --byte=0xff $@
+PAD_dsk = $(PADIMG) --blksize=512 $@
+PAD_hd = $(PADIMG) --blksize=512 $@
+
# rule to make a non-emulation ISO boot image
NON_AUTO_MEDIA += iso
%iso: %lkrn util/geniso