diff options
author | Marvin Borner | 2019-11-08 23:13:51 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-08 23:13:51 +0100 |
commit | 5f0475e159428e50e58f3772d6a759ff86b7b55a (patch) | |
tree | db2610eb6a6613ecba2958f3277b9ec68ee144d6 /Makefile | |
parent | dd8c010755a3044f0832c7e732e1e3cdedb4a2ac (diff) |
Began implementation of non-grub bootloader
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -38,13 +38,10 @@ build: clean fi; \ # Create ISO - mkdir -p ./iso/boot/grub; \ - cp ./build/melvix.bin ./iso/boot/; \ - cp ./src/bootloader/grub.cfg ./iso/boot/grub/; \ - gcc ./src/bootloader/make_initrd.c -o ./build/make_initrd || exit; \ - ./build/make_initrd ./src/bootloader/test.txt test.txt || exit; \ - mv initrd.img ./iso/boot/melvix.initrd || exit; \ - grub-mkrescue -o ./build/melvix.iso ./iso/; + mkdir -p ./iso/boot/; \ + mv ./build/melvix.bin ./iso/boot/kernel.bin; \ + nasm ./src/bootloader/loader.asm -f bin -o ./iso/boot/boot.bin || exit; \ + genisoimage -no-emul-boot -b boot/boot.bin -o ./build/melvix.iso ./iso; \ cross: @set -e; \ @@ -78,7 +75,7 @@ debug: @rm -f qemu.log @echo "Starting simulation" @echo "[SERIAL OUTPUT]" - @qemu-system-x86_64 -no-reboot -soundhw pcspk -M accel=kvm:tcg -vga std -serial stdio -rtc base=localtime -d cpu_reset -D qemu.log -m 512M -cdrom ./build/melvix.iso + @qemu-system-x86_64 -no-reboot -M accel=kvm:tcg -vga std -serial stdio -rtc base=localtime -d cpu_reset -D qemu.log -m 512M -cdrom ./build/melvix.iso @echo "[END OF CONNECTION]" .PHONY: build clean cross test debug
\ No newline at end of file |