Index: arch/ia32/boot/Makefile
===================================================================
--- arch/ia32/boot/Makefile	(revision 6bc4dbd6d4af05219158da97d48e6440649362af)
+++ arch/ia32/boot/Makefile	(revision 961b5f01ab0baf25db1ae2fde08e1dd39e0e62bc)
@@ -1,17 +1,8 @@
 .PHONY: build clean
 
-build: boot.bin
-	dd if=boot.bin of=../../../image.bin bs=512 conv=sync
-	-cat ../../../kernel.bin >> ../../../image.bin
-	dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1
-
-boot.bin: boot.o
-	$(LD) -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
-
-boot.o: boot.S
-	$(CC) -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s
-	$(AS) boot.s -o $@
-	rm boot.s
+build: grub.img.gz
+	gunzip -c grub.img.gz > ../../../image.bin
+	e2cp ../../../kernel.bin ../../../image.bin:/boot/kernel.bin
 
 clean:
-	-rm -f boot.o boot.bin ../../../image.bin
+	-rm -f ../../../image.bin
