diff --git a/.gitignore b/.gitignore index a799c93..06ad140 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build obj +isodir \ No newline at end of file diff --git a/Makefile b/Makefile index 4989f01..0d0a44e 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,15 @@ $(NAME): $(OBJ) run: $(NAME) qemu-system-i386 -kernel build/$(NAME).bin +iso: $(NAME) + mkdir -p isodir/boot/grub + cp build/$(NAME).bin isodir/boot/bozOS.bin + cp config/grub.cfg isodir/boot/grub/grub.cfg + grub-mkrescue -o build/bozOS.iso isodir + +run_iso: iso + qemu-system-i386 -cdrom build/bozOS.iso + clean: make -C libbozo clean rm -rf obj/ @@ -41,4 +50,4 @@ fclean: clean re: fclean all -.PHONY: all clean fclean re run +.PHONY: all clean fclean re run iso run_iso diff --git a/config/grub.cfg b/config/grub.cfg new file mode 100644 index 0000000..c613661 --- /dev/null +++ b/config/grub.cfg @@ -0,0 +1,3 @@ +menuentry "bozos" { + multiboot /boot/bozOS.bin +} \ No newline at end of file