summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-11-15 05:41:40 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2014-02-11 02:07:50 (GMT)
commit11fe7583d123abdf205e491ce836fffb1671e4bb (patch)
treecdaee109df054a4cff3d80e84b9e446de176112c
parentf88a1fbfa4b3b60d793236cd6b238bb1005c8180 (diff)
downloadabc8000-11fe7583d123abdf205e491ce836fffb1671e4bb.zip
abc8000-11fe7583d123abdf205e491ce836fffb1671e4bb.tar.gz
abc8000-11fe7583d123abdf205e491ce836fffb1671e4bb.tar.bz2
abc8000-11fe7583d123abdf205e491ce836fffb1671e4bb.tar.xz
abc8000.sys: pad to a full 512-byte sector
Pad to a full 512-byte sector to eliminate pointless double-buffering.
-rw-r--r--data/Makefile1
-rw-r--r--data/sysrom/Makefile3
2 files changed, 3 insertions, 1 deletions
diff --git a/data/Makefile b/data/Makefile
index 830bc3d..72532a6 100644
--- a/data/Makefile
+++ b/data/Makefile
@@ -13,3 +13,4 @@ ramdac.mif : ramdac.pl
clean :
rm -f $(GEN)
+ $(MAKE) -C sysrom clean
diff --git a/data/sysrom/Makefile b/data/sysrom/Makefile
index 3121bd5..831a344 100644
--- a/data/sysrom/Makefile
+++ b/data/sysrom/Makefile
@@ -40,7 +40,7 @@ font/sysfont.c: font/$(FONT) font/bdf2c.pl
sysrom.bin: sysrom.elf
$(OBJCOPY) -O binary $< $@
- $(PERL) padto.pl $@ 4096
+ $(PERL) padto.pl $@ 512
sysrom.elf: $(SYSOBJS) $(LIB) sysrom.ld
$(LD) $(LDFLAGS) -T sysrom.ld -o $@ $(SYSOBJS) $(LIB) $(LIBGCC)
@@ -50,6 +50,7 @@ abc8000.elf: $(ABCOBJS) $(LIB) abc8000.ld
abc8000.sys: abc8000.elf
$(OBJCOPY) -O binary $< $@
+ $(PERL) padto.pl $@ 512
$(LIB): $(LIBOBJS)
rm -f $@