diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-04-16 03:15:08 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-04-16 03:15:08 +0100 |
commit | 7741546a406217827c3d4a8d72aaa322b2565c35 (patch) | |
tree | a871a7879a035e76ae17cc096dc5317e4d8f400c /src/Makefile.housekeeping | |
parent | b363d19a164c0741623182e327367d3f323c6cf8 (diff) | |
download | ipxe-7741546a406217827c3d4a8d72aaa322b2565c35.tar.gz |
[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.housekeeping | 1 |
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) |