summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2009-04-16 04:15:08 +0200
committerMichael Brown2009-04-16 04:15:08 +0200
commit7741546a406217827c3d4a8d72aaa322b2565c35 (patch)
treea871a7879a035e76ae17cc096dc5317e4d8f400c /src/Makefile.housekeeping
parent[dhcp] Accept filename via DHCP option 67 as well as BOOTP filename field (diff)
downloadipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.gz
ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.xz
ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.zip
[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/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 8edb0127..38bd058c 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -724,6 +724,7 @@ define media_template
@$(ECHO_E) '$$(BIN)/%.$(1) : $$(BIN)/%.$(1).zbin' \
'\n\t$$(QM)$(ECHO) " [FINISH] $$@"' \
'\n\t$$(Q)$$(CP) $$< $$@' \
+ '\n\t$$(Q)$$(PAD_$(1))' \
'\n\t$$(Q)$$(FINALISE_$(1))' \
> $(2)