:: commit c53122516a8bcafc8287b4fbd7736ec80182585d

mintsuki <mintsuki@protonmail.com> — 2020-09-08 12:02

parents: 97394ff601

Make the test image smaller and align the partition properly

diff --git a/Makefile b/Makefile
index 5e102cde..52cbfe3e 100644
--- a/Makefile
+++ b/Makefile
@@ -30,10 +30,10 @@ limine-install: src/limine.bin limine-install.c
 
 test.img:
 	rm -f test.img
-	dd if=/dev/zero bs=1M count=0 seek=4096 of=test.img
+	dd if=/dev/zero bs=1M count=0 seek=64 of=test.img
 ifeq ($(OS), Linux)
 	parted -s test.img mklabel msdos
-	parted -s test.img mkpart primary 0% 100%
+	parted -s test.img mkpart primary 2048s 100%
 else ifeq ($(OS), FreeBSD)
 	sudo mdconfig -a -t vnode -f test.img -u md9
 	sudo gpart create -s mbr md9
@@ -43,7 +43,7 @@ endif
 
 echfs-test: limine-install test.img
 	$(MAKE) -C test
-	echfs-utils -m -p0 test.img quick-format 32768
+	echfs-utils -m -p0 test.img quick-format 512
 	echfs-utils -m -p0 test.img import test/test.elf boot/test.elf
 	echfs-utils -m -p0 test.img import test/limine.cfg limine.cfg
 	./limine-install test.img
tab: 248 wrap: offon