diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | grub.cfg | 3 |
3 files changed, 11 insertions, 0 deletions
@@ -1,2 +1,3 @@ *.bin +boot.iso *.o @@ -22,6 +22,13 @@ clean: rm -vf kernel.bin rm -vf **/*.o +boot.iso: kernel.bin grub.cfg + mkdir iso_tmp + mkdir -p iso_tmp/boot/grub + cp kernel.bin iso_tmp/boot + cp grub.cfg iso_tmp/boot/grub + grub-mkrescue -o $@ iso_tmp + rm -rv iso_tmp kernel.bin: $(OBJ) $(CC) $(LFLAGS) -T linker.ld $^ -o $@ diff --git a/grub.cfg b/grub.cfg new file mode 100644 index 0000000..ab0a41d --- /dev/null +++ b/grub.cfg @@ -0,0 +1,3 @@ +menuentry "Camellia" { + multiboot /boot/kernel.bin +} |